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
Surya Vijay
NA
31
1.1k
Update the value in db
Aug 25 2019 3:05 PM
protected void Vote_Click(object sender, EventArgs e) {
SqlConnection sql = new SqlConnection(conf);
try {
foreach(GridViewRow row
in
voterslist.
Rows
) {
CheckBox chk = (CheckBox) row.FindControl(
"votepoint"
);
Label lblCount = (Label) row.FindControl(
"vote_lbl"
);
if (chk.Checked) {
String Sid = lblCount.Text;
String nqry =
"what command should i enter here? I want to increase the count of the data that i checked in checkbox after the button clicked "
;
SqlCommand cmd = new SqlCommand(nqry, sql);
int
i = cmd.ExecuteNonQuery();
}
}
}
sql.
Open
();
}
Reply
Answers (
7
)
add scanner property
how to check in my dabase if the value is existing?