内容发布更新时间 : 2024/12/24 3:59:09星期一 下面是文章的全部内容请认真阅读。
{
UserInfo.Text = null;
this.Title = \新?用??户?ì注á?é册¨¢\; UserName.Focus(); }
protected void UserName_TextChanged(object sender, EventArgs e) { }
protected void PassWordFirst_TextChanged(object sender, EventArgs e) { }
protected void
PassWordSecond_TextChanged(object sender, EventArgs e) { }
protected void Sex_SelectedIndexChanged(object
sender, EventArgs e) { }
protected void
DateOfBirthYear_TextChanged(object sender, EventArgs e) { }
protected void
DateOfBirthMonth_SelectedIndexChanged(object sender, EventArgs e) { }
protected void
DateOfBirthDay_SelectedIndexChanged(object sender, EventArgs e) { }
protected void
BloodType_SelectedIndexChanged(object sender, EventArgs e) { }
protected void
Taste_SelectedIndexChanged(object sender, EventArgs e) { }
protected void Synopsis_TextChanged(object sender, EventArgs e) { }
//提?¨¢交?
protected void OK_Click(object sender, EventArgs e) {
if (UserName.Text == \) {
UserInfo.Text = \必à?须?输o?入¨?用??户?ì名?!ê?\; //显?示o?出?错?¨a提?¨¢示o?
return;//退a?出?时o?à间?过y程¨?,ê?不?在¨2执??行D后¨?续?代?¨2码? }
UserInfo.Text += UserName.Text;//用??户?ì名?
if(PassWordFirst.Text != PassWordSecond.Text) {
UserInfo.Text = \两¢?次??输o?入¨?的ì?密¨1码?不?同a?!ê?请?重?新?输o?入¨?!ê?\;//显?示o?出?错?¨a提?¨¢示o? return; }
UserInfo.Text += PassWordFirst.Text;//密¨1码?
UserInfo.Text += Sex.SelectedItem.Text;//性?别àe
UserInfo.Text += DateOfBirthYear.Text + \年¨o\ +
DateOfBirthMonth.SelectedItem.Text + \月?\ +
DateOfBirthDay.SelectedItem.Text + \日¨?\;//出?生|¨2日¨?期¨2
UserInfo.Text +=
BloodType.SelectedItem.Text + \;//血a型¨a
string Taste1 = null;
for (int i = 0; i < Taste.Items.Count; i++) {
if (Taste.Items[i].Selected) {
Taste1 += Taste.Items[i].Text + \; } }