Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

transfer SelectedIndex between two WebForms

$
0
0
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 :
Code:

Session("Niveau") = DropDownList1.SelectedIndex
On the second page, I am using
Code:

        DropDownList1.SelectedIndex = Session("Niveau")
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 ?

Viewing all articles
Browse latest Browse all 688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>