怎么用代码实现?
小妹先谢谢各位大虾
动态添加
private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
WakisoftCn.Web.UI.WebControls.CoolBarPanel a=new CoolBarPanel();
a.Value="ddd";
WakisoftCn.Web.UI.WebControls.CoolBarItem itt=new CoolBarItem();
itt.Value ="注册工作组";
itt.Url="GZZ1.aspx";
itt.ImageStyle=ImageStyle.Big;
itt.BigImageUrl="lou.jpg";
a.Items.Add(itt);
WakisoftCn.Web.UI.WebControls.CoolBarItem t=new CoolBarItem();
t.Value="用户注册";
t.ImageStyle=ImageStyle.Big;
t.BigImageUrl="lou.jpg";
t.Url="UserRegister.aspx";
a.Items.Add(t);
WakisoftCn.Web.UI.WebControls.CoolBarItem t1=new CoolBarItem();
t1.Value="烟囱流出物";
t1.ImageStyle=ImageStyle.Big;
t1.BigImageUrl="lou.jpg";
t1.Url="ChimneyOutpour.aspx";
a.Items.Add(t1);
this.WakiCoolBar2.Panels.Add(a);
WakisoftCn.Web.UI.WebControls.CoolBarPanel b=new CoolBarPanel();
b.Value="三废生产";
WakisoftCn.Web.UI.WebControls.CoolBarItem tt=new CoolBarItem();
tt.ImageStyle=ImageStyle.Big;
tt.BigImageUrl="lou2.jpg";
tt.Value="固体废物产生";
tt.Url="";
b.Items.Add(tt);
WakisoftCn.Web.UI.WebControls.CoolBarItem tt1=new CoolBarItem();
tt1.ImageStyle=ImageStyle.Big;
tt1.BigImageUrl="lou2.jpg";
tt1.Value="固体废物送储";
tt1.Url="";
b.Items.Add(tt1);
WakisoftCn.Web.UI.WebControls.CoolBarItem tt2=new CoolBarItem();
tt2.ImageStyle=ImageStyle.Big;
tt2.BigImageUrl="lou2.jpg";
tt2.Value="固体废物收储";
tt2.Url="";
b.Items.Add(tt2);
WakisoftCn.Web.UI.WebControls.CoolBarItem s=new CoolBarItem();
s.ImageStyle=ImageStyle.Big;
s.BigImageUrl="lou1.jpg";
s.Value="液体废物产生";
s.Url="";
b.Items.Add(s);
WakisoftCn.Web.UI.WebControls.CoolBarItem s1=new CoolBarItem();
s1.ImageStyle=ImageStyle.Big;
s1.BigImageUrl="lou1.jpg";
s1.Value="液体废物送储";
s.Url="";
b.Items.Add(s1);
WakisoftCn.Web.UI.WebControls.CoolBarItem s2=new CoolBarItem();
s2.ImageStyle=ImageStyle.Big;
s2.BigImageUrl="lou1.jpg";
s2.Value="液体废物收储";
s.Url="";
b.Items.Add(s2);
this.WakiCoolBar2.Panels.Add(b);
}
呵呵,刚刚试出