redirect to an image
Why can't I redirect page to a image for example:
Response.Redirect("开发者_如何学编程http://www.domain.com/images/image.gif");
This doesn't show me the image. Also placing conten type image/gif doesn't show the image.
Works for me. I created an "images" folder and added the following to the Page_Load method of my Default.aspx page:
Response.Redirect("~/images/scenery.jpg");
try relative path, not a complete url
meaning Response.Redirect("images/image.gif");
精彩评论