المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Response Headers



C# Programming
04-14-2009, 02:14 PM
Hi all,

Is there a way that i can use inline and attachment at the same time in content-disposition for Response Headers?

i have code like this

HttpContext.Current.Response.AddHeader("Content-disposition", "inline; filename=__aaa.pdf");

I want to open the file first in the browser and then open the dialog box for download as well.
How can i do that?
I tried to AddHeader again after that line of code and replaced the "inline" with "attachment", but that didn't work.


Please help me.

Thanks alot!

-ewin http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif