62,243
社区成员




<asp:DataList ID="dl" runat="server" >
<ItemTemplate>
<asp:HyperLink ID="hlreply" NavigateUrl='<%#Eval("id","FocusCard.aspx?id={0}") %>' Text="回复" runat="server"></asp:HyperLink>
</ItemTemplate>
</asp:DataList>
protected void birthday_SelectionChanged(object sender, EventArgs e)
{
txtbirthday.Text = birthday.SelectedDate.ToShortDateString();
birthday.Visible = false;
}
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="admin_Register" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div id="contianer" style="text-align: center; height: 5px">
<div style="color: Red; background-color: Black">
<strong><span>用户注册</span></strong></div>
<table>
<tr>
<th>
账 号:</th>
<td>
<asp:TextBox ID="txtaccount" runat="server"></asp:TextBox></td>
</tr>
<tr>
<th>
密 码:</th>
<td>
<asp:TextBox ID="txtpassword" runat="server" BorderStyle="Inset"></asp:TextBox></td>
</tr>
<tr>
<th>
性 别:</th>
<td>
<asp:RadioButton ID="male" runat="server" Text="男" GroupName="sex" />
<asp:RadioButton ID="female" runat="server" Text="女" GroupName="sex" /></td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Image runat="server" ID="img" /></td>
</tr>
<tr>
<th>
选择头像:</th>
<td>
<asp:DropDownList AutoPostBack="true" ID="ddlimg" runat="server">
</asp:DropDownList></td>
</tr>
<tr>
<th>
家庭住址:</th>
<td>
<asp:TextBox ID="txtaddress" runat="server"></asp:TextBox></td>
</tr>
<tr>
<th>
出生年月:</th>
<td>
<asp:TextBox ID="txtbirthday" runat="server" ReadOnly="True" AutoPostBack="false"></asp:TextBox></td>
<td>
<asp:Button ID="btnage" runat="server" Text="..." OnClick="btnage_Click" BackColor="#FFFFC0" /></td>
<td>
<asp:Calendar ID="birthday" SelectionMode="Day" runat="server" Style="position: absolute;
left: 628px; top: 312px;" BackColor="White" BorderColor="#3366CC" Font-Names="Verdana"
Font-Size="8pt" ForeColor="#003399" Height="200px" Visible="False" Width="220px"
BorderWidth="1px" CellPadding="1" DayNameFormat="Shortest" OnSelectionChanged="birthday_SelectionChanged">
<SelectedDayStyle BackColor="#009999" ForeColor="#CCFF99" Font-Bold="True" />
<TodayDayStyle BackColor="#99CCCC" ForeColor="White" />
<OtherMonthDayStyle ForeColor="#999999" />
<NextPrevStyle Font-Size="8pt" ForeColor="#CCCCFF" />
<DayHeaderStyle ForeColor="#336666" Height="1px" BackColor="#99CCCC" />
<TitleStyle BackColor="#003399" Font-Bold="True" Font-Size="10pt" ForeColor="#CCCCFF"
Height="25px" BorderColor="#3366CC" BorderWidth="1px" />
<SelectorStyle BackColor="#99CCCC" ForeColor="#336666" />
<WeekendDayStyle BackColor="#CCCCFF" />
</asp:Calendar>
</td>
</tr>
<tr>
<th>
验证码 :</th>
<td>
<asp:TextBox ID="txtcheck" runat="server" BorderStyle="Solid"></asp:TextBox></td>
<td>
<asp:Image runat="server" ID="imgcheckCode" ImageUrl="~/admin/board/checkCode.aspx" />
</td>
</tr>
<tr>
<td>
<asp:Button ID="submit" runat="server" Text="提交" OnClick="submit_Click" /></td>
<td>
<asp:Button ID="reset" runat="server" Text="重置" /></td>
</tr>
</table>
</div>
<div style="text-align: center">
<h3>
点击<a href="BoardIndex.aspx">这里</a>返回首页</h3>
</div>
</form>
</body>
</html>