Silverlight: How to disable the browser’s refresh button?

I am developing a Silverlight application (i.e. no HTML content at all), and one of the biggest complaints is that if the user accidentally clicks F5, the application will restart.

So is there any way to disable the “refresh” button in the browser? Or at least handle F5?

Here are a few options

http://forums .silverlight.net/forums/p/105879/243232.aspx

From the link:

One option is to hook into the window< br> object’onbeforeunload’ event and
prompt the user to confirm the
refresh/exit intent. Here is a
simple example that could be defined
in your HTML markup or even emitted
from the SL app (if it has DOM
access):

I am developing a Silverlight Application (i.e. no HTML content at all), one of the biggest complaints is that if the user accidentally clicks F5, the application will restart.

So is there any way to disable it in the browser” Refresh button? Or at least handle F5?

There are several options here

http://forums.silverlight.net/forums/p/105879/243232 .aspx

From the link:

One option is to hook into the window
object’onbeforeunload’ event and
prompt the user to confirm the
refresh/exit intent. Here is a
simple example that could be defined
in your HTML markup or even emitted
from the SL app (if it has DOM
access):

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4057 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.