p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

c_sharp thread: C# GUID


Message #1 by Michael Bell <mbell218@p...> on Sat, 20 Jan 2001 10:40:07 -0800

Hello all



I'm having trouble creating a GUID in C#.



Can anyone supply a code sample?



Thanks

Message #2 by "Jonathan Goodyear" <jon@a...> on Sat, 20 Jan 2001 23:33:52 -0500
It's pretty simple:



Guid g = Guid.NewGuid();



In ASP.NET, you can render it by using:



Guid g = Guid.NewGuid();

Response.Write(g.ToString());





----jonathan goodyear, mcsd, mcp, cls

The original "angryCoder" (watch for the upcoming launch of angryCoder.com)

president@a...





----- Original Message ----- 

From: "Michael Bell" <mbell218@p...>

To: "C # list" <c_sharp@p...>

Sent: Saturday, January 20, 2001 10:41 PM

Subject: C# GUID





> 

> Hello all

> 

> I'm having trouble creating a GUID in C#.

> 

> Can anyone supply a code sample?

> 

> Thanks

> 


  Return to Index