Forcing a Download Dialog to Display(soliddotnet.com)

submitted by neerajmathurneerajmathur(130) 2 years, 8 months ago

If your browser is capable of rendering the content type (or has a plugin that does so), it will render the binary content when you click on a link to the handler. However , if you’d prefer to have a Download dialog appear instead, you need to set the Content-Disposition header like so: Response.AddHeader("Content-Disposition", "attachment; filename=\"MyFile.doc\""); This code will display a File Save dialog in which the filename is defaulted to MyFile.doc. UA:F [1.6.3_896]

add a comment |category: |Views: 9

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story