I have created a user login form it contains:
division.dropdown
subdivision.dropdown
username.text
passwrd
I want to create a session and this session must contains division name,subdivision name, and username. i will use these things in other forms for some other purpose. so please tell me me how to create a session of these three things.
Loading
Sandeep ShekhawatPosted Jun 23, 2011, 8:19 AM
Session["division"] = dddivision.SelectedItem.Text; //Dropdownlist
Session["subdivision"] = subdddivision.SelectedItem.Text;//Dropdownlist
Session["username"] = txtusername.Text;//Text Box
use another page simple
string division=Session["division"].ToString();
.
...
same for all
but confirm on first login page your drop down list not again fill when page is post back.