If you'd like to pass value(s) using Session variable in ASP.NET, you can refer to the following code snippet to set/pass value(s) to session.
Session["UserName"] = "User_Name_Here";
With Regards,
Fei Han
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
None
0 Points
1 Post
How can pass the value of sessions?
Apr 12, 2019 11:46 AM|ankitabind|LINK
Hi,
How can pass the value of sessions?
Regards,
https://www.review.crazymediaclub.com/
All-Star
53631 Points
23988 Posts
Re: How can pass the value of sessions?
Apr 12, 2019 11:51 AM|mgebhard|LINK
Unclear. Session is available to every request. Can you share you code and explain the steps to reproduce the issue?
All-Star
40565 Points
6233 Posts
Microsoft
Re: How can pass the value of sessions?
Apr 24, 2019 01:32 AM|Fei Han - MSFT|LINK
Hi ankitabind,
If you'd like to pass value(s) using Session variable in ASP.NET, you can refer to the following code snippet to set/pass value(s) to session.
With Regards,
Fei Han