Click here to Skip to main content
16,004,647 members

Comments by htm11 (Top 7 by date)

htm11 20-Aug-18 12:20pm View    
You are incorrect, the space is a syntax error and C# does care, try to write some test code, the value of txtBox1 will not be present in the command string when the execute is performed.
htm11 11-Jul-17 16:00pm View    
The same with these
cmd.Parameters.AddWithValue("@age", TxtBox3 .Text );
cmd.Parameters.AddWithValue("@TelNo", TxtBox4 .Text );
cmd.Parameters.AddWithValue("@Address", TxtBox5 .Text );
cmd.Parameters.AddWithValue("@gender", TxtBox6 .Text );

remove the space before the .Text
htm11 29-Jan-15 15:49pm View    
Ok so I missed that. Sorry for the thread length.
htm11 29-Jan-15 15:32pm View    
Actually you are incorrect, it is deprecated, not wrong!
htm11 29-Jan-15 14:20pm View    
You totally missed the point of my post. It was not actually for the OP but others looking for a solution to incorrectly typing a DateTime parameter.