Click here to Skip to main content
15,887,363 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
hi,
i have a subjects table in my database i have displayed the subject names to gridview
and a link to download the particular subject pdf. pdfs are in the database in the binary format,
how to attach pdf file to gridview and when i clicked the pdf link it should display in new tab.
help me in my requirement.
Posted

check the link below, since you have the pdf as a binary field, just push the data to the output string of a page.

lest call that page downloadpdf.aspx, then link to that page using target="_blank" that will open it in a new tab.

http://stackoverflow.com/questions/1532039/write-outputstream-in-new-window-asp-net[^]

Hope it helps.
 
Share this answer
 
Start(ProcessStartInfo)

Starts the process resource that is specified by the parameter containing process start information (for example, the file name of the process to start) and associates the resource with a new Process component.

Google Start.Process to get more info.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900