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
Prem Sahani
NA
123
9.9k
how to update pannel of gridview data delete in asp.net C#
Jun 7 2017 12:16 PM
protected void grdModalMembers_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
con.Open();
int index = Convert.ToInt32(e.RowIndex);
index = 0;
GridViewRow selectedRow = grdModalMembers.Rows[index];
string MembershipCd = selectedRow.Cells[2].Text; //assuming your ID is the first column of your grid
SqlCommand sq = new SqlCommand("Delete from MembershipMast where FirstName='" + MembershipCd + "'", con);
sq.ExecuteNonQuery();
Response.Write("Deleted");
}
please solve my problem thanks
Reply
Answers (
0
)
The client is disconnected because the underlying request ha
Mobile Comparsion site