Prevent Postback with ImageButton

  • Thread starter Thread starter Marcelo
  • Start date Start date
M

Marcelo

Hi,

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
 
the button has a postback property (i forget the exact name). set that
to false to disable postback
 
I found no Postback property for ImageButton

Kairi Zikpin said:
the button has a postback property (i forget the exact name). set that
to false to disable postback
 
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
 
Back
Top