C# ASP.NET新手问题
//谁有简单的方法实现此功能protected void Submit1_ServerClick(object sender, EventArgs e)
{
string name, sex, like, introduce;
like = "";
name = this.Text2.Value;
if (this.Radio1.Checked == true)
{
sex = " 男";
}
else
{
sex = " 女";
}
//like = this.Text3.Value;
if (this.Checkbox1.Checked == true)
{
like += " 体育 ";
}
if (this.Checkbox2.Checked == true)
{
like += "美术 ";
}
if (this.Checkbox3.Checked == true)
{
like += "计算机 ";
}
if (this.Checkbox4.Checked == true)
{
like += "游戏 ";
}
introduce = this.TextArea1.Value;
this.DIV1.InnerHtml = "姓名:"+name+"<br>"+"性别:"+sex+"<br>"+"爱好:"+like+"<br>"+"简介:"+introduce+"<br>";
}