By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,723 Members | 844 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,723 IT Pros & Developers. It's quick & easy.

content-disposition causes dns error

P: n/a
Ive got this piece of asp.net code that works in some machines running
win 2003 but not in certain others. Any idea what could be the problem

string strPath = Server.MapPath("/mypdf/test.pdf");
FileInfo fileInfo = new FileInfo(strPath);
Response.Clear();
Response.AddHeader("Content-Length", fileInfo.Length.ToString());
Response.ContentType = "application/pdf";
Response.AddHeader("Content-Disposition", "attachment; filename=" +
strPath);
Response.WriteFile(fileInfo.FullName);
Response.End();

I am using IE 6 with SP1

Apr 21 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.