Remembering of controls values.

  • Thread starter Thread starter Zientek
  • Start date Start date
Z

Zientek

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top