Loading

Generate unique number

Submitted by: 


Some times we need some random unique number for solving some problem.For this purpose we can generate unique number by using GUID
The following codes will generate a unique number

  1. Dim UniqueNumber As Guid
  2. UniqueNumber = Guid.NewGuid
  3. Response.Write("<br>" & UniqueNumber.ToString)

About the author:

PlanetSourceCode.in is a place for all developer providing free source codes, articles, complete projects,complete application in PHP, C/C++, Javascript, Visual Basic, Cobol, Pascal, ASP/VBScript, AJAX, SQL, Perl, Python, Ruby, Mobile Development




Comments

this is not a good idea to describe such things.

sherwin's picture

why po

dArk_viRuz

sherwin's picture

pha help nga about adodc

dArk_viRuz

sherwin's picture

problem with adodc

dArk_viRuz

what is your problem in adodc?

can this be done in vb6? to generate an id number?

Pages

Add new comment

Filtered HTML

  • You may insert videos with [video:URL]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.