各位大峡,我往pageview里动态插几个按妞,他们都是横向排列,怎么控制他们的位置,在线等待 在new出控件对象后,使用“控件.location”属性来控制控件的位置 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以在控件的html脚本来写了,为什么连这个都要在服务器端写呢 如:aspx中把PlaceHolder1放在<tr>与</tr>之间CodeBehind中Page_Load()中加上:Label Label1=new Label();Label1.Text="加的标签";TextBox TextBox1 = new TextBox();TextBox1.Text="文本框";RadioButton RB1 = new RadioButton();RB1.Text="选择";this.PlaceHolder1.Controls.Add(new LiteralControl("<td colspan=2>"));this.PlaceHolder1.Controls.Add(Label1);this.PlaceHolder1.Controls.Add(new LiteralControl("</td><td colspan=2>"));this.PlaceHolder1.Controls.Add(TextBox1);this.PlaceHolder1.Controls.Add(new LiteralControl("</td><td>"));this.PlaceHolder1.Controls.Add(RB1);this.PlaceHolder1.Controls.Add(new LiteralControl("</td><td></td>")); ms-help://MS.VSCC/MS.MSDNVS.2052/WebControls/workshop/webcontrols/overview/multipage.htm asp.net提交时不清空页面数据 repeater组件显示图片 客户端加密问题 怎么样实现弹出确定对话框!用javascript! 我刚上来我就200分 解决问题全给了(我在发个帖你回复我在给你100) 就一个简单问题 怎么实现网页三秒后跳转的问题? 一个奇怪的问题! 有谁用过login控件 关于datalist的显示问题 求助!!!!关于日期格式的保存的问题!!!!在线等~~急需 有谁用过ASPNETMENU? 如何使用vs.net开发asp.net数据库应用程序?
aspx中把PlaceHolder1放在<tr>与</tr>之间
CodeBehind中Page_Load()中加上:
Label Label1=new Label();
Label1.Text="加的标签";
TextBox TextBox1 = new TextBox();
TextBox1.Text="文本框";
RadioButton RB1 = new RadioButton();
RB1.Text="选择";
this.PlaceHolder1.Controls.Add(new LiteralControl("<td colspan=2>"));
this.PlaceHolder1.Controls.Add(Label1);
this.PlaceHolder1.Controls.Add(new LiteralControl("</td><td colspan=2>"));
this.PlaceHolder1.Controls.Add(TextBox1);
this.PlaceHolder1.Controls.Add(new LiteralControl("</td><td>"));
this.PlaceHolder1.Controls.Add(RB1);
this.PlaceHolder1.Controls.Add(new LiteralControl("</td><td></td>"));