网页的布局
<body bgcolor="#b6b7bc">
<form id="form1" runat="server">
<div style="height: 600px; background: url(Image/login.jpg) no-repeat center center;">
<div style="width: 50%; position: relative; left: 30%; top: 55%; right: 50%; bottom: 50%;">
<asp:Label ID="m_DevedCodeLabel" runat="server" Text="设备码:"></asp:Label>
<asp:TextBox ID="m_DevedCodeTextBox" runat="server" ReadOnly="True" Width="320px"></asp:TextBox>
<br />
<br />
<asp:Label ID="m_MessageLabel" runat="server" ForeColor="Red" Visible="False"></asp:Label>
<br />
<asp:Button ID="m_OKButton" runat="server" Text="提交注册申请" />
</div>
</div>
</form>
</body>
异步调用:
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="m_MessageLabel" runat="server" ForeColor="Red" Visible="False"></asp:Label>
<br />
<asp:Button ID="m_OKButton" runat="server" Text="提交注册申请" OnClick="m_OKButton_Click" />
</ContentTemplate>
</asp:UpdatePanel>