How to convert 'System.String' to 'System.Guid'

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

prm = new SqlParameter("@passkey", SqlDbType.UniqueIdentifier);
prm.Value = stringvalue;
I got this exception
Invalid cast from 'System.String' to 'System.Guid'
 
Back
Top