Pls help: Response.redirect doesn't work

Discussion in 'ASP .Net' started by VB Programmer, Jan 24, 2005.

  1. 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.
     
    VB Programmer, Jan 24, 2005
    #1
    1. Advertising

  2. VB Programmer

    Elton Wang Guest

    Hi,

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

    Elton Wang


    >-----Original Message-----
    >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.
    >
    >
    >.
    >
     
    Elton Wang, Jan 24, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?VHJveQ==?=

    Response.redirect does not redirect from .aspx page

    =?Utf-8?B?VHJveQ==?=, Oct 18, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    5,303
    Srowe1975
    Oct 15, 2008
  2. mark mcfarlane
    Replies:
    3
    Views:
    4,905
    Ensonix
    Jul 29, 2006
  3. Sal
    Replies:
    1
    Views:
    825
  4. D. Nii
    Replies:
    2
    Views:
    154
    Ken Schaefer
    Aug 7, 2003
  5. Ron Howard
    Replies:
    2
    Views:
    544
    Ron Howard
    Aug 11, 2004
Loading...

Share This Page