messagebox.aspx

来自「asp.net专家200问(含源代码解决法案」· ASPX 代码 · 共 59 行

ASPX
59
字号
<%@ Page language="c#" Codebehind="MessageBox.aspx.cs" AutoEventWireup="false" Inherits="AccessKey.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<TABLE height="467" cellSpacing="0" cellPadding="0" width="309" border="0" ms_2d_layout="TRUE">
			<TR>
				<TD width="0" height="0"></TD>
				<TD width="10" height="0"></TD>
				<TD width="299" height="0"></TD>
			</TR>
			<TR vAlign="top">
				<TD width="0" height="15"></TD>
				<TD colSpan="2" rowSpan="2">
					<form id="Form1" method="post" runat="server">
						<TABLE height="292" cellSpacing="0" cellPadding="0" width="455" border="0" ms_2d_layout="TRUE">
							<TR vAlign="top">
								<TD width="272" height="208"></TD>
								<TD width="48"></TD>
								<TD width="96"></TD>
								<TD width="39"></TD>
							</TR>
							<TR vAlign="top">
								<TD height="64"></TD>
								<TD colSpan="2">
									<asp:Button id="Delbtn" tabIndex="3" runat="server" Text="confirm"></asp:Button></TD>
								<TD>
									<asp:Button id="Button1" runat="server" Text="alert"></asp:Button></TD>
							</TR>
							<TR vAlign="top">
								<TD colSpan="2" height="20"></TD>
								<TD colSpan="2">
									<asp:Label id="Msglbl" runat="server"></asp:Label></TD>
							</TR>
						</TABLE>
					</form>
				</TD>
			</TR>
			<TR vAlign="top">
				<TD width="0" height="452"></TD>
				<TD>
					<script language="javascript">
function  keyDown()
{
var  keycode=event.keyCode;
var  keyChar=String.fromCharCode(keycode);
if(keycode==13)
event.keyCode=9;
};
document.onkeydown=keyDown;

					</script>
				</TD>
			</TR>
		</TABLE>
	</body>
</HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?