jeudi 5 juillet 2018

Selecting a specific dropdown value based on how you navigated to a page

I've had a look around but not finding what I'm looking for, or I'm not searching for the right thing.

Language: ASP.NET

Basic idea of my problem: 2 pages - 1st page has 4 buttons, 2nd page has a dropdown box with 4 options. If I press button 1 I want option 1 in the dropdown to be selected when I navigate, if I was button 2 then I want option 2 in the dropdown to be selected.

I still want to be able to change the value in the dropdown after navigation BUT the initial value should depend on which button I pressed.

Any help or guidance would be appreciated.




Aucun commentaire:

Enregistrer un commentaire