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/25/05, Arindam <[EMAIL PROTECTED]> wrote:
> 
> Regards,
> Arindam
> 
> 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
> 
> 
> 
> 
> 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=12hae2ecv/M=362335.6886445.7839731.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1124988003/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!</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