您的位置:首页 > 编程语言 > ASP

用ASP.NET制作个人信息维护页面 使用 Label 、 TextBox 、 Button 制作个人信息维护页面

2012-10-02 14:19 483 查看
<%@ Page Xlanguage="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="个人信息维护.WebForm1" %>

<!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>

<style type="text/css">

.style1

{

width: 95px;

}

.style2

{

width: 207px;

}

</style>

</head>

<body>

<form id="form1" runat="server">

<div>

<table align="center" >

<tr><td> 昵称:</td> <td><asp:TextBox ID="username" runat="server"></asp:TextBox></td> <td>(发表评论时显示)</td></tr>

<br />

<tr> <td>性别:</td><td>

<asp:RadioButton ID="RadioButton1" runat="server" GroupName="sex" Text="男"/>

<asp:RadioButton ID="RadioButton2" runat="server" GroupName="sex" Text="女"/>

</td></tr>

<tr><td>所在部门:</td><td><asp:DropDownList ID="DropDownList1" runat="server"

style="margin-left: 0px" Width="150px"></asp:DropDownList></td> </tr>

<tr><td>爱好:</td><td>

<asp:CheckBox ID="CheckBox1" runat="server" Text="读书" />

<asp:CheckBox ID="CheckBox2" runat="server" Text="体育" />

<asp:CheckBox ID="CheckBox3" runat="server" Text="劳动" />

<asp:CheckBox ID="CheckBox4" runat="server" Text="购物" />

</td>

</tr>

<tr><td>E-mail:</td><td><asp:TextBox ID="email" runat="server"></asp:TextBox></td></tr>

<tr><td>生日:</td><td> <asp:TextBox ID="birthday" runat="server"

style="margin-left: 0px" Width="119px"></asp:TextBox>(yyyy-mm-dd)</td></tr>

<tr><td>个人头像:</td><td> <asp:FileUpload ID="FileUpload1" runat="server" /></td></tr>

<tr><td>个人简介:</td><td><asp:TextBox ID="personintro" runat="server" Height="100px"

TextMode="MultiLine" Width="200px"></asp:TextBox></td></tr>

<tr><td></td><td>

  <asp:Button ID="Button1" runat="server" Text="确定"

Xonclick="Button1_Click" /> </td></tr>

</table>

</div>

</form>

</body>

</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: