Public void HideAllFunction (Page Page)
{
IF (! page.isstartupscriptregistered ("msghideAllFunction))
{
String Clientscript = @ "
Function KeyDown () {
IF ((Window.Event.Altkey) && ((Window.Event.Keycode == 37) || (WINDOW.Event.KeyCode == 39))))) // Shield Alt arrow keys ← // Shield Alt arrow keys →
{
Event.ReturnValue = false;
}
if (event.keycode == 116) // Shield F5 Refresh Keys
{
Event.Keycode = 0;
Event.ReturnValue = false;
}
IF ((Event.ctrlKey) && (event.keycode == 78)) // Shield Ctrl N
{
Event.ReturnValue = false;
}
IF ((Event.ShiftKey) && (event.keycode == 121)) // Shield Shift F10
{
Event.ReturnValue = false;
}
IF (event.keycode == 122) // Shield F11
{
Event.Keycode = 0;
Event.ReturnValue = false;
}
}
Function NocontextMenu () {Event.cancelbubble = true evenet.returnValue = false;
Return false;} Document.onkeyDown = keydown; document.οncοntextMenu = NOCONTEXTMENU; script>
Page.RegisterStartupScript ("MsghideAllFunction", Clientscript;}
}