Groups > Asp .Net > Visual Web Developer 2005 Express > Re: Issue: When requesting a .aspx home page, I get a file download prompt for VWExpress.aspx.8.0




Issue: When requesting a .aspx home page, I get a file
download prompt for VWExpress.aspx.8.0

Issue: When requesting a .aspx home page, I get a file download prompt for VWExpress.aspx.8.0
Wed, 27 Feb 2008 08:09:18 +000
When I request my home page, i get a prompt from the browser saying

 "Do you want to open or download this file"  VWExpress.aspx.8.0

 This should not be happening...any ideas are greatly appreciated.

 

Thanks

Mark
Post Reply
Re: Issue: When requesting a .aspx home page, I get a file download prompt for VWExpress.aspx.8.0
Thu, 28 Feb 2008 01:11:57 +000
Ok, So what was going on is the on the server-side I was setting my response
headers to javascript because i was plugging a js snip into the page.

Response.ContentType = "application/x-javascript";

As it turns out, VWDExpress did not recognize this content type, BUT, it should
have.  Since it did not recognize it, it thought it was a file and ask if i
wanted to download it.

 I changed the type to "html/text" and it works fine now.

 

eof.
Post Reply
about | contact