用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>
<!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>
相关文章推荐
- 简单使用bootstrap制作ASP.NET的登录页面
- 使用ASP.NET状态服务维护会话信息
- 使用ASP.NET状态服务维护会话信息
- ASP.NET实现个人信息注册页面并跳转显示
- VS项目模板(项模板)制作--针对ASP.NET站点页面使用
- ASP.NET实现个人信息注册页面并跳转显示
- ASP.NET 个人信息注册页面,并跳转显示
- VS项目模板(项模板)制作--针对ASP.NET站点页面使用
- asp.net 子页面使用js给ReadOnly的TextBox赋值
- ASP.NET实现个人信息注册页面并跳转显示
- 如何在ASP.NET中制作Web用户自定义控件,并在aspx页面中使用它的方法和属性?
- Asp .NET使用控件常见问题大全(设计时选中、Button、TextBox、DropDownList、GridView、UpdatePanel 等)
- Asp.net 通过 Label (span) 和 TextBox(input) 进行记录信息 提供给后台
- 使用ASP.NET 2.0 Profile存储用户信息
- 使用ASP.NET AJAX异步调用Web Service和页面中的类方法
- 安装完vs.2005之后,重新安装iis后无法使用http方式访问asp.net工程的页面的问题的解决方法
- Asp.net清空页面上的所有TextBox
- 关于 asp.net 中的用户控件的制作与使用方法。
- 如何使用ASP.NET制作简单的验证码
- 使用ASP.NET 2.0 Profile存储用户信息[翻译] Level 200