if you want to use Controls', then you shouldn't output html yourself, in your control, create those controls, for example:protected override void CreateChildControls()
{
HtmlInputHidden hih = new HtmlInputHidden();
hih.ID = "whatever";
Controls.Add(hih);
//....
}
{
HtmlInputHidden hih = new HtmlInputHidden();
hih.ID = "whatever";
Controls.Add(hih);
//....
}
解决方案 »
- 如何解决这个异常呀!
- GridView1.Rows[0].Cells.Count和GridView1.Columns.Count不相等?
- 修改datagrid字体颜色
- “addstudent.aspx.resx”的资源转换失败。根级别上的数据无效。 行 1,位置 1。
- web上实现数据库各表设定关系,创建视图
- 急!!!!!!!请教!如何从数据库的值生成一棵XML树!数据库存放逻辑方式也为树型结构
- 请各位推荐一下学习ASP.NET的优秀书籍,以便初学者不会被庸书坑害!
- 如何处理Session的保留时间?
- asp.net 如何获得 多选 select 元素 的 多选值 ????
- 为什么读不出数据??
- 请教一个小问题,谢谢
- 急!!!!助我一臂之力!
我希望用Render方法重写
Page.Request.Form["Count"] to get the input's value