[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Add a GUID value to the Session variable

Posted on 2013-06-14
2
Medium Priority
?
465 Views
Last Modified: 2013-06-18
I am trying to take the value of a GUID function and add it to a session variable.  How can I do that?
0
Comment
Question by:VBBRett
2 Comments
 
LVL 13

Accepted Solution

by:
Jitendra Patil earned 1500 total points
ID: 39249690
Hi VBRett,
try the below code.

string  g = Guid.NewGuid().ToString() ;
           Session["MyGuid"] = g;
           Response.Write("Guid Generated=>" + Session["MyGuid"].ToString());

hope this helps.
0
 

Author Comment

by:VBBRett
ID: 39250148
That's the thing.  I'm pulling the GUID from a record in the database.  I'll post the code that I have when I get home.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question