如果这段代码有if(!this.IsPostBack)限制,去掉就可
解决方案 »
- textbox1.attributes.add ("value","")怎么没用
- 网站发布到服务器上后访问提示数据库是只读的是怎么回事?
- 刚学习C#,求一个P2P 多人聊天室源代码学习
- ASP.NET 2.0中如何给100个textbox设置
- 问题多
- 在ItemCommand中,取不到datagrid中模板列下的FooterTemplate的textbox的值
- datalist 绑定 ispostback
- 求助:asp.net里有关控件隐藏、显示
- 简单问题:如何在后台写入前台页面指定位置的格式化的html文本?
- (20分)简单问题。怎么把TreeView的节点展开。
- 关于onscroll事件的问题
- 新建类库,编写数据库链接出现的问题!
{
protected void Page_Load(object sender, EventArgs e)
{ }
protected void Button1_Click(object sender, EventArgs e)
{
this.tabResume.Rows[0].Cells[0].RowSpan = this.tabResume.Rows[0].Cells[0].RowSpan + 1; HtmlTableRow row = new HtmlTableRow();
row.BgColor = "#eefof2"; HtmlTableCell cell1 = new HtmlTableCell();
cell1.InnerText = "aa";
HtmlTableCell cell2 = new HtmlTableCell();
HtmlTableCell cell3 = new HtmlTableCell();
HtmlTableCell cell4 = new HtmlTableCell(); row.Cells.Add(cell1);
row.Cells.Add(cell2);
row.Cells.Add(cell3);
row.Cells.Add(cell4);
this.tabResume.Rows.Add(row);
}
}
http://community.csdn.net/Expert/topic/5264/5264344.xml?temp=0.884465045241856
所以你每次点击 都只是执行了 同于上一次的添加而已