开发者

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");

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜