Prevent Postback with ImageButton

Discussion in 'ASP .Net' started by Marcelo, Jul 1, 2003.

  1. Marcelo

    Marcelo Guest


    I have an ImageButton which, when clicked, redirects to another page. The
    problem is that page A (where the ImageButton is located) has lots of
    information, but when I click the button, it redraws the header of the
    table, which we'd like not to happen.
    My question is: Is there any way of prevent this postback? Or, is there any
    way of, in Page_Load, detect that it is happening due the click on the
    button, so I could redirect it before the header drawing?

    thanks in advance

    Marcelo, Jul 1, 2003
    1. Advertisements

  2. Marcelo

    Kairi Zikpin Guest

    the button has a postback property (i forget the exact name). set that
    to false to disable postback
    Kairi Zikpin, Jul 1, 2003
    1. Advertisements

  3. Marcelo

    Marcelo Guest

    I found no Postback property for ImageButton

    Marcelo, Jul 1, 2003
  4. Marcelo

    Kairi Zikpin Guest

    you are right. my bad. did not give this one due diligence.

    if you are redirectng to a new page, why is a table being redrawn? on
    which page is this table? i think i need some more details
    Kairi Zikpin, Jul 1, 2003
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.