I get this error when try to do multiple delete from this code.(its not mine)
The error
Quote
Value was either too large or too small for an Int32.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.OverflowException: Value was either too large or too small for an Int32.
Source Error:
Line 18: If checkbox.Checked Then
Line 19: ' Retreive the ProductID
Line 20: Dim ProductID As Integer = Convert.ToInt16(GridView1.DataKeys(row.RowIndex).Value)
Line 21: ' Pass the value of the selected Employye ID to the Delete //command.
Line 22: SqlDataSource1.DeleteParameters("ProductID").DefaultValue = ProductID.ToString()
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.OverflowException: Value was either too large or too small for an Int32.
Source Error:
Line 18: If checkbox.Checked Then
Line 19: ' Retreive the ProductID
Line 20: Dim ProductID As Integer = Convert.ToInt16(GridView1.DataKeys(row.RowIndex).Value)
Line 21: ' Pass the value of the selected Employye ID to the Delete //command.
Line 22: SqlDataSource1.DeleteParameters("ProductID").DefaultValue = ProductID.ToString()
Can someone tell me hoe to solve this
thanks


Sign In
Create Account


Back to top









