Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Cancel Postback in Silverlight 2.0 RSS

2 replies

Last post Mar 14, 2008 01:50 PM by jackbond

(0)
  • kemaltolga

    kemaltolga

    Member

    179 Points

    235 Posts

    Cancel Postback in Silverlight 2.0

    Mar 14, 2008 12:55 PM | LINK

    In SL 1.1 I was able to cancel the postback if user went crazy on button clicks. How would I go about that in SL 2?

    thanks

    tolga

    Application Developer
    tkoseoglu@live.com
  • mchlSync

    mchlSync

    Star

    14968 Points

    2799 Posts

    Re: Cancel Postback in Silverlight 2.0

    Mar 14, 2008 01:02 PM | LINK

    kemaltolga

    How would I go about that in SL 2?
     

    In Silverlight 2.0, there is a standard button control that doesn't make post-back. So, you don't need to worry about post-back.  

    (If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

    Regards,
    Michael Sync
    Silverlight MVP

    Blog : http://michaelsync.net
  • jackbond

    jackbond

    Contributor

    5812 Points

    1559 Posts

    Re: Cancel Postback in Silverlight 2.0

    Mar 14, 2008 01:50 PM | LINK

    For my money, I just disable the button, and then re-enable it in the response handler.

    Cracks me up when I see web sites with forms that read, "Please don't press the submit button more than once." When you see a message like that, you can pretty much assume they have no clue what sql injection attacks are and forget about giving them your credit card data. (And that their programmers spell Microsoft with a $)