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
"
]);
}
查看全文
相关阅读:
sqlnet设置网络传输加密
临时表处理办法
分布式事务2PC_PENDING异常处理
统计信息收集百分比和并行改变
dataguard丢失归档日志处理
patch 28729262
Cardinality
统计信息不准导致sql性能下降
子查询展开
ogg 单表拆分合并进程
原文地址:https://www.cnblogs.com/cnaspnet/p/946659.html
最新文章
Eclipse反编译插件jad的安装
浅析设计模式(七)——适配器模式
Maven:Failure executing javac, but could not parse the error:javac: 无效的目标发行版: 1.8
Maven:Failed to read artifact descriptor for xxx
Maven:A cycle was detected in the build path of project 'xxx'. The cycle consists of projects {xx}
Maven:程序包不存在,找不到符号
Maven:maven依赖jar包冲突处理
Maven:org.apache.maven.archiver.MavenArchiver.getManifest错误
Maven:Eclipse导入从SVN上检出的Maven多模块工程
浅析设计模式(六)——单例模式
热门文章
CentOS6下DHCP服务(一)工作原理及安装配置说明
oracle11g在CentOS6.9上启动脚本
CentOS7下SSH服务学习笔记
winxp如何开启SNMP服务
源码安装zabbix3.2.7时PHP ldap Warning
linux基础命令-chgrp/chown/chomd
linux基础命令-文件查看类命令cat/tac/more/less/tail/head
linux基础命令-mkdir/tree/rmdir
scp命令
sftp
Copyright © 2011-2022 走看看