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
"
]);
}
查看全文
相关阅读:
hdu 3746 Cyclic Nacklace
hdu 3336 Count the string
hdu 1358 Period
hiho一下 第一周 最长回文子串
KMP算法详解
Java 之 static的使用方法(6)
Jave 之方法-函数(5)
Java 之数组(4)
大数据-storm学习资料视频
大数据-spark-hbase-hive等学习视频资料
原文地址:https://www.cnblogs.com/cnaspnet/p/946659.html
最新文章
Spark性能优化指南——基础篇
spark中的cache和persist的区别
Spark算子与RDD基本转换
spark的RDD如何转换为DataFrame
用mongodump以及mongorestore来完成mongo的迁移任务
Apache 流框架Flink简介
CI、CD相关概念
RDD的cache 与 checkpoint 的区别
Codeforces Round #417 B. Sagheer, the Hausmeister
Java 之集合框架 中(10)
热门文章
Java 之集合框架 上(9)
Java 中你必须了解的常用类(8)
Java 之字符串(7)
RMQ算法详解
Manachar算法详解
hdu 4513 吉哥系列故事——完美队形II (manachar算法)
hdu 3613 Best Reward (manachar算法)
Codeforces(Round #93) 126 B. Password
hiho 1015 KMP算法 && CF 625 B. War of the Corporations
hdu 1867 A + B for you again
Copyright © 2011-2022 走看看