FineUI 官方论坛
标题:
Panel不能动态添加ContentPanel吗?
[打印本页]
作者:
liyumin
时间:
2015-6-4 09:59
标题:
Panel不能动态添加ContentPanel吗?
protected void dpDate_DateSelect(object sender, EventArgs e)
{
DateTime choseDate =Convert.ToDateTime( this.dpDate.SelectedDate);
int wd = (int)choseDate.DayOfWeek;
for (int i = 1 - wd; i < 8 - wd; i++)
{
DateTime currentDay = choseDate.AddDays(i);
//动态增加面板
ContentPanel cp = new ContentPanel();
cp.Width = 121;
cp.Height = 180;
cp.BodyPadding = "5";
cp.Title = currentDay.ToShortDateString();
cp.ID = "cp" + i.ToString();
cp.ShowHeader = true;
cp.ShowBorder = true;
cp.EnableCollapse = true;
this.Panel3.Items.Add(cp);
}
}
如上,我想在panel3中动态添加ContentPanel,程序执行没错,为什么不能显示?
作者:
sanshi
时间:
2015-6-4 11:29
这个在ASP.NET中无法实现,具体原因请看我的博客:
http://www.cnblogs.com/sanshi/archive/2012/11/19/2776672.html
欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/)
Powered by Discuz! X3.4