I have two WebForm pages, each with a DropDownlist named ddl1. I need to send the selected index from the ddl on the first page to the ddl on the second page, followed by an automated selection of the value in the second ddl.
I am able to send the selected index from the ddl on thefirst page using following code :
On the second page, I am using
This is effectively transferring the selected index from page one to page two, but I was expecting the ddl on the second page to act as if a manual selection was performed (i.e. event on SelecxtedIndexChanged). However, this is not the case. Actually, nothing happens.
I tried some things like ddl.SelectedIndexChanged(), ddl.click() and so on but without any luck.
Has anyone some suggestions as how to invoke an autiomated event after index ddl2 has been changed ?
I am able to send the selected index from the ddl on thefirst page using following code :
Code:
Session("Niveau") = DropDownList1.SelectedIndexCode:
DropDownList1.SelectedIndex = Session("Niveau")I tried some things like ddl.SelectedIndexChanged(), ddl.click() and so on but without any luck.
Has anyone some suggestions as how to invoke an autiomated event after index ddl2 has been changed ?