Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create a random and unique string
Message
De
01/12/2015 09:17:14
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01628141
Message ID:
01628142
Vues:
52
>I want to store an ID of a tablet (e.g. iPad, Android, etc.) into a local storage of the browser. Then at run-time, my app will get this ID string and use it to get/set certain data on the web server that will "belong" to this or that device. I found some threads on Stackoverflow with sophisticated methods of generating a random string. Since I am dealing with 10 (or 20 at most) devices, I believe, this level of complexity is too much. Can you suggest a simple method of creating/getting a string of about 10 alphanumeric characters, from .net application? For example, "ABC123", "CBGHHD", and so on.

I am using this:
    ' Return a GUID
    Public Function GetGUID() As String
        Return Guid.NewGuid.ToString()
    End Function
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform