GUID?

S

Suresh

There a Guid object that you have to instantiate and call
it's NewGuid method.

(in C#)
Guid g = new Guid();
g = g.NewGuid();

HTH,
Suresh.
 
B

Brian W

Actually, NewGuid is a static method so you can't do that.

Instead try
Guid g = Guid.NewGuid();

Hope this helps
Brian W
 
K

Kevin Spencer

It is not necessary to create an instance of the Guid class to invoke the
NewGuid() method. It's a static (shared) method. You can simply call:

Guid g = Guid.NewGuid();

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
 
A

Atila B.

This should be relatively easy. Here's a C# sample:

System.Guid myGUID = System.Guid.NewGuid();
Response.Write(myGUID.ToString());
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top