Code
<%
if (Session["id"] != null && Session["id"].ToString() != "")
{
%> <table style="width: 980px;font-size: 12px; height: 24px;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right" style="background-image: url(images/menu_bottom_bj.gif);">
<span style="color: skyblue"> <span style="color: tomato"><strong> 欢迎您:</strong></span></span><a href="/hr/member/PersonalMain.aspx?id=<%=Session["id"]%>" target="_self"><%=Session["username"].ToString() %><span
style="color: tomato"><strong> 进入管理页</strong></span></a>
</td>
</tr>
</table>
<%
}
else
{
%>
</td>
</tr>
<tr>
<td align="right" style="width: 980px; height: 24px; background-image: url(images/menu_bottom_bj.gif);">
用户名:<asp:TextBox ID="UserName" runat="server" Height="15px" Width="65px"></asp:TextBox>
密码:<asp:TextBox ID="Password"
runat="server" TextMode="Password" Height="15px" Width="67px"></asp:TextBox>
<asp:ImageButton ID="Button3" runat="server" ImageUrl="~/hr/images/login.gif" OnClick="Button3_Click" />
</td>
</tr>
<%} %>
转载于:https://www.cnblogs.com/server/archive/2008/10/28/1321518.html