بخشی از برنامه را در اینجا آورده شده:
String insertCmd1 =
"INSERT INTO tblSupplemental(id,fn,shsh,born_date,Address,t el,postcode,faf,memoir,degree,un,gd,po,mp,smd,emd& #41; "+
"VALUES("
+Convert.ToInt32(TextBox10.Text.Trim() ) +",'"+ TextBox9.Text.Trim ()
+"',"+ Convert.ToInt32(TextBox8.Text.Trim ())+",'"+TextBox7.Text.Trim( 1;
+"','"+ TextBox6.Text.Trim () +"','"+TextBox11.Text.Trim ()
+"','"+ TextBox12.Text.Trim () +"','"+TextBox13.Text.Trim ()
+"','"+ TextBox14.Text.Trim () +"','"+DropDownList1.SelectedItem.ToString( 1;.Trim ()
+"','"+ TextBox15.Text.Trim () +"','"+TextBox16.Text.Trim ()
+"','"+ TextBox17.Text.Trim () +"',"+
Convert.ToInt32(TextBox18.Text.Trim ())
+",'"+ TextBox19.Text.Trim ()+"','"+ TextBox20.Text.Trim () +"')";
Input string was not in a correct format.
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.FormatException: Input string was not in a correct format.