Click here to Skip to main content
15,885,366 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: adrotator Pin
Sushant Duggal18-Jul-06 18:08
Sushant Duggal18-Jul-06 18:08 
Questionmedia player stops when expand or collapse a tree node Pin
3nbar, A7mad A18-Jul-06 10:13
3nbar, A7mad A18-Jul-06 10:13 
AnswerRe: media player stops when expand or collapse a tree node Pin
RichardGrimmer21-Jul-06 3:52
RichardGrimmer21-Jul-06 3:52 
Questionexpand/collapse images in TreeView control Pin
3nbar, A7mad A18-Jul-06 9:30
3nbar, A7mad A18-Jul-06 9:30 
AnswerRe: expand/collapse images in TreeView control Pin
Not Active18-Jul-06 9:32
mentorNot Active18-Jul-06 9:32 
Questionrotating images in Adrotator Pin
ravindradonkada18-Jul-06 7:30
ravindradonkada18-Jul-06 7:30 
AnswerRe: rotating images in Adrotator [modified] Pin
StonePit18-Jul-06 8:29
StonePit18-Jul-06 8:29 
QuestionDownloading file from ASP.NET 2.0 web page Pin
seee sharp18-Jul-06 6:43
seee sharp18-Jul-06 6:43 
I have to provide download from ASP.NET 2.0 web page. I have following code


objFileInfo = new FileInfo(filePath);
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=" + objFileInfo.Name);
Response.AddHeader("Content-Length", objFileInfo.Length.ToString());
Response.ContentType = "application/octet-stream";
Response.BinaryWrite(GetFileContentsAsByteStream(filePath));

When I use this, i am able to see a popup saying OPEN/SAVE/CANCEL. If I click on SAVE, the file gets saved at selected location. If I select OPEN, it shows that it is downloading file, Then it opens respective application to open downloaded file. But at this time the application says, file not found.

Has anyone have idea what could be the reason and how can I get the file open.

Thanks in advance.Smile | :)

- ashish
AnswerRe: Downloading file from ASP.NET 2.0 web page Pin
StonePit18-Jul-06 7:31
StonePit18-Jul-06 7:31 
GeneralRe: Downloading file from ASP.NET 2.0 web page Pin
seee sharp18-Jul-06 22:22
seee sharp18-Jul-06 22:22 
QuestionRegarding datagrid Pin
DivyaJagadish18-Jul-06 5:29
DivyaJagadish18-Jul-06 5:29 
AnswerRe: Regarding datagrid Pin
Saifi Hasan18-Jul-06 19:02
Saifi Hasan18-Jul-06 19:02 
Question.net Atlas project problems!! Pin
richiemac18-Jul-06 4:50
richiemac18-Jul-06 4:50 
AnswerRe: .net Atlas project problems!! Pin
minhpc_bk18-Jul-06 20:11
minhpc_bk18-Jul-06 20:11 
GeneralRe: .net Atlas project problems!! Pin
richiemac18-Jul-06 22:01
richiemac18-Jul-06 22:01 
GeneralRe: .net Atlas project problems!! Pin
minhpc_bk18-Jul-06 22:59
minhpc_bk18-Jul-06 22:59 
GeneralRe: .net Atlas project problems!! Pin
richiemac18-Jul-06 23:10
richiemac18-Jul-06 23:10 
Questionclient side... Label Pin
dansoft18-Jul-06 4:32
dansoft18-Jul-06 4:32 
AnswerRe: client side... Label Pin
minhpc_bk18-Jul-06 16:29
minhpc_bk18-Jul-06 16:29 
QuestionSMTP problem [modified] Pin
Tiger45618-Jul-06 3:14
Tiger45618-Jul-06 3:14 
AnswerRe: SMTP problem Pin
ASandeep18-Jul-06 9:19
ASandeep18-Jul-06 9:19 
QuestionHi , i need an advice Pin
Mohammed Amine18-Jul-06 1:54
Mohammed Amine18-Jul-06 1:54 
AnswerRe: Hi , i need an advice Pin
Jim Conigliaro18-Jul-06 2:02
Jim Conigliaro18-Jul-06 2:02 
GeneralRe: Hi , i need an advice Pin
Mohammed Amine18-Jul-06 2:22
Mohammed Amine18-Jul-06 2:22 
GeneralRe: Hi , i need an advice Pin
Jim Conigliaro18-Jul-06 3:40
Jim Conigliaro18-Jul-06 3:40 

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.