I would like to modify the price selection in the Advanced Search.aspx page. I would like to add a text box for users to input 'Min Price' (as well as the default Max Price Text box) to create a price range between the min and max prices inserted, which
would then return the ads from the Db, within that range selected.
Has anyone attempted this and therefore able to offer help with the changes necessary in the affected code, functions etc?
Thanks for the info. I will have a go at it and let you know if I am successful.
Phil
Hi Danny,
Yes, your info put me on the right road. In addition I had to modify the following pages:-
Controls/Advanced Search.ascx.vb
Search.aspx.vb
AppCode/DAL/Ads.xsd
Thanks again for your help and I will click on Mark As Answer.
I also owe you an apology for not getting back to you regarding another matter that you helped with a while ago. It was to do with incorrect date formatting for the entry date in the Admin/Ads.aspx page and your answer to the problem was correct.
Member
16 Points
33 Posts
Price Range selection in Advanced Search.aspx
Jan 07, 2010 01:53 PM|flostin|LINK
I would like to modify the price selection in the Advanced Search.aspx page. I would like to add a text box for users to input 'Min Price' (as well as the default Max Price Text box) to create a price range between the min and max prices inserted, which would then return the ads from the Db, within that range selected.
Has anyone attempted this and therefore able to offer help with the changes necessary in the affected code, functions etc?
Thanks guys.
Participant
1165 Points
1040 Posts
Re: Price Range selection in Advanced Search.aspx
Jan 07, 2010 10:16 PM|darkknight187|LINK
If I remember right you need to modify the storedprocedure GetAllAdsByQuery
And also App_Code/BLL/Ads.vb in the GetAllAdsByQuery, or something like that, Section.
And the of course, add the dropdown, or whatever to make the selection. ( "-1" is usually used for none selected.)
Good Luck
-Danny
Please remember to mark the post as answer that solves your issue.
This will be greatly benificial for other users.
Member
16 Points
33 Posts
Re: Price Range selection in Advanced Search.aspx
Jan 08, 2010 10:35 AM|flostin|LINK
Hi Danny,
Thanks for the info. I will have a go at it and let you know if I am successful.
Phil
Hi Danny,
Yes, your info put me on the right road. In addition I had to modify the following pages:-
Controls/Advanced Search.ascx.vb
Search.aspx.vb
AppCode/DAL/Ads.xsd
Thanks again for your help and I will click on Mark As Answer.
I also owe you an apology for not getting back to you regarding another matter that you helped with a while ago. It was to do with incorrect date formatting for the entry date in the Admin/Ads.aspx page and your answer to the problem was correct.
Cheers
Phil