Prevent Postback with ImageButton

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Prevent Postback with ImageButton

    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


    Marcelo Guest

  2. Similar Questions and Discussions

    1. ImageButton PostBack Help
      I cant figure out why this ImageButton doesn't post back the way a Button does. Can anyone explain to me why the RaisePostBackEvent() method doesn't...
    2. How do you prevent postback data from being loaded into controls?
      I've got a form that dynamically adds a DropDownList control to a page. After the page is posted back the the code behind rebuilds the control and...
    3. Imagebutton over a little text
      Hi, How can I put a little text below a imagebutton control ? Is there any property ? tks ed
    4. how to prevent prevent .so-calling routine to crash from segfaults in .so
      Hi, Guys I am stuck with a problem and need some help. Platform : Linux(RedHat 7.3) Problem Area : Dynamic Shared Object Libraries, POSIX...
    5. How can I put some text on a imageButton
      dear all,I want to put some text(caption) on a imageButton in asp.net,I guess this maybe be done by deriving a new class from ImageButton,but I...
  3. #2

    Default Re: Prevent Postback with ImageButton

    the button has a postback property (i forget the exact name). set that
    to false to disable postback

    Marcelo wrote:
    > 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
    >
    >
    Kairi Zikpin Guest

  4. #3

    Default Re: Prevent Postback with ImageButton

    I found no Postback property for ImageButton

    "Kairi Zikpin" <zikkai.nospam.@netscape.net> wrote in message
    news:3F019A43.8050806@netscape.net...
    > the button has a postback property (i forget the exact name). set that
    > to false to disable postback
    >
    > Marcelo wrote:
    > > 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
    > >
    > >
    >

    Marcelo Guest

  5. #4

    Default Re: Prevent Postback with ImageButton

    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

    Marcelo wrote:
    > I found no Postback property for ImageButton
    >
    > "Kairi Zikpin" <zikkai.nospam.@netscape.net> wrote in message
    > news:3F019A43.8050806@netscape.net...
    >
    >>the button has a postback property (i forget the exact name). set that
    >>to false to disable postback
    >>
    >>Marcelo wrote:
    >>
    >>>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
    >>>
    >>>
    >>
    >
    >
    Kairi Zikpin Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139