Use the following code : -
-----------------------------------
string passStr = Convert.ToString(System.Guid.NewGuid());
string[] pssSaprate = passStr.Split('-');
string pass = passSaprate[0];
Response.Write(pass);
-----------------------------------
you can call it by function
then replace : return ranuid;
instead of : Reponse.Write(pass)
Vipul Soni
-----------------------------------
string passStr = Convert.ToString(System.Guid.NewGuid());
string[] pssSaprate = passStr.Split('-');
string pass = passSaprate[0];
Response.Write(pass);
-----------------------------------
you can call it by function
then replace : return ranuid;
instead of : Reponse.Write(pass)
Vipul Soni
0 comments:
Post a Comment