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

ASP.NET

 
GeneralRe: Web service: resource managment Pin
teejayem21-Jul-09 11:53
teejayem21-Jul-09 11:53 
Questionwrite and create a pdf file from a document Pin
narendra_roy21-Jul-09 8:59
narendra_roy21-Jul-09 8:59 
AnswerRe: write and create a pdf file from a document Pin
Christian Graus21-Jul-09 10:15
protectorChristian Graus21-Jul-09 10:15 
AnswerRe: write and create a pdf file from a document Pin
Abhishek Sur21-Jul-09 10:23
professionalAbhishek Sur21-Jul-09 10:23 
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 
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 

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.