Web Server PostBack

Discussion in 'ASP .Net Web Controls' started by paul, Aug 17, 2004.

  1. paul

    paul Guest

    Is there a way to make a server control NOT postback on an event(ie click).
    For example, I have an image server control <asp:imagebutton> that I want to
    perform a client side action on a click event.
    I can do that easily, however, after the client side action takes place a
    server side post is also done. I thought there was some sort of AutoPostBack
    property but can't find it. I'm assuming there should be a way.

    thanks
    paul
     
    paul, Aug 17, 2004
    #1
    1. Advertising

  2. <img src="" onclick='return somefunc()' />

    in somefunc :

    function somefunc() {
    // do stuff here
    ....


    return false;
    }

    thats all
     
    Konrad Rotuski, Aug 17, 2004
    #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. Psych971
    Replies:
    5
    Views:
    4,662
    bruce barker
    Dec 17, 2004
  2. =?Utf-8?B?Q2hhZA==?=

    Postback not being set to True on first postback

    =?Utf-8?B?Q2hhZA==?=, Apr 4, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    526
    =?Utf-8?B?Q2hhZA==?=
    Apr 4, 2005
  3. gce
    Replies:
    2
    Views:
    1,732
  4. Jacky Chau
    Replies:
    2
    Views:
    2,117
    Ninjamyst
    Jun 8, 2005
  5. Wael_Bakr

    stop postback in postback events for server controls ??

    Wael_Bakr, Nov 30, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    517
    Wael_Bakr
    Nov 30, 2005
Loading...

Share This Page