Click here to Skip to main content
15,890,438 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: pop up page of defined size in asp.net Pin
thomas_joyee11-Oct-06 0:27
thomas_joyee11-Oct-06 0:27 
QuestionDeployment/publishing queries Pin
Alice@mywonderland10-Oct-06 22:39
Alice@mywonderland10-Oct-06 22:39 
Questionhtml to pdf Pin
TintinV3ck10-Oct-06 22:20
TintinV3ck10-Oct-06 22:20 
AnswerRe: html to pdf Pin
Andrei_KS10-Oct-06 23:29
Andrei_KS10-Oct-06 23:29 
GeneralRe: html to pdf Pin
TintinV3ck11-Oct-06 1:18
TintinV3ck11-Oct-06 1:18 
AnswerRe: html to pdf Pin
Vasudevan Deepak Kumar12-Oct-06 4:50
Vasudevan Deepak Kumar12-Oct-06 4:50 
QuestionIs it possible to make a directory not under the application directroy in www.root ? Pin
King Shez10-Oct-06 21:46
King Shez10-Oct-06 21:46 
AnswerRe: Is it possible to make a directory not under the application directroy in www.root ? Pin
perlmunger12-Oct-06 5:19
perlmunger12-Oct-06 5: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 21:20
aaraaayen10-Oct-06 21:20 
AnswerRe: Access to Excel Pin
perlmunger12-Oct-06 5:27
perlmunger12-Oct-06 5:27 
QuestionMenu control or load data from dataset to linbutton Pin
Vipin.d10-Oct-06 21:16
Vipin.d10-Oct-06 21:16 
QuestionContext Menu on Tree view node Pin
joe_elsy10-Oct-06 20:48
joe_elsy10-Oct-06 20:48 
QuestionIssues in VS 2005+Crystal Report+Atlas Pin
skannapiran10-Oct-06 20:29
skannapiran10-Oct-06 20:29 
QuestionHow to connect ASP.NET to Lotus Notes Pin
justprashant10-Oct-06 20:15
justprashant10-Oct-06 20:15 
Questionjavascript error Pin
srilu nagalla10-Oct-06 20:06
srilu nagalla10-Oct-06 20:06 
AnswerRe: javascript error Pin
CWIZO10-Oct-06 22:59
CWIZO10-Oct-06 22:59 
QuestionASP.Net Uploading Problem Pin
King Shez10-Oct-06 19:59
King Shez10-Oct-06 19:59 
AnswerRe: ASP.Net Uploading Problem Pin
Andrei_KS10-Oct-06 20:09
Andrei_KS10-Oct-06 20:09 
GeneralRe: ASP.Net Uploading Problem Pin
King Shez10-Oct-06 20:40
King Shez10-Oct-06 20:40 
GeneralRe: ASP.Net Uploading Problem Pin
Andrei_KS10-Oct-06 20:50
Andrei_KS10-Oct-06 20:50 
GeneralRe: ASP.Net Uploading Problem Pin
Andrei_KS10-Oct-06 21:01
Andrei_KS10-Oct-06 21:01 
GeneralRe: ASP.Net Uploading Problem Pin
_AK_10-Oct-06 21:11
_AK_10-Oct-06 21:11 
GeneralRe: ASP.Net Uploading Problem Pin
Andrei_KS10-Oct-06 21:39
Andrei_KS10-Oct-06 21:39 
GeneralRe: ASP.Net Uploading Problem Pin
King Shez10-Oct-06 22:40
King Shez10-Oct-06 22:40 
QuestionJavascript based Annotation tool Pin
sribachana10-Oct-06 19:55
sribachana10-Oct-06 19: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.