我正在使用會話。在第一頁我有代碼會話未在asp.net創建空引用異常
Response.Redirect("welcome.aspx");
Session["me"] = TextBox1.Text;
和歡迎頁面上我寫的形式加載事件
if(Session["me"] != null)
{
Label1.Text = (string)Session["me"];
}
else
{
Label1.Text = "session not created";
}
這段代碼它給我的「會話沒有創建」其他部分始終運行。我的代碼有問題。請幫幫我。