Author: silversasoriza | Posted on: 10/26/2010 10:49:11 PM | Views : 245

hi guys,
i'm having error for my validation control... i'm using both the validation control and my own code for the validation of the input entered to the same textbox.  i added another validation code at the code behind and it seems that my validation control now doesnt work. it can check if the user does not enter any value or enter a non-integer value but then it will automatically go to my validation code at the code behind.
the error that i get is this "Conversion from string "" to type 'Double' is not valid." when i tried changing the string to type double, it said that "input string was not in a correct format"
below are my validation code
Public Sub addToCart_cmd(ByVal sender As Object, ByVal e As DataListCommandEventArgs) If CType(e.CommandSource, Button).CommandName = "add" Then lblError.Text = "" ...

Go to the complete details ...