How to stop asp control from posting back?

Discussion in 'ASP .Net' started by Charlie, Oct 25, 2004.

  1. Charlie

    Charlie Guest

    Hi:

    I would just like to run some java script I have added to a linkbutton's
    attribute collection, but I don't want it to also post back. How do I stop
    it from posting back?

    Thanks,
    Charlie
    Charlie, Oct 25, 2004
    #1
    1. Advertising

  2. It sounds like you should use a hyperlink, not a linkbutton.
    The only real difference between the two is that the linkbutton does a
    postback, so you're using the wrong control.

    --
    I hope this helps,
    Steve C. Orr, MCSD, MVP
    http://Steve.Orr.net


    "Charlie" <> wrote in message
    news:...
    > Hi:
    >
    > I would just like to run some java script I have added to a linkbutton's
    > attribute collection, but I don't want it to also post back. How do I
    > stop it from posting back?
    >
    > Thanks,
    > Charlie
    >
    Steve C. Orr [MVP, MCSD], Oct 25, 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. Matt Theule

    Stop Debugging doesn't stop in ASP.NET

    Matt Theule, Jul 23, 2003, in forum: ASP .Net
    Replies:
    7
    Views:
    733
    Matt Theule
    Jul 24, 2003
  2. JezB

    Stop a button posting back

    JezB, Jun 22, 2004, in forum: ASP .Net
    Replies:
    9
    Views:
    3,395
    Eliyahu Goldin
    Jun 23, 2004
  3. Muhammad Usman

    GridView Control is not posting back correctly

    Muhammad Usman, Oct 26, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    484
    Muhammad Usman
    Oct 26, 2005
  4. GoCMS
    Replies:
    2
    Views:
    365
    GoCMS
    Sep 19, 2006
  5. spitapps

    Calendar Control posting back

    spitapps, Jan 28, 2007, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    165
    Thomas Hansen
    Jan 28, 2007
Loading...

Share This Page