Asp.net databse inserting problem

Posted by Zareef under ASP.NET on 4/4/2013 | Points: 10 | Views : 701 | Status : [Member] | Replies : 4
ASP.NET website the query in database is execute properly but data is not going in database.what is the problem behind it can anyone help me?

ch.zareef


Responses

Posted by: Satyapriyanayak on: 4/4/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Please elaborate it more

If this post helps you mark it as answer
Thanks

Zareef, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Zareef on: 4/4/2013 [Member] Starter | Points: 25

Up
0
Down
i inserting data in signup table but data is not going in that table i try many time but not show any error and nor data go in database table.

ch.zareef

Zareef, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ankitsrist on: 4/5/2013 [Member] Starter | Points: 25

Up
0
Down
might be there is a problem in your web.config file, check for that

Zareef, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sriramnandha on: 5/12/2013 [Member] Starter | Points: 25

Up
0
Down
protected void Btn_Submit_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(contour);
DateTime startdate = Convert.ToDateTime(TextBox_startdate.Text);
string inserttour = "insert into tourprogram(startdate,fromplace,toplace)values('" + startdate + "','" + TextBox_fromplace.Text + "','" + TextBox_toplace.Text + "')";

con.Open();
SqlCommand cmd = new SqlCommand(inserttour, con);
cmd.ExecuteNonQuery();
con.Close();
showgrid();

}


hope this will help...

sriram

Zareef, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response