Last post Sep 25, 2007 06:21 PM by darkknight187
Sep 24, 2007 02:44 AM|paggy4u|LINK
Every Advertisement when posted generates an ID or Advertisement number in sequence. e.g:- 237 or 865 etc..
I would like to add this facility to Search Box on default page, where an user types an Advt ID in the box and is been taken to that particular advt.
This is the most important facility, which i think should be given as we can easily recommend our advertisement number on the phone and visitor or buyer can immediately have a look at it.
I had asked for this help in the past long back, but still it has not been implemented by any one so far and i am unable to make use of it. I would also appreciate if some one comes forward with a simple code to implement this feature.
Thanks in advance.
Sep 24, 2007 11:49 AM|darkknight187|LINK
I have not added that specific function, but I did expand the search function.
What I think might help is, I did not like it searching for title, I needed it to search for Location.
The main part of your search function is called from the stored procedure "GetAllAdsByQuery"
If you change the bottom part from location to Id it will search for Id instead.
And just to give you a full path if you want to expand the search function,
It starts on your search page with the control (textbox, dropdownlist, checkbox, or whatever)
It then goes to the objectdatasource at the bottem of the search page.
That points to App_Code/BLL/Ads.vb (.cs if you use C#) "GetActiveAdsByQuery"
that points to another file in Ads.vb "GetAdsByQuery"
And that points to the stored procedure "GetAllAdsByQuery"
If you need more help just write back.
Sep 25, 2007 12:01 AM|paggy4u|LINK
Unfortunately i am not that advanced in coding as you are. I would be obliged if you can kindly provide me that code to be placed inside. I do not want any high search facility, i just want it to be searched with an ID.
I am working with VB so your help in VB would be appreciated.
Kindly provide me the code and place where it needs to be changed.
Plus.... right now i am in learning process of Ruby in depth for future use in IronRuby.
My aim is to convert the whole code in IronRuby and gift the community as IronRuby Classifieds with more advanced features, based on MVC or Subsonic way( like Advanced Club Kit )
I hope you have understood my problem and looking forward to your help.
Thanks for being such a helpful person.
Sep 25, 2007 06:21 PM|darkknight187|LINK
It's not advanced, just give it a try.
It's amazing what can be accomplished if try.
All you have to do is copy the basic code for location, and put in Id instead of location.
Just go through the pages I mentioned above.
Write back if you get stuck, and I will help you.