Last post Oct 11, 2012 11:38 AM by javedwahid
Oct 10, 2012 11:42 AM|bhoopendra.sahoo|LINK
It may be already answered, sorry for it.
I am working on a single page application with 4 dropdown. Once first dropdown is selected, then only 2nd will be activated. And once 2nd then 3rd and so on.. So, Suppose my url is xyz.com and I selected first dropdown value 'abc' then my website url should
redirect to xyz.com/abc/ and then since second drop down is getting activated so once I select second dropdown say 123 then it should redirect the url to xyz.com/abc/123/
Order is fixed. we can not select 123 without selecting abc.
The problem is we are not able to add the values in URL.
Oct 10, 2012 12:27 PM|javedwahid|LINK
Look at the AjaxControlToolkit, they have a cascading dropdown list. as for changing the url. I don't think you can do that without redirecting someone to a new url, which I don't understand why you would want to do that.
Oct 11, 2012 02:18 AM|bhoopendra.sahoo|LINK
Please take this example http://ifsccode.in
This web portal is written in PHP and I am looking to make a similar one in asp.net. Select the drop down and it will change the URL. Coding part is already done. Just I am stuck at URL part.
So, please suggest how to do .
Again I would like to remind u that I have created only one page application.
Oct 11, 2012 03:06 AM|sureshkumar.gundala|LINK
All your dropdowns code is in single page or multiple pages?
Oct 11, 2012 03:11 AM|sureshkumar.gundala|LINK
I have checked the website which you have posted. I don't think that is possible in asp.net.
You can use query string insted and pass your dropdown values as query string parameters if you want to show the
dropdown values in URL
Oct 11, 2012 03:13 AM|bhoopendra.sahoo|LINK
yes, All dropdowns code is in single page only.
Oct 11, 2012 04:41 AM|sureshkumar.gundala|LINK
Use query strings instead to pass your dropdown values. In asp.net you cannot achieve the same type of functionality as the websited which you have posted.
Oct 11, 2012 07:42 AM|bhoopendra.sahoo|LINK
I have solved this Issue using query string.
thanks for ur guidance.
Oct 11, 2012 11:38 AM|javedwahid|LINK
The page that you posted is reloading the page every time you change the dropdown.
You can achieve this with the url structure, by using url rewriting to get the values from the url and auto populate the dropdowns on Page_Load.