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
srikanth nalluri
NA
10
0
deleting rows in grid view
May 26 2010 8:46 AM
Hi,
I am trying to delete a row in gridview in asp.net using c# language,
but it is deleting entire table.
can any one please tell me the drawback in my code.
I wrote the code like this..
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
SqlCommand cmd = new SqlCommand("delete emp where eno=eno", con);
con.Open();
int i = cmd.ExecuteNonQuery();
con.Close();
}
Reply
Answers (
4
)
master page loading and web content page loading
How to show a save dialog box when a link with .swf file is clicked?