TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
saifullah khan
NA
335
301.1k
update database table
Jun 2 2011 1:39 AM
Hi!
i want to update my database table on button click event. here is the query.
protected void Button4_Click(object sender, EventArgs e)
{
con.Open();
SqlCommand cmd = new SqlCommand("update Arrear set ConsumerNo=" + ConsumerNo.Text + ",WaterCharges='" + WaterCharges.Text + "',SaverageCharges='" + SaverageCharges.Text + "',ConservancyCharges='" + SaverageCharges.Text + "',arear='" + arear.Text + "' where ConsumerNo=" + ConsumerNo.Text, con);
con.Close();
}
but it does not update the table. please tell me what is the problem
Reply
Answers (
6
)
Skin and CSS in Asp.net website
check box with gridview