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
Gopal Ji Singh
NA
39
31.7k
Update button in datalist....
Jun 24 2013 10:21 AM
i have written a query to update the table but its not updating the table please help me if some buddy can...
protected void accept1_Click(object sender, EventArgs e)
{
con.Open();
Label Label1 = (Label)reqlist.FindControl("Label1");
SqlCommand cmd=new SqlCommand("update friends set friendstatus='Y' where myid='" + Label1 + "' AND friendid='" + Session["myid1"] + "'",con);
cmd.ExecuteNonQuery();
Response.Write("thanx");
con.Close();
}
Reply
Answers (
16
)
Text TransFroms Form One Point to Another
Tile Animation in Windows phone Inside the App