I create session in Page load like:
Code:
protected void Page_Load(object sender, EventArgs e)
{
Session["text"] = Request.Form["text_ad"];
}
and I need access to this session in the same page in Button1_Click like:
Code:
protected void Button1_Click(object sender, EventArgs e)
{
Response.Write(Session["text"]);
}
But I cant access to the session.