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'
 

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

Back
Top