We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to disable the Refresh Button

Thread ID:





42725 Apr 5,2006 06:11 AM UTC Apr 5,2006 11:34 AM UTC ASP.NET Web Forms (Classic) 1
Tags: FAQ
Asked On April 5, 2006 06:11 AM UTC

Hi, I am Sabareeswaren doing an In-House Project. I am currently doing a "Video on Demand" project in that i need to show a movie which should appear for a particular time span, after that i should close. My Problem is while running the movie, if i Press F5 or REFRESH button, the movie get stopped and strarts from the beginning. Please do help me to finish this!!!!!! Thnaks in Advance!!! Sabareeswaren.

Administrator [Syncfusion]
Replied On April 5, 2006 11:34 AM UTC

Hi, You can prevent using the F5 by using the following script ,and this can only be done in IE browser. if (document.all){ document.onkeydown = function (){ var key_f5 = 116; // 116 = F5 if (key_f5==event.keyCode){ alert("No refresh allowed"); return false; } } } and not sure about disabling the button in the button bars. Best Regards, Hari.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon