Click here to Skip to main content
16,003,555 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Refreshing the parent page Pin
Abhijit Jana6-Jan-09 3:19
professionalAbhijit Jana6-Jan-09 3:19 
Questionhow to set the Focus to Next Control when Pressing Enter Key Pin
sbua6-Jan-09 1:48
sbua6-Jan-09 1:48 
AnswerRe: how to set the Focus to Next Control when Pressing Enter Key Pin
sarang_k6-Jan-09 3:04
sarang_k6-Jan-09 3:04 
QuestionFileUpload.HasFile always return false Pin
mr_muskurahat6-Jan-09 1:32
mr_muskurahat6-Jan-09 1:32 
AnswerRe: FileUpload.HasFile always return false Pin
sarang_k6-Jan-09 1:38
sarang_k6-Jan-09 1:38 
GeneralRe: FileUpload.HasFile always return false Pin
mr_muskurahat6-Jan-09 1:42
mr_muskurahat6-Jan-09 1:42 
AnswerRe: FileUpload.HasFile always return false Pin
div_gusain6-Jan-09 1:39
div_gusain6-Jan-09 1:39 
QuestionIndex was out of range. Must be non-negative and less than the size of the collection. Pin
reogeo20086-Jan-09 0:48
reogeo20086-Jan-09 0:48 
Hi all,


Below is my gridview
<asp:gridview id="bcgrid" runat="server" datakeynames="msg_ID" editrowstyle-font-size="XX-Small" editrowstyle-font-bold="true" font-names="Verdana" font-size="XX-Small" forecolor="DimGray" width="368px" autogeneratecolumns="False" onrowdeleting="bcgrid_RowDeleting" onrowediting="bcgrid_RowEditing" allowpaging="True" onpageindexchanging="PageRecords" pagesize="20" xmlns:asp="#unknown"> <columns> <asp:templatefield headertext="Language"><itemtemplate>
<asp:label id="p" runat="server" text="<%#DataBinder.Eval(Container, " dataitem.msg_language").tostring()="" %&&gt;"=""> <itemtemplate>
<asp:templatefield>



This is the code for deleting a row

protected void bcgrid_RowDeleting(object sender, GridViewDeleteEventArgs e)
{

int id = Convert.ToInt32(bcgrid.DataKeys[e.RowIndex].Values[0].ToString());
Delete(id);

}


I am getting the error
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Can anybody help me in come out of this error


Thanks in Advance
AnswerRe: Index was out of range. Must be non-negative and less than the size of the collection. Pin
Brij6-Jan-09 1:05
mentorBrij6-Jan-09 1:05 
GeneralRe: Index was out of range. Must be non-negative and less than the size of the collection. Pin
reogeo20086-Jan-09 1:08
reogeo20086-Jan-09 1:08 
GeneralRe: Index was out of range. Must be non-negative and less than the size of the collection. Pin
Brij6-Jan-09 2:19
mentorBrij6-Jan-09 2:19 
AnswerRe: Index was out of range. Must be non-negative and less than the size of the collection. Pin
Ashok Login3-Oct-09 4:03
Ashok Login3-Oct-09 4:03 
Questionerrot in program that Textbox-Textbox4 does not exsist in current context Pin
Jas 0076-Jan-09 0:10
Jas 0076-Jan-09 0:10 
AnswerRe: errot in program that Textbox-Textbox4 does not exsist in current context Pin
sarang_k6-Jan-09 1:41
sarang_k6-Jan-09 1:41 
Questionrandom selection of business object classes Pin
highjo6-Jan-09 0:05
highjo6-Jan-09 0:05 
QuestionPassing VB arrays as Java Script parameters Pin
jonhbt5-Jan-09 23:17
jonhbt5-Jan-09 23:17 
AnswerRe: Passing VB arrays as Java Script parameters Pin
Aman Bhullar6-Jan-09 0:00
Aman Bhullar6-Jan-09 0:00 
AnswerRe: Passing VB arrays as Java Script parameters Pin
Abhijit Jana6-Jan-09 0:01
professionalAbhijit Jana6-Jan-09 0:01 
Questionhow to set the dynamically created image to the image box in asp.net Pin
Hema Bairavan5-Jan-09 22:55
Hema Bairavan5-Jan-09 22:55 
AnswerRe: how to set the dynamically created image to the image box in asp.net Pin
Aman Bhullar5-Jan-09 23:56
Aman Bhullar5-Jan-09 23:56 
AnswerRe: how to set the dynamically created image to the image box in asp.net Pin
Guffa6-Jan-09 3:17
Guffa6-Jan-09 3:17 
QuestionFavicon for IE6/IE7...... Pin
way2arun5-Jan-09 21:35
way2arun5-Jan-09 21:35 
AnswerRe: Favicon for IE6/IE7...... Pin
N a v a n e e t h5-Jan-09 21:45
N a v a n e e t h5-Jan-09 21:45 
GeneralRe: Favicon for IE6/IE7...... Pin
way2arun5-Jan-09 22:07
way2arun5-Jan-09 22:07 
AnswerRe: Favicon for IE6/IE7...... Pin
Abhijit Jana5-Jan-09 22:07
professionalAbhijit Jana5-Jan-09 22:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.