con.open(); Sqlcommand sqlcmd= new sqlcommand("insert into aa(c1,c2) values(@c1,@c2) ",con); sqlcmd.Parameters.AddWithValue("@c1", c1TextBox.Text);sqlcmd.Parameters.AddWithValue("@c2", c2TextBox.Text); sqlcmd.executeNonquery() con.close();
Mark This Response as Answer -- Chandu http://www.dotnetfunda.com/images/dnfmvp.gif
Mark as Answer if its helpful to you Kumaraspcode2009@gmail.com
Regards, Sheo Narayan http://www.dotnetfunda.com
Login to post response