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
"
]);
}
查看全文
相关阅读:
生成器和推导式
闭包
python
python初识函数二
python函数初识
python文件操作二
文件操作
python集合,深浅copy
Python安装、配置图文详解
jsDoc 使用及配置!
原文地址:https://www.cnblogs.com/cnaspnet/p/946659.html
最新文章
Python_if
Python_range
Python_元组
Python_Bool
Python_Int
python2中打印中文
有关python2与python3中关于除的不同
openpyxl
python的设计原则及设计模式
爬虫之初识爬虫
热门文章
sanic官方文档解析之Example(二)
sanic官方文档解析之Example(一)
sanic官方文档解析之Deploying(部署)和Extension(扩展)
sanic官方文档解析之ssl,debug mode模式和test(测试)
sanic官方文档解析之Custom Protocols(自定义协议)和Socket(网络套接字)
sanic官方文档解析之streaming(流动,滚动)和class_based_views(CBV的写法)
sanic官方文档解析之websocket(网络套接字)和handle decorators(处理程序装饰器)
sanic官方文档解析之Exception和Middleware,Listeners
sanic官方文档解析之静态文件和版本
python 内置函数
Copyright © 2011-2022 走看看