button 共享事件
来源:互联网 发布:武汉知豆电动汽车4s店 编辑:程序博客网 时间:2024/06/08 09:56
protected void ShowCommand(object sender, CommandEventArgs e)
{
switch (e.CommandName)
{
case "dianji1": Response.Write(e.CommandArgument.ToString()); break;
case "dianji2": Response.Write(e.CommandArgument.ToString()); break;
}
if (e.CommandName == "dianji1")
{
Response.Write(e.CommandArgument.ToString());
}
if (e.CommandName == "dianji2")
{
Response.Write(e.CommandArgument.ToString());
}
if (e.CommandName == "dianji3")
{
Response.Write(e.CommandArgument.ToString());
}
if (e.CommandName == "dianji4")
{
Response.Write(e.CommandArgument.ToString());
}
}
<asp:Button ID="Button2" runat="server" Text="Button" CommandName="dianji1" CommandArgument="1" OnCommand="ShowCommand"/>
<asp:Button ID="Button3" runat="server" Text="Button" CommandName="dianji2" CommandArgument="2" OnCommand="ShowCommand"/>
<asp:Button ID="Button4" runat="server" Text="Button" CommandName="dianji3" CommandArgument="3" OnCommand="ShowCommand"/>
<asp:Button ID="Button5" runat="server" Text="Button" CommandName="dianji4" CommandArgument="4" OnCommand="ShowCommand"/>
<asp:Button ID="Button6" runat="server" Text="Button" />
- button 共享事件
- button事件
- BUTTON事件丢失
- FileUpload的button事件
- http button的事件
- BUTTON事件监听器-经典
- button自定义事件
- button 事件无法进入
- Button Click事件追踪
- Button的点击事件
- android Button事件处理
- Button的点击事件
- Button点击事件写法
- Android Button 单击事件
- 创建Button事件
- button 不响应事件
- ListView中Button事件
- sqlite数据库Button事件
- 利用IPV6免费登QQ和打电话
- 一起学习用PHP读取文件的正确方法
- 从URL中取得域名
- JSP_EL的回顾
- Centos5.1 搭建Lamp修正版
- button 共享事件
- 动态添加checkbox,与获得checkbox
- C++函数(const与引用一点理解)
- smarty安装及初级使用
- Linux Mysql、Apache、Php卸载
- 实验6 I/O程序设计
- 什么叫虚拟主机?
- TMS IntraWeb Component Pack Pro release v3.0.0.0 for delphi 7组件包安装补充说明
- 建设JXTA技术论坛