Hi there, I am currently working on a project where you can upload and view a PDF document. So far I have the upload PDF function completely working. The only issue I am having is when I click on my View LinkButton I get an error: "Input string was not in a correct format.". I feel as though my LinkButton is properly linked but the error occurs when it hits:
int id = int.Parse((sender as LinkButton).CommandArgument);
Also, when I use: //var id = ((LinkButton)sender).CommandArgument; instead, I'm not getting errors, but nothing is showing up.
The code for my LinkButton is shown here:
Any help would be GREATLY appreciated!
Thanks you,
M
Thanks you,
M

Vignesh ManiRank #98 · 22.1K reputationPosted Mar 16, 2016, 2:12 PM EDT
alice yangRank #2,329 · 607 reputationPosted Mar 16, 2016, 5:21 PM EDT
Chris Gullison12 reputationPosted Mar 17, 2016, 6:02 AM EDT
Chris Gullison12 reputationPosted Mar 17, 2016, 9:59 AM EDT
Kip HackmanRank #2,595 · 536 reputationPosted Dec 17, 2020, 10:34 AM EST