Index was out of range. Must be non-negative and less than the size of the collection.
-
i face an error Index was out of range. Must be non-negative and less than the size of the collection in this code plz help
cmd.CommandText = "DELETE FROM Coupon_Info WHERE RecievingDate='" + GridView1.DataKeys[e.RowIndex].Values[0].ToString() + "'";
-
i face an error Index was out of range. Must be non-negative and less than the size of the collection in this code plz help
cmd.CommandText = "DELETE FROM Coupon_Info WHERE RecievingDate='" + GridView1.DataKeys[e.RowIndex].Values[0].ToString() + "'";
-
i face an error Index was out of range. Must be non-negative and less than the size of the collection in this code plz help
cmd.CommandText = "DELETE FROM Coupon_Info WHERE RecievingDate='" + GridView1.DataKeys[e.RowIndex].Values[0].ToString() + "'";
haleemasher wrote:
cmd.CommandText = "DELETE FROM Coupon_Info WHERE RecievingDate='" + GridView1.DataKeys[e.RowIndex].Values[0].ToString() + "'";
use: cmd.CommandText = "DELETE FROM Coupon_Info WHERE RecievingDate='" + GridView1.DataKeys[e.RowIndex][0] + "'";
Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]
-
i face an error Index was out of range. Must be non-negative and less than the size of the collection in this code plz help
cmd.CommandText = "DELETE FROM Coupon_Info WHERE RecievingDate='" + GridView1.DataKeys[e.RowIndex].Values[0].ToString() + "'";
-
i face an error Index was out of range. Must be non-negative and less than the size of the collection in this code plz help
cmd.CommandText = "DELETE FROM Coupon_Info WHERE RecievingDate='" + GridView1.DataKeys[e.RowIndex].Values[0].ToString() + "'";
Damn - how stupid are people today ? What do you THINK that error message could mean ? Do you know how to use a debugger ?
Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp