Click here to Skip to main content
15,891,136 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
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 
Brij,

Thank you for the quick reply. I applied your code as follows. Below is the complete error message returned:

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

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

Source Error:

Line 476: protected void GridViewResults_RowCommand(object sender, GridViewCommandEventArgs e)
Line 477: {
Line 478: string pdf = GridViewResults.Rows[Convert.ToInt32(e.CommandArgument)].Cells[6].Text;

I have also reduced the Cells value to [1] (there are 7 columns) just to make sure that I was not out of the Cell column range. I am a bit surprised that there is no "text overload" as an option as there is in C# desk application. The error is the same. Please let me know if you have any other ideas or if I am applying your code incorrectly. Thank you again for your input. I really need to get this done today.

Best Regards, Pat
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 
AnswerRe: error : panel1 does not exits in correct context Pin
Brij21-Jul-09 3:38
mentorBrij21-Jul-09 3:38 
AnswerRe: error : panel1 does not exits in correct context Pin
Abhishek Sur21-Jul-09 5:26
professionalAbhishek Sur21-Jul-09 5:26 

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.