Click here to Skip to main content
12,635,232 members (24,017 online)
   

ASP.NET

 
GeneralRe: pop up page of defined size in asp.net Pin
thomas_joyee11-Oct-06 1:27
memberthomas_joyee11-Oct-06 1:27 
QuestionDeployment/publishing queries Pin
Alice@mywonderland10-Oct-06 23:39
memberAlice@mywonderland10-Oct-06 23:39 
Questionhtml to pdf Pin
TintinV3ck10-Oct-06 23:20
memberTintinV3ck10-Oct-06 23:20 
AnswerRe: html to pdf Pin
Andrei_KS11-Oct-06 0:29
memberAndrei_KS11-Oct-06 0:29 
GeneralRe: html to pdf Pin
TintinV3ck11-Oct-06 2:18
memberTintinV3ck11-Oct-06 2:18 
AnswerRe: html to pdf Pin
Vasudevan Deepak Kumar12-Oct-06 5:50
memberVasudevan Deepak Kumar12-Oct-06 5:50 
QuestionIs it possible to make a directory not under the application directroy in www.root ? Pin
King Shez10-Oct-06 22:46
memberKing Shez10-Oct-06 22:46 
AnswerRe: Is it possible to make a directory not under the application directroy in www.root ? Pin
perlmunger12-Oct-06 6:19
memberperlmunger12-Oct-06 6:19 
You have to make filesystem calls and basically do what the web server does--send header information and then the data stream. I haven't actually done this in ASP .NET, but I did it a long time ago in perl. Here is an article that should set you off in the right direction: http://www.eggheadcafe.com/articles/20011006.asp[^] . Basically what you have to do is:

1. Display links to the files that actually call an event where you can grab the appropriate file based on whatever validation you want (use Directory.GetFiles() to get the files you want from the directory outside the web tree).

2. When the user clicks on the link you've created for each file, in the event handler, check that they have all the appropriate credentials and then load the file into a filestream which you will then write back in the response after writing the "Content-disposition" header. See the above article for the details of how to do that.

I hope that helps.

-Matt



------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall

QuestionAccess to Excel Pin
aaraaayen10-Oct-06 22:20
memberaaraaayen10-Oct-06 22:20 
AnswerRe: Access to Excel Pin
perlmunger12-Oct-06 6:27
memberperlmunger12-Oct-06 6:27 
QuestionMenu control or load data from dataset to linbutton Pin
crazysanker10-Oct-06 22:16
membercrazysanker10-Oct-06 22:16 
QuestionContext Menu on Tree view node Pin
joe_elsy10-Oct-06 21:48
memberjoe_elsy10-Oct-06 21:48 
QuestionIssues in VS 2005+Crystal Report+Atlas Pin
skannapiran10-Oct-06 21:29
memberskannapiran10-Oct-06 21:29 
QuestionHow to connect ASP.NET to Lotus Notes Pin
justprashant10-Oct-06 21:15
memberjustprashant10-Oct-06 21:15 
Questionjavascript error Pin
srilu nagalla10-Oct-06 21:06
membersrilu nagalla10-Oct-06 21:06 
AnswerRe: javascript error Pin
CWIZO10-Oct-06 23:59
memberCWIZO10-Oct-06 23:59 
QuestionASP.Net Uploading Problem Pin
King Shez10-Oct-06 20:59
memberKing Shez10-Oct-06 20:59 
AnswerRe: ASP.Net Uploading Problem Pin
Andrei_KS10-Oct-06 21:09
memberAndrei_KS10-Oct-06 21:09 
GeneralRe: ASP.Net Uploading Problem Pin
King Shez10-Oct-06 21:40
memberKing Shez10-Oct-06 21:40 
GeneralRe: ASP.Net Uploading Problem Pin
Andrei_KS10-Oct-06 21:50
memberAndrei_KS10-Oct-06 21:50 
GeneralRe: ASP.Net Uploading Problem Pin
Andrei_KS10-Oct-06 22:01
memberAndrei_KS10-Oct-06 22:01 
GeneralRe: ASP.Net Uploading Problem Pin
Apurva Kaushal10-Oct-06 22:11
memberApurva Kaushal10-Oct-06 22:11 
GeneralRe: ASP.Net Uploading Problem Pin
Andrei_KS10-Oct-06 22:39
memberAndrei_KS10-Oct-06 22:39 
GeneralRe: ASP.Net Uploading Problem Pin
King Shez10-Oct-06 23:40
memberKing Shez10-Oct-06 23:40 
QuestionJavascript based Annotation tool Pin
sribachana10-Oct-06 20:55
membersribachana10-Oct-06 20:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.161208.2 | Last Updated 10 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid