Ive tried using a loop (so that it always checks the dropdownlist) but it didnt work very well.
This is the code Im using now and it wont work either.
Sub Page_Load()
AddHandler ddl.SelectedIndexChanged, AddressOf MySub
End sub
Sub MySub(ByVal sender As Object, ByVal e As EventArgs)
Response.Redirect("otherpage.aspx")
End sub
Nothing happens when I change selectedindex in the ddl.set the AutoPostBack to true for the dropdownlist... it is false by default.
thanx, I got it working. Now, I dont want it to react to ".SelectedIndexChanged", but to react if the values are changed. How would I do that?
Hi,
why don't you want to react to the .SelectedIndexChanged event? It's the standard way of doing it.
On the other hand you could save the current selectedvalue in viewstate, render the page and when a postback occurs then check the previous value from viewstate with the current selectedvalue of your dd in a page_load and react appropriately.
Grz, Kris.
0 comments:
Post a Comment