webform1.aspx

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

ASPX
28
字号
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="示例代码._1.WebForm2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>WebForm1</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script language="javascript">
		function Setfirstfocus()
		{
			document.all.name.focus();
		}
		</script>
	</HEAD>
	<body MS_POSITIONING="GridLayout" onload="Setfirstfocus()">
		<form id="WebForm1" method="post" runat="server">
			<asp:Button id="Button1" runat="server" Text="Button" style="Z-INDEX: 101; LEFT: 368px; POSITION: absolute; TOP: 192px"></asp:Button>
			<asp:Label id="Label1" runat="server" style="Z-INDEX: 102; LEFT: 272px; POSITION: absolute; TOP: 88px">用户名:</asp:Label>
			<asp:TextBox id="name" runat="server" style="Z-INDEX: 103; LEFT: 328px; POSITION: absolute; TOP: 88px">获取焦点</asp:TextBox>
			<asp:TextBox id="pass" runat="server" style="Z-INDEX: 104; LEFT: 328px; POSITION: absolute; TOP: 128px"></asp:TextBox>
			<asp:Label id="Label2" runat="server" style="Z-INDEX: 105; LEFT: 272px; POSITION: absolute; TOP: 128px">密码:</asp:Label>
		</form>
		</FORM>
	</body>
</HTML>

⌨️ 快捷键说明

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