Click here to Skip to main content
15,914,413 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionProblem with converting flv videos Pin
kishore30921-Jul-09 7:39
kishore30921-Jul-09 7:39 
AnswerRe: Problem with converting flv videos Pin
Christian Graus21-Jul-09 10:16
protectorChristian Graus21-Jul-09 10:16 
QuestionProblem in onServerClick Pin
slSoftware21-Jul-09 7:07
slSoftware21-Jul-09 7:07 
AnswerRe: Problem in onServerClick Pin
Brij21-Jul-09 7:21
mentorBrij21-Jul-09 7:21 
GeneralRe: Problem in onServerClick Pin
slSoftware21-Jul-09 18:04
slSoftware21-Jul-09 18:04 
GeneralRe: Problem in onServerClick Pin
Brij21-Jul-09 19:54
mentorBrij21-Jul-09 19:54 
GeneralRe: Problem in onServerClick Pin
slSoftware21-Jul-09 23:46
slSoftware21-Jul-09 23:46 
QuestionGridView Cell Data....Index Out Of Range Exception Pin
PDTUM21-Jul-09 6:00
PDTUM21-Jul-09 6:00 
Hello,

I am trying to get the data from a cell in a GridView. I am using the following RowCommand event to do this.

protected void GridViewResults_RowCommand(object sender, GridViewCommandEventArgs e)
{
GridViewRow gvr = GridViewResults.Rows[Convert.ToInt32(e.CommandArgument)];

string pdf = gvr.Cells[6].Text;

}

An exception is thrown on the first line of code. Debugging this line shows that the code does return the selected row number as the command argument, however, it also returns the following error:

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

I am confused about which index is returning the error! The only index I am aware of from this line of code is the number of rows in the grid, and that number is returned correctly regardless of the users row selection (as checked in the debugger) and is always non negative. I have been 3 days and all over the Internet trying to get an answer to this. ANY assistance is greatly appreciated.

Thank you for your time, Pat
AnswerRe: GridView Cell Data....Index Out Of Range Exception Pin
Brij21-Jul-09 6:10
mentorBrij21-Jul-09 6:10 
GeneralRe: GridView Cell Data....Index Out Of Range Exception Pin
PDTUM21-Jul-09 6:38
PDTUM21-Jul-09 6:38 
GeneralRe: GridView Cell Data....Index Out Of Range Exception Pin
Brij21-Jul-09 7:06
mentorBrij21-Jul-09 7:06 
GeneralRe: GridView Cell Data....Index Out Of Range Exception Pin
PDTUM21-Jul-09 8:07
PDTUM21-Jul-09 8:07 
GeneralRe: GridView Cell Data....Index Out Of Range Exception Pin
Brij21-Jul-09 9:12
mentorBrij21-Jul-09 9:12 
GeneralRe: GridView Cell Data....Index Out Of Range Exception Pin
PDTUM21-Jul-09 9:27
PDTUM21-Jul-09 9:27 
GeneralRe: GridView Cell Data....Index Out Of Range Exception Pin
Brij21-Jul-09 9:48
mentorBrij21-Jul-09 9:48 
QuestionProblem with jquery Pin
sarang_k21-Jul-09 5:47
sarang_k21-Jul-09 5:47 
AnswerRe: Problem with jquery Pin
DoctorMick21-Jul-09 5:50
DoctorMick21-Jul-09 5:50 
AnswerRe: Problem with jquery Pin
Brij21-Jul-09 6:05
mentorBrij21-Jul-09 6:05 
Questiongridview page Pin
Rajeshwar Code- Developer21-Jul-09 4:06
Rajeshwar Code- Developer21-Jul-09 4:06 
AnswerRe: gridview page Pin
Vimalsoft(Pty) Ltd21-Jul-09 4:27
professionalVimalsoft(Pty) Ltd21-Jul-09 4:27 
GeneralRe: gridview page Pin
Rajeshwar Code- Developer21-Jul-09 5:41
Rajeshwar Code- Developer21-Jul-09 5:41 
GeneralRe: gridview page Pin
Vimalsoft(Pty) Ltd21-Jul-09 20:04
professionalVimalsoft(Pty) Ltd21-Jul-09 20:04 
AnswerRe: gridview page Pin
Abhishek Sur21-Jul-09 5:30
professionalAbhishek Sur21-Jul-09 5:30 
Questionerror : panel1 does not exits in correct context Pin
pupilstuff21-Jul-09 3:33
pupilstuff21-Jul-09 3:33 
AnswerRe: error : panel1 does not exits in correct context Pin
Abhijit Jana21-Jul-09 3:38
professionalAbhijit Jana21-Jul-09 3:38 

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.