将panelbar控件拖入页面,然后单击panelbar控件点右键->Coalesys Panel Studio->File->New   在Object的下面的New Group添加你想输入的名称,右键点击New Group进行Item添加和删除、剪切等 在Properties 中进行一定的属性设置;不过一般都只对URL进行添加,其他的都不变  制作完以后点击Save将其存在你的项目的目录下(比如你的项目名称为paging,那么一定要存在paging文件夹中) 然后再点击Build中的Complie或者直接按F7进行编译
最后 再你要加载panelbar页面中的Page_load事件中加入
PanelBar1.LoadState(Server.MapPath("./")+"\\panelbar1.pbs");
即可加入  并且panelbar1.pbs可以多次在不同的页面中加载

解决方案 »

  1.   

    //注册信息
    this.pbMenu.UserData="Hosii:Hosii:2201367625";
    //按钮字体设置
    this.pbMenu.ButtonFont.Color = "#000000";
    this.pbMenu.ButtonFont.Size = "13px";
    this.pbMenu.ButtonFont.Alignment = "center";
    //子项的样式
    this.pbMenu.ItemFont.Color = "#666666";
    this.pbMenu.ItemFont.Alignment = "left";
    this.pbMenu.ItemFont.PaddingLeft = 10;
    //鼠标滑过时的样式
    this.pbMenu.ItemHoverFont.Color = "#666666";
    this.pbMenu.ItemHoverFont.Weight = "bold";
    this.pbMenu.ItemHoverFont.Alignment = "left";
    this.pbMenu.ItemHoverFont.PaddingLeft = 10;
    this.pbMenu.ItemHoverFont.TextDecoration = "none";
    //添加一级菜单
    this.pbMenu.Groups.Add(0);
    this.pbMenu.Groups[0].Caption="库房管理";
    //添加二级菜单
    this.pbMenu.Groups[0].Items.Add(0);
    this.pbMenu.Groups[0].Items[0].Caption="计划";
    this.pbMenu.Groups[0].Items[0].URL=""
    this.pbMenu.Groups[0].Items[0].Target="";
      

  2.   

    说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 编译器错误信息: CS0234: 类型或命名空间名称“WebForm1”在类或命名空间“Coalesys.PanelBar.PanelBar”中不存在(是否缺少程序集引用?)源错误: 行 33:     
    行 34:     [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
    行 35:     public class WebForm1_aspx : PanelBar.WebForm1, System.Web.SessionState.IRequiresSessionState {
    行 36:         
    行 37:         
     源文件: c:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\aspnet_panelbar\12c10c80\254a6b47\jcl4lz_t.0.cs    行: 35 运行的时候怎么总是报这个错?
      

  3.   

    编辑器是自带的啊,我拖一个PANELBAR到页面中然后执行就显示上面的错误,不知道是为什么?