PDA

View Full Version : OnSelectedIndexChanged of DropDownList


kevinkan
10-08-2002, 04:55 PM
Hi,

I'm wondering whether the OnSelectIndexChanged property works as though the user selects an option from the dropdownlist and an action is executed immediately w/o having to click any submit button, i.e. user select option A from the list, and is redirected to another page.

Please advise.

Cheers,
Kevin
---------

whammy
10-08-2002, 07:21 PM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolslistcontrolclassonselectedindexchangedtopic.asp

Looks to me like that only works once you post to the server...

Why not just use javascript?

<select name="blah" onchange="window.location=this.options[this.selectedIndex].value">