Pls help: Response.redirect doesn't work

V

VB Programmer

Here is my code:
Private Sub imgMyPicture_Click(ByVal sender As System.Object, ByVal e As
System.Web.UI.ImageClickEventArgs) Handles imgMyPicture.Click
Response.Redirect(Me.imgMyPicture.ImageUrl, False)
End Sub

Per previous research I added the "False" argument and took the redirect out
of the Try Catch block. (Because it was getting the "thread aborted"
error.)

But, when I click on imgMyPicture it doesn't redirect to the image. I've
verified that the ImageUrl is valid. It's equal to:
C:\Inetpub\wwwroot\MyWeb\WorkOrderImages\leak1.jpg

Any ideas?

Thanks.
 
E

Elton Wang

Hi,

File path is not a valid http URL for Response.Redirect.

Elton Wang
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top