Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

coverting GUID to int...

Status
Not open for further replies.

AT76

Technical User
Joined
Apr 14, 2005
Messages
460
Location
US
Does anyone know how to convert a GUID to type int?

Thanks!
 
Why would you want to do that? Cant you just generate a random int for this?
 
thanks tperri...

another question: I'm trying to do the following:

Code:
courseID = (HttpContext.Current.Session[COURSEID_SESSION_KEY]);

courseID is of type System.Guid

(HttpContext.Current.Session[COURSEID_SESSION_KEY]) is an object.

Is there a way to do this?
 
You will have to use ctype or if you have vs2005 you can use directcast or trycast to convert it to type GUID.

What is in your session variable?
 
Thanks Jim... it worked using type-casting!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top