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 更新pip报错:Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问
Vs code 配置(1)-win10
博客园主题--sukura
log4j
安装ant问题
freemarker string= null
学习随想
j2ee学习资料收集
eclipse + marven
好文mark
原文地址:https://www.cnblogs.com/cnaspnet/p/946659.html
最新文章
JS图片滚动代码(无缝、平滑)
CSS兼容性技巧整理--从IE6-IE9 火狐谷歌浏览器兼容
linux开启MySql远程连接功能
Python-FAQ: 调用 win32com.gencache.EnsureDispatch("kwps.Application") 抛出异常 AttributeError:module‘win32com.gen_py has no attribute ‘CLSIDToClassMap‘
Python-FAQ
GIT-FAQ
FAQ-GIT: .git/index:索引文件比预期的小
linux设置上网代理
python 字符串转义html
不能修改字符集的相关错误的解决办法
热门文章
敏捷知识
主机名
书籍目录
Vs code 配置(3)-win10
Noname Version 0.0.3.1 demo
Python-字典的一点记录
Noname Version 0.0.1.0 demo
动态规划-最大子段和
绝对路径与相对路径
Vs code 配置(2)-win10
Copyright © 2011-2022 走看看