For Programmers: Free Programming Magazines  


Home > Archive > C# > September 2005 > Remembering of controls values.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Remembering of controls values.
Zientek

2005-09-13, 6:59 pm

On www page I have control:
<asp:TextBox ID="Login" runat="server"></asp:TextBox>

In C# :
protected void Page_UnLoad(object sender, EventArgs e)
{
Session["Login"] = Login.Text;
}

After next page loading expression:
(string)Session["Login"]
is allways empty (independent of previous control value).

I need value of Login.Text while next pages generation. How should I
remember it ?

Best regards
zientek
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com