Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display dropdown selected item in URL of the website [closed]

I am working on a single page asp.net application(webform) with 4 dropdowns.

Please take this example http://ifsccode.in

I need the same functionality in my website.The coding part is done.Everything is working fine but I want to display the dropdown selected item in the URL same as the above example.

I would like to tell you that I have created only one page application.

So please tell me how to achieve the Dropdown selected item in URL.

like image 602
bhoopendra.sahoo Avatar asked Nov 24 '25 01:11

bhoopendra.sahoo


1 Answers

This page uses URL Rewriting. Actually the resulting URL is not generated by user selecting and option, but the url is allready there. Look at this link.

"/development_credit_bank_limited/daman_diu" is responding to a get request and displaying the page according to that request and parameters.

So what you have to do is first implement URL Rewriting in your application and then design your pages to use that convention.

like image 133
Yiğit Yener Avatar answered Nov 25 '25 14:11

Yiğit Yener