Data Type conversion error.....

  • Thread starter Thread starter Smith John
  • Start date Start date
S

Smith John

Here is my ASP.Net code

"If CustomerCMD.Parameters("@Checkout").Value = 0 Then"

Since I set the option strict on.... It is throwing type missmatch error.
@Checkout is a "tinyinteger" in SQL Server.
Please advice.
Thanks,
Smith
 
Hi Smith

Change your code t
"If CType( CustomerCMD.Parameters("@Checkout").Value, Integer) = 0 Then

thank
Nithin P V
 
Back
Top