Solved

asp.net, pdf

Posted on 2013-06-09
3
274 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

732 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