Posted on: 3/17/2014 12:52:48 PM | Views : 435

hello everyone, 
I am creating a web form to insert data into mysql. The db are correctly shown in the startup page. but i got an error when i want to use textboxes to insert data.
It says by pointing at cmd.ExecuteNonQuerry():
input string was not in a correct format. FormatException was unhandled by user code.
Here is my code:
Protected Sub AddNewCustomer(ByVal sender As Object, ByVal e As EventArgs) Dim ClientID As String = DirectCast(GridView1.FooterRow _ .FindControl("TextBox6"), TextBox).Text Dim Name As String = DirectCast(GridView1 _ .FooterRow.FindControl("TextBox8"), TextBox).Text Dim Address As String = DirectCast(GridView1 _ .FooterRow.FindControl("TextBox9"), TextBox).Text Dim Web As String = DirectCast(GridView1 _ .FooterRow.FindControl("TextBox10" ...

Go to the complete details ...