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
"
]);
}
查看全文
相关阅读:
在阿里云Centos下LNMP环境搭建
Thinkphp5.0整合个推例子
在H5页面内通过地址调起高德地图实现导航
模仿segmentfault 评论
无限极分类中递归查找一个树结构
文件缓存
职业发展
Codeigniter-实现权限认证
mysql 数据备份
依赖注入+控制反转
原文地址:https://www.cnblogs.com/cnaspnet/p/946659.html
最新文章
0072 Java中的泛型--泛型是什么--泛型类--泛型方法--擦除--桥方法
0071 CentOS_Tomcat访问文件名包含中文的文件出现404错误
0070 过滤器调用Spring的bean操作数据库
0069 如何在Intellij IDEA中查看Spring MVC项目的所有请求与处理方法的映射列表
0068 Git入门的第一节课
0067 MySQL的日期字段的取值用单引号
0066 阿里云大学的几道Java基础测试题
0065 MyBatis一级缓存与二级缓存
0064 MyBatis动态SQL--choose-when-otherwise--foreach--set--bind
0063 MyBatis入门示例
热门文章
0062 Spring MVC的文件上传与下载--MultipartFile--ResponseEntity
0061 Spring MVC的数据格式化--Formatter--FormatterRegistrar--@DateTimeFormat--@NumberFormat
0060 Spring MVC的数据类型转换--ConversionService--局部PropertyEditor--全局WebBindingInitializer
PHP设置谷歌验证器(Google Authenticator)实现操作二步验证
基于php实现QQ授权登陆
windows下基于IIS配置ssl证书
PHP 用 fsockopen()、fputs() 来请求一个 URL,不要求返回
数据库备份的两种方法
php使用curl模拟多线程发送请求
BugFree设置邮箱通知(这里以163邮箱为例)
Copyright © 2011-2022 走看看