Solved

asp.net, pdf

Posted on 2013-06-09
3
265 Views
Last Modified: 2014-07-21
I have a asp.net gridview to show pdf directory information. like <a href="http://www.hello.com/reports/printpdf.pdf">Print</a>

So under "Reports" folder, we have 1000 pdf there. My question is. I don't want public user without login websites to download the document.

how can we do that?
0
Comment
Question by:solution1368
3 Comments
 

Expert Comment

by:karthi7688
ID: 39233918
Keep track of the users in session variable and check for the session value during download.
Hope this helps.
0
 
LVL 7

Accepted Solution

by:
aplusexpert earned 500 total points
ID: 39234523
I think you can prevent by don't allowing directory browsing to your virtual directory.
0
 

Author Comment

by:solution1368
ID: 39239017
by: aplusexpert: can you show me how?
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
asp.net bundle 8 36
Round up to 100% in .NET 10 44
Create XML 5 33
what technologies offer Authentication over Web Services? 4 65
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now