0

hello
please i nead help with response.redirect to an absolute path,i tried everything i can but with no result so for example:
Response.Redirect("file:\\C:\Users\Toshiba\Desktop\4.jpg")
so ctrl and click in "file:\\C:\Users\Toshiba\Desktop\4.jpg" it display the image in visuel studio but it doesn't work in the browser.
so thank you for help.

6
Contributors
8
Replies
9
Views
7 Years
Discussion Span
Last Post by Shilpakmthn
0

ok i used response.writefile and it works but for aspx page it doesn't because it's not a file so back to response.redirect and again i tried everything i can with no result.
thanks again.

0

thank you for your answer but just i need to how write the path in response.redirect,and the path it's an absolute path not relative.

0

is there another method to open another aspx page ?

0

hello
please i nead help with response.redirect to an absolute path,i tried everything i can but with no result so for example:
Response.Redirect("file:\\C:\Users\Toshiba\Desktop\4.jpg")
so ctrl and click in "file:\\C:\Users\Toshiba\Desktop\4.jpg" it display the image in visuel studio but it doesn't work in the browser.
so thank you for help.

image should be under website folder. then use server.mappath("virtual path").

0

response.redirect is used for redirecting the file that resides in web application.
to redirect focus on client's local file , u have to find the file location , by find file through server.mappath.then redirect it through response.redirect.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.