比这篇新的文章:
Codee#2418
比这篇旧的文章: Codee#2416
作者: janver, 点击127次, 评论(0), 收藏者(0), , 打分:
所有评论,共0条:( 我也来说两句)
比这篇旧的文章: Codee#2416
Codee#2417
语言: C#, 标签: 无 2009/06/24发布 8个月前更新作者: janver, 点击127次, 评论(0), 收藏者(0), , 打分:
C#语言: Codee#2417
01 using System;
02 using System.Data;
03 using System.Configuration;
04 using System.Collections;
05 using System.Web;
06 using System.Web.Security;
07 using System.Web.UI;
08 using System.Web.UI.WebControls;
09 using System.Web.UI.WebControls.WebParts;
10 using System.Web.UI.HtmlControls;
11 using System.Web.Profile;
12
13 public partial class Default2 : System.Web.UI.Page
14 {
15 protected void Page_Load(object sender, EventArgs e)
16 {
17 if (!User.Identity.IsAuthenticated)
18 {
19 Response.Redirect("Login.aspx");
20 }
21
22 }
23 protected void Button2_Click(object sender, EventArgs e)
24 {
25 Profile.Age = int.Parse(TextBox1.Text);
26 Profile.昵称 = TextBox2.Text;
27 Profile.爱好 = TextBox3.Text;
28 Profile.喜欢的运动 = TextBox4.Text;
29 Profile.出生年月 = GMDatePicker1.Date;
30 Profile.薪水.基本 = TextBox5.Text;
31 Profile.薪水.提成 = TextBox6.Text;
32 Profile.薪水.奖金 = TextBox7.Text;
33 Profile.Save();
34 }
35 protected void Button1_Click(object sender, EventArgs e)
36 {
37
38 }
39 }
02 using System.Data;
03 using System.Configuration;
04 using System.Collections;
05 using System.Web;
06 using System.Web.Security;
07 using System.Web.UI;
08 using System.Web.UI.WebControls;
09 using System.Web.UI.WebControls.WebParts;
10 using System.Web.UI.HtmlControls;
11 using System.Web.Profile;
12
13 public partial class Default2 : System.Web.UI.Page
14 {
15 protected void Page_Load(object sender, EventArgs e)
16 {
17 if (!User.Identity.IsAuthenticated)
18 {
19 Response.Redirect("Login.aspx");
20 }
21
22 }
23 protected void Button2_Click(object sender, EventArgs e)
24 {
25 Profile.Age = int.Parse(TextBox1.Text);
26 Profile.昵称 = TextBox2.Text;
27 Profile.爱好 = TextBox3.Text;
28 Profile.喜欢的运动 = TextBox4.Text;
29 Profile.出生年月 = GMDatePicker1.Date;
30 Profile.薪水.基本 = TextBox5.Text;
31 Profile.薪水.提成 = TextBox6.Text;
32 Profile.薪水.奖金 = TextBox7.Text;
33 Profile.Save();
34 }
35 protected void Button1_Click(object sender, EventArgs e)
36 {
37
38 }
39 }
所有评论,共0条:( 我也来说两句)
代码
