You're storing a string representation of a GUID  in your session
variable, not a GUID.  This should work...

objCls.UID= new Guid((string)Session["UIDE"]);

On 8/22/05, Arindam <[EMAIL PROTECTED]> wrote:
> 
> Session["UIDE"] ="{63AF06C7-DA48-4E82-960C-818D262F703C}" //Here i am 
> assigning a value (Uniqueidentifier type) from database;
> 
> now casting
> objCls.UID=(Guid)Session["UIDE"] ***
> 
> My Property (objCls.UID) type Is Guid
> 
> in SQL datatype is Uniqueidentifier.
> 
> *** Here i am getting error while running ,
> 
> but at the time of compilation its happening properly.
> 
> 
> 
> Arindam Chakraborty
> Software Developer,
> Mumbai,
>  India
> 
> 
> 
> 
> 
> ---------------------------------
> Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots 
> more.
> http://in.promos.yahoo.com/rakhi/index.html
> 
> [Non-text portions of this message have been removed]
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 


-- 
Dean Fiala
Very Practical Software, Inc
http://www.vpsw.com


------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hhdrlgr/M=362131.6882499.7825260.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1124727768/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to