Reading a Variable Value from another Module in a Page
-
Hi, I have two modules in a Page in ASP.NET 1.1. In Module A, I have a dropdown list. When its value changes, I need to know its value when I want to render the data in module B. Therefore please let me know how I can read the dropdown list new value in Module B at serverside code. Samy
-
Hi, I have two modules in a Page in ASP.NET 1.1. In Module A, I have a dropdown list. When its value changes, I need to know its value when I want to render the data in module B. Therefore please let me know how I can read the dropdown list new value in Module B at serverside code. Samy
use session to transfer the dropdown-list'value of Module A. For instance: //Save dropdownlist.text in session when the dropdownlist's selectedindex has changed. Page.Session["valuea"] = dropdownlist.text; //Read dropdownlist's value from session string a = Page.Session["valuea"].ToString(); :-D