Click here to Skip to main content
15,891,529 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionError Pin
nithydurai17-Feb-09 21:57
nithydurai17-Feb-09 21:57 
QuestionHelp required in ASP.net treeview Pin
Member 350019817-Feb-09 21:55
Member 350019817-Feb-09 21:55 
QuestionHelp required in ExcelDriver Part in ASP Pin
priyaahh17-Feb-09 21:34
priyaahh17-Feb-09 21:34 
Questionerror while trying to publish my web application Pin
Mansour Shaaban17-Feb-09 21:32
Mansour Shaaban17-Feb-09 21:32 
AnswerRe: error while trying to publish my web application Pin
Vimalsoft(Pty) Ltd17-Feb-09 21:42
professionalVimalsoft(Pty) Ltd17-Feb-09 21:42 
Questiondate time picker.. problem Pin
anujbanka178417-Feb-09 21:19
anujbanka178417-Feb-09 21:19 
AnswerRe: date time picker.. problem Pin
mr_muskurahat17-Feb-09 22:23
mr_muskurahat17-Feb-09 22:23 
QuestionASP.NET File Download Pin
kraven00117-Feb-09 21:07
kraven00117-Feb-09 21:07 
Hi guys,

I'm trying to do a file download for a user in ASP.NET. The method I'm using is writing the entire file to the Response the client gets. This approach works as expected in IE7 / Firefox / Etc. Unfortunately this approach crashes IE6. Locally on my machine (XP + IIS 5.1) it also works in IE6, but on the server machine (WIN2003 + IIS 6) it doesn't.
Response.Clear();
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentEncoding = System.Text.UTF8Encoding.UTF8;
Response.Charset = "";

Response.ContentType = "application/text";

sr_File = new StreamReader(file.FullName);
        
Response.BinaryWrite(new BinaryReader(sr_File.BaseStream).ReadBytes((int) sr_File.BaseStream.Length));

Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);

Response.AddHeader("Content-Length", file.Length.ToString());

Response.Flush();
HttpContext.Current.ApplicationInstance.CompleteRequest();

sr_File.Close();


Any ideas are greatly appreciated!

Thanks!
AnswerRe: ASP.NET File Download Pin
N a v a n e e t h17-Feb-09 21:57
N a v a n e e t h17-Feb-09 21:57 
GeneralRe: ASP.NET File Download Pin
kraven00117-Feb-09 22:10
kraven00117-Feb-09 22:10 
QuestionHELP !!! Radio button font size change Pin
Docarctiss17-Feb-09 20:59
Docarctiss17-Feb-09 20:59 
AnswerRe: HELP !!! Radio button font size change Pin
Anurag Gandhi17-Feb-09 23:02
professionalAnurag Gandhi17-Feb-09 23:02 
QuestionHow Store video and picture file using sql2000 with a unique user Pin
ali2k617-Feb-09 20:33
ali2k617-Feb-09 20:33 
Questionhow to filter distinct row from DataView Pin
krishnaveer17-Feb-09 20:32
krishnaveer17-Feb-09 20:32 
AnswerRe: how to filter distinct row from DataView Pin
Abhishek Sur17-Feb-09 20:42
professionalAbhishek Sur17-Feb-09 20:42 
AnswerRe: how to filter distinct row from DataView Pin
Satish Mahapatra17-Feb-09 20:42
Satish Mahapatra17-Feb-09 20:42 
GeneralRe: how to filter distinct row from DataView Pin
krishnaveer17-Feb-09 20:47
krishnaveer17-Feb-09 20:47 
AnswerRe: how to filter distinct row from DataView Pin
N a v a n e e t h17-Feb-09 21:53
N a v a n e e t h17-Feb-09 21:53 
QuestionThe Application relative Virtual path '~' is not allowed here Pin
Vimalsoft(Pty) Ltd17-Feb-09 20:15
professionalVimalsoft(Pty) Ltd17-Feb-09 20:15 
QuestionCalendar? Pin
Karthick_gc17-Feb-09 20:14
Karthick_gc17-Feb-09 20:14 
Questionopening excel document Pin
vedharadha17-Feb-09 20:12
vedharadha17-Feb-09 20:12 
AnswerRe: opening excel document Pin
Abhishek Sur17-Feb-09 20:35
professionalAbhishek Sur17-Feb-09 20:35 
GeneralRe: opening excel document Pin
vedharadha17-Feb-09 21:44
vedharadha17-Feb-09 21:44 
GeneralRe: opening excel document Pin
keyur satyadev18-Feb-09 0:23
keyur satyadev18-Feb-09 0:23 
QuestionButton on AJAXModalPopup not firing the event Pin
anada888617-Feb-09 19:48
anada888617-Feb-09 19:48 

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.