asp.net in developing a asp.net system, often need to customize their own browser menus, toolbars.
In a recent project, there is an opportunity to take charge of this part.
The menu is Aspnetmenu, it seems not very stable, and the page refresh is very serious
The toolbars used by Microsoft provide a good iewebcontrol, but sometimes you lose events, which is depressing, as if event loss is often occurring in the. NET Framework.
<script language= "JavaScript" >
function Disablekey ()
{
8 backspace key
CTRL + N
Panax ALT + Direction key ←
ALT + Direction Key →
116 F5 Refresh Key
Ctrl + R
121 SHIFT+F10
115 Shielding Alt+f4
Screen shift plus left mouse button new page open
if (window.event.keycode==8
|| event.keycode==78
|| event.keycode==37
|| event.keycode==39
|| event.keycode==116
|| event.keycode==82
|| event.keycode==121
|| event.keycode==115
|| (Window.event.srcElement.tagName = "A" && Window.event.shiftKey))
{
Alert (' Please do it through the code of Things! ');
Window.event.returnvalue=false;
}
}
</script>
</HEAD>
< body ms_positioning= "GridLayout" >
........................
The code above is basically implemented, and the key value needed to be masked.
It seems to have finished the work, but does every page have to copy the code? Still under consideration!
Please the Master of guidance, it should be said to be a how to structure the system interface problem:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.