how display string in GUID

Posted by Sagarp under C# on 1/19/2010 | Views : 1541 | Status : [Member] | Replies : 4
HI


i give guid from data base in string varible how can convert that string into GUID again



Thanks
sagar

Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/



Responses

Posted by: Majith on: 1/19/2010 [Member] Starter

Up
0
Down
Good day sagar,

you can try this using Constructor method.


Guid obj = new Guid(stringobject);


Thanks

Sagarp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sagarp on: 1/19/2010 [Member] Bronze

Up
0
Down
ok thx.

Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

Sagarp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: RtpHarry on: 1/19/2010 [Member] [MVP] Bronze

Up
0
Down
And then to put it back again you can use

obj.ToString();


Sagarp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nishithraj on: 1/19/2010 [Member] Bronze

Up
0
Down
Remember that you need to use System namespace here

Mark this as answer, if it is.....

With regards
Nishithraj Narayanan

Sagarp, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response