And of course the string must in correct format which is
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Here is a sample:
VB
--
Dim ApplicationId As Guid = New Guid(Session("SampleString").ToString())
C#
--
Guid ApplicationId = new Guid(Session["SampleString"].ToString());
No comments:
Post a Comment