![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Tags: |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |||
| [SOLVED] how can i load a PDF on an asp.net page? I have pdfs located at location c:\pdfs I would like the user to call page request.aspx and if they are logged in display the pdf. Is there anyway to load the pdf onto the page without using the exact pdf location? I mean I need it to be an aspx page or something i dont know. Hey rex, You help me out all the time....I just wanted to say I really appreciate it. Its awesome that you give back to the community like that! |
| |
| |||
| The best way is to use an HTTPHandler. Essentially these are classes which "trap" the server request for any kind of file you want (in this case, a .pdf file) and process the class instead. If the user is logged in, you can then look up the PDF filename that is being requested and write it to the output stream. Start by Googling HTTPHandler and reading the documentation/examples. |
![]() |
| Thread Tools | |
| Display Modes | |
| |