You should never assume that the client's system supports PDF, which is not a part of W3 standard. It would not be a problem if PDF was requested as a separate page. Some systems have PDF support, usually in the form of some browser plug-ins. Such clients will give a choice to show it as a page or save the file. Other systems will only allow the user to save a file, which is not a problem at all; the user can always view or print it later; some systems may have no PDF support at all.
If you want to have PDF inside some HTML element,
don't even try. Instead, you have to parse PDF, extract structured data the way you want and map it to HTML in one or another way. If course, the resulting HTML can be the content of your table cell (
GridView
is always rendered in HTML as
table
element).
You have to parse PDF on the server side. This is a set of references to PDF libraries you can use:
http://csharp-source.net/open-source/pdf-libraries.
—SA