FineUI 官方论坛
标题:
动态创建Window的示例
[打印本页]
作者:
Tiger
时间:
2013-12-19 17:39
标题:
动态创建Window的示例
以前遇到这个问题,试了一下,在三石及黑冰的帮助下,得以成功,方式不是一定是大家理解的和需要的,仅供参考
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FineUI;
namespace EmptyProjectNet40
{
public partial class hello : System.Web.UI.Page
{
protected void Page_Init(object sender, EventArgs e)
{
Window window = new Window();
window.Title = "在程序Init时建立好的噢";
window.Hidden = true;
window.ID = "window";
window.Height = Unit.Pixel(200);
window.Width = Unit.Pixel(300);
this.Controls.Add(window);
}
protected void btnHello_Click(object sender, EventArgs e)
{
Window window = this.FindControl("window") as Window;
window.Hidden = false;
}
}
}
作者:
erp8@live.cn
时间:
2013-12-20 12:22
{:soso_e179:}
欢迎光临 FineUI 官方论坛 (https://fineui.com/bbs/)
Powered by Discuz! X3.4