Hi kalaHasti,
I tried what you said but its still not working. For some reason i can access the contents of the seesion if i have:
i can then do:Code:private void Page_Load(object sender, System.EventArgs e) { if (!IsPostBack) { Label4.Text = Session["userID"].ToString(); } }
So why does it work like this, any clues? I don't really want to access the session like this because i need to pass this session to other pages and i will have the same problem.Code:WO_Cmd2.Parameters.Add("@UserID", Label4.Text);
Any advice appreciated.




Reply With Quote