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 $)
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
tkoseoglu@live.com
mchlSync
Star
14968 Points
2799 Posts
Re: Cancel Postback in Silverlight 2.0
Mar 14, 2008 01:02 PM | LINK
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.
Regards,
Michael Sync
Silverlight MVP
Blog : http://michaelsync.net
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 $)
Khet - The first Silverlight multiplayer game
Zork I: The Great Underground Empire