zoukankan
html css js c++ java
Menu使用
即将删除代码,放在这里保存备用。
一、Menu菜单:
<
asp:Menu ID
=
"
Menu1
"
runat
=
"
server
"
StaticSubMenuIndent
=
"
10px
"
Orientation
=
"
Horizontal
"
OnMenuItemClick
=
"
Menu1_MenuItemClick
"
Font
-
Bold
=
"
True
"
>
<
StaticMenuItemStyle HorizontalPadding
=
"
5px
"
VerticalPadding
=
"
2px
"
BorderColor
=
"
#CCCCCC
"
BorderStyle
=
"
Solid
"
BorderWidth
=
"
1px
"
/>
<
StaticSelectedStyle BackColor
=
"
#CCCCCC
"
ForeColor
=
"
White
"
BorderStyle
=
"
Inset
"
/>
<
StaticHoverStyle BackColor
=
"
CornflowerBlue
"
ForeColor
=
"
White
"
BorderStyle
=
"
Inset
"
/>
<
Items
>
<
asp:MenuItem Text
=
"
待签申请单
"
Selected
=
"
True
"
Value
=
"
0
"
></
asp:MenuItem
>
<
asp:MenuItem Text
=
"
完成签核单
"
Value
=
"
1
"
></
asp:MenuItem
>
<
asp:MenuItem Text
=
"
所有签核单
"
Value
=
"
2
"
></
asp:MenuItem
>
</
Items
>
</
asp:Menu
>
二、MultiView
<
asp:MultiView ID
=
"
MultiView1
"
runat
=
"
server
"
ActiveViewIndex
=
"
0
"
>
<
asp:View ID
=
"
View1
"
runat
=
"
server
"
>
code001
</
asp:View
>
<
asp:View ID
=
"
View2
"
runat
=
"
server
"
>
code002
</
asp:View
>
<
asp:View ID
=
"
View3
"
runat
=
"
server
"
>
code003
</
asp:View
>
</
asp:MultiView
>
三、事件代码
protected
void
Menu1_MenuItemClick(
object
sender, MenuEventArgs e)
{
MultiView1.ActiveViewIndex
=
int
.Parse(e.Item.Value);
if
(e.Item.Value
==
"
1
"
)
{
AppGridView((
string
)ViewState[
"
strResno
"
], (
string
)ViewState[
"
strResname
"
], (
string
)ViewState[
"
strsdate
"
], (
string
)ViewState[
"
stredate
"
]);
}
if
(e.Item.Value
==
"
2
"
)
{
GridViewBind((
string
)ViewState[
"
strResno
"
], (
string
)ViewState[
"
strResname
"
], (
string
)ViewState[
"
strsdate
"
], (
string
)ViewState[
"
stredate
"
]);
}
ListGridView((
string
)ViewState[
"
strResno
"
], (
string
)ViewState[
"
strResname
"
], (
string
)ViewState[
"
strsdate
"
], (
string
)ViewState[
"
stredate
"
]);
}
查看全文
相关阅读:
[Liferay6.2.2]AUI的小坑:input的type属性
官方Tomcat 8.0.24 Web漏洞整改记录
通过ajax访问Tomcat服务器web service接口时出现No 'Access-Control-Allow-Origin' header问题的解决办法
前端开发之BOM和DOM
前端开发之JavaScript
前端开发之CSS
前端开发之HTML
python编程之进程
python编程之操作系统基础
python网络编程之socket
原文地址:https://www.cnblogs.com/cnaspnet/p/946659.html
最新文章
centos不能挂在ntfs
细说PHP中strlen和mb_strlen的区别
php中utf8 与utf-8 与utf8 无BOM
MySQL基础入门学习【4】约束2
MySQL基础入门学习【3】数据表的操作(创建、查看、 插入记录、查看记录、约束1)
MySQL基础入门学习【2】数据类型
MySQL基础入门学习【1】基本操作
【 python 学习笔记 --数据结构与算法】顺序搜索 Sequential Search
【 python 学习笔记 -- OOP】在实例中学习继承(inheritance)和组合(composition)
【 python 学习笔记 -- 数据库】Python3 + MySQL
热门文章
【 python 学习笔记 -- 数据结构与算法 】快速排序 Quick Sort
【 python 学习笔记 -- 数据结构与算法 】归并排序 Merge Sort
【 python 学习笔记 -- 数据结构与算法 】希尔排序 Shell Sort
Mac下环境变量配置
Mac安装软件报“打不开。。。,因为它来自身份不明的开发者”的解决办法
最小化安装centos7不能执行ifconfig命令的解决方法
基于requests实现极客学院课程爬虫
搭建eclipse+github开发环境
在IntelliJ IDEA中添加框架支持时找不到Hibernate的解决办法
如何在IntelliJ IDEA删除Project
Copyright © 2011-2022 走看看