标题:C# ASP.NET新手问题
取消只看楼主
雪雨星风
Rank: 1
来 自:北京
等 级:新手上路
威 望:1
帖 子:566
专家分:0
注 册:2007-10-11
结帖率:100%
 问题点数:0 回复次数:0 
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>";
    }
搜索更多相关主题的帖子: NET ASP like 
2008-02-24 23:45



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-200792-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.055360 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved