怎样动态生成多行radio组 我想生成4行客户端radio组怎么实现 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 使用服务器控件RadioButton,然后设置相同的GroupName 具体要看你的需求了用radiobuttonlist用repearter用radiobutton一个一个摆什么都行啊 protected System.Web.UI.HtmlControls.HtmlForm Form1;protected System.Web.UI.WebControls.Button Button1;private void Button1_Click(object sender, System.EventArgs e){ RadioButtonList r = new RadioButtonList(); r.RepeatDirection = RepeatDirection.Horizontal; r.Items.Add(new ListItem("男", "M")); r.Items.Add(new ListItem("女", "F")); this.Form1.Controls.Add(r);} RadioButtonList放在一个单元格里,我现在有4个radio 我想把radio分别放在一个单元格里,怎么去分割~我用的是服务器段的table 。RadioButtonList就放在TableCell里面 TableCell tasktc2 = new TableCell(); tasktc2.BorderWidth = 1; RadioButtonList chk = new RadioButtonList(); chk.ID = "rad"+i; ListItem l1 = new ListItem(); l1.Value = "1"; l1.Text = ""; ListItem l2 = new ListItem(); l2.Value = "2"; l2.Text = ""; ListItem l3 = new ListItem(); l3.Value = "3"; l3.Text = ""; ListItem l4 = new ListItem(); l4.Value = "4"; l4.Text = ""; chk.Items.Add(l1); chk.Items.Add(l2); chk.Items.Add(l3); chk.Items.Add(l4); chk.RepeatDirection = RepeatDirection.Horizontal; tasktc2.Controls.Add(chk); 项目部署iis问题,求解... asp.net母版页在内容页怎么调用js asp.net中postback的问题 asp.net水晶报表怎么让打印机选择对话框不弹出来,直接打印 ASP.NET的这些控件怎样逐一执行?? 关于XML LINK 与 HTML 的超链接 高手请进帮我看一个javascript的问题 验证问题 #region...#endregion间的代码有何作用? 这种数据结构的用户评论表如何设计?求指教 符合条件的记录显示的是第一条总是不显示? 如何截取字符串前面的数字?
protected System.Web.UI.WebControls.Button Button1;private void Button1_Click(object sender, System.EventArgs e)
{
RadioButtonList r = new RadioButtonList();
r.RepeatDirection = RepeatDirection.Horizontal;
r.Items.Add(new ListItem("男", "M"));
r.Items.Add(new ListItem("女", "F"));
this.Form1.Controls.Add(r);
}
tasktc2.BorderWidth = 1;
RadioButtonList chk = new RadioButtonList();
chk.ID = "rad"+i;
ListItem l1 = new ListItem();
l1.Value = "1";
l1.Text = "";
ListItem l2 = new ListItem();
l2.Value = "2";
l2.Text = "";
ListItem l3 = new ListItem();
l3.Value = "3";
l3.Text = "";
ListItem l4 = new ListItem();
l4.Value = "4";
l4.Text = "";
chk.Items.Add(l1);
chk.Items.Add(l2);
chk.Items.Add(l3);
chk.Items.Add(l4);
chk.RepeatDirection = RepeatDirection.Horizontal;
tasktc2.Controls.Add(chk);