Quantcast
Channel: DataSource Controls - SqlDataSource, ObjectDataSource, etc.
Viewing all articles
Browse latest Browse all 956

Converting a text to a varbinary?

$
0
0

I have a password attribute in my SQL with the datatype varbinary(MAX).  What do I need in my ASP? I keep getting an error that says: Failed to convert parameter value from a String to a Byte[].

 

            sqlCom.Parameters.Add("@Password", SqlDbType.VarBinary).Value = txtPassword.Text


Viewing all articles
Browse latest Browse all 956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>