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
manoj sharma
NA
1
1.3k
I am getting index out of range error message.. please help
Jul 6 2013 9:17 AM
protected void dgShow_DeleteCommand(object source, DataGridCommandEventArgs e)
{
SqlConnection con = new SqlConnection(str);
SqlCommand cmd = new SqlCommand();
int enpid = (int)dgShow.DataKeys[(int)e.Item.ItemIndex];
cmd.CommandText = "Delete * from EmpTable where EmpId=" + enpid;
con.Open();
cmd.ExecuteNonQuery();
con.Close();
dgShow.EditItemIndex = -1;
Show();
}
this was block of code..
Reply
Answers (
1
)
implementation algorithm
could you please tell me about security in asp.net