S
S.Kartikeyan
I read previous posts in the group regarding
Response.AddHeader("content-disposition","filename:somefilename");
My aim is to send a file from aspx page with some file name.
when the page is opened in Internet Explorer it should display
the OpenFileDialog asking me to whether to open|save the file.
When i do it and access the page from internet explorer it shows the
DialogBox asking me whether to open or save the file .When i say open
two times ,
the third time i open the page ,Internet Explorer Doesn't show the
dialog and instead displays the text inside like this.
\\Flute\\\Flute\testcase1_audio.wma \\Flute\testcase1_video.wma
My code is like this in FileResponse.aspx page
private void Page_Load(object sender, System.EventArgs e)
{
//Behaviour is not changing by uncommenting the below line.
//Response.ContentType = "text/html";
Response.AddHeader("content-disposition",
"attachment;filename=test.uls");
Response.Output.WriteLine(@"<ulslecture>");
Response.Output.WriteLine(@"<audiourl>\\Flute\testcase1_audio.wma</audiourl>");
Response.Output.WriteLine(@"<videourl>\\Flute\testcase1_video.wma</videourl>");
Response.Output.WriteLine(@"</ulslecture>");
Response.End();
}
What is the problem.
Is the bug in the Internet Explorer
Is there any work around
S.Kartikeyan
Response.AddHeader("content-disposition","filename:somefilename");
My aim is to send a file from aspx page with some file name.
when the page is opened in Internet Explorer it should display
the OpenFileDialog asking me to whether to open|save the file.
When i do it and access the page from internet explorer it shows the
DialogBox asking me whether to open or save the file .When i say open
two times ,
the third time i open the page ,Internet Explorer Doesn't show the
dialog and instead displays the text inside like this.
\\Flute\\\Flute\testcase1_audio.wma \\Flute\testcase1_video.wma
My code is like this in FileResponse.aspx page
private void Page_Load(object sender, System.EventArgs e)
{
//Behaviour is not changing by uncommenting the below line.
//Response.ContentType = "text/html";
Response.AddHeader("content-disposition",
"attachment;filename=test.uls");
Response.Output.WriteLine(@"<ulslecture>");
Response.Output.WriteLine(@"<audiourl>\\Flute\testcase1_audio.wma</audiourl>");
Response.Output.WriteLine(@"<videourl>\\Flute\testcase1_video.wma</videourl>");
Response.Output.WriteLine(@"</ulslecture>");
Response.End();
}
What is the problem.
Is the bug in the Internet Explorer
Is there any work around
S.Kartikeyan