hello ,

i am going to build a web site in which i want to transfer the session variable value from

master page to other page

i try some code like

i have use session variable in master page in button click event

Session["name"] = txtemail.Text;

Response.Redirect("userpage-1.aspx");

now when i am going to use it in other page like userpage.aspx then give me run time error

that session variable value is null

so pls tell me what is the reason behind this

Is there any other way to pass the value plese reply me .......... !!

Verify the variable is initailized in Global.ascx . Also the variable you are trying to access from next page is spelt correctly.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.