UpdatePanel 动态添加控件
2012-04-22 13:26
363 查看
UpdatePanel 动态添加控件例子,在之前面页要加一个ScriptManager
UpdatePanel up = new UpdatePanel(); up.ID = "UpdatePanel1"; this.Form.Controls.Add(up); LiteralControl lc = new LiteralControl(DateTime.Now.ToString()); up.ContentTemplateContainer.Controls.Add(lc); Button btn = new Button(); btn.Text = "Refresh"; up.ContentTemplateContainer.Controls.Add(btn);
相关文章推荐
- 谨记给UpdatePanel中动态添加的控件赋ID
- 谨记给UpdatePanel中动态添加的控件赋ID
- [ASP.NET AJAX]谨记给UpdatePanel中动态添加的控件赋ID
- [ASP.NET AJAX]谨记给UpdatePanel中动态添加的控件赋ID
- ASP.NET UpdatePanel中动态添加的控件需要ID才起作用
- C# WF 删除panel容器动态添加的控件
- c# TableLayoutPanel控件应用 动态添加控件及事件
- 在Update Panel 控件里面添加 File Upload 控件 上传文件
- asp.net Panel动态添加控件并纵向布局
- winform 中panel动态添加控件坐标原点问题
- 高技术! 动态加载切换Ajax模式!! , 动态添加ScriptManager,UpdatePanel
- C# panel 动态添加windows media player 控件
- 用VS2008开发.net 2.0 Web程序用时用到UpdatePanel 控件时要在Web.Config添加以下代码
- 新写的一个使用ASP.NET AJAX中的UpdatePanel控件实现GridView的无刷新删除,更新,添加,查询!
- c# TableLayoutPanel控件应用 动态添加控件及事件
- 动态添加控件至Panel
- c# TableLayoutPanel控件应用 动态添加控件及事件
- c# TableLayoutPanel控件应用 动态添加控件及事件
- WPF遍历StackPanel中动态添加的控件
- net4:Panel动态添加控件及隐藏,Table动态创建表格