Nov 15, 2006 #1 AT76 Technical User Joined Apr 14, 2005 Messages 460 Location US Does anyone know how to convert a GUID to type int? Thanks!
Nov 15, 2006 #2 tperri Programmer Joined Apr 8, 2006 Messages 728 Location US Why would you want to do that? Cant you just generate a random int for this? Upvote 0 Downvote
Nov 15, 2006 Thread starter #3 AT76 Technical User Joined Apr 14, 2005 Messages 460 Location US 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? Upvote 0 Downvote
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?
Nov 15, 2006 #4 jbenson001 Programmer Joined Jan 7, 2004 Messages 8,172 Location US 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? Upvote 0 Downvote
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?
Nov 15, 2006 Thread starter #5 AT76 Technical User Joined Apr 14, 2005 Messages 460 Location US Thanks Jim... it worked using type-casting! Upvote 0 Downvote
Nov 16, 2006 #6 jbenson001 Programmer Joined Jan 7, 2004 Messages 8,172 Location US cool.. glad you got it.. Jim Upvote 0 Downvote