将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可以多次在不同的页面中加载
最后 再你要加载panelbar页面中的Page_load事件中加入
PanelBar1.LoadState(Server.MapPath("./")+"\\panelbar1.pbs");
即可加入 并且panelbar1.pbs可以多次在不同的页面中加载
解决方案 »
- 数据库表类设计????
- treeview的问题
- 谁能给个javascript与ASP.NET结合使用的大量例子或者资料。谢谢。
- 在ASP.net中用DataGrid中的必须在runat= server的页中,<GridDataLinkButton必须在runat= server的页中>错误。
- .NET Framework我已经安装了,但是执行aspx文件出现下列错误!
- .NET开发微信功能?
- 搜索框内容 需要检测输入内容安全性吗
- ASP.NET中怎样通过BUTTON键,利用TXETBOX中的输入信息修改GRIDVIEW中的数据?
- 高分搜索BizTalk Server方面的中文资料。请各位仁兄多多伸出援助之手啊!!
- 菜鸟问:怎样为ImageButton设置焦点呢?
- 看了微软Portal例程,返回一条记录用SqlDataReader,返回记录集用DataSet,为什么??
- ASP.NET中如何弹出MessageBox?
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="";
行 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 运行的时候怎么总是报这个错?