惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
S
SegmentFault 最新的问题
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
DataBreaches.Net
F
Fortinet All Blogs
TaoSecurity Blog
TaoSecurity Blog
D
Docker
C
Cybersecurity and Infrastructure Security Agency CISA
K
Kaspersky official blog
宝玉的分享
宝玉的分享
腾讯CDC
Google Online Security Blog
Google Online Security Blog
Recorded Future
Recorded Future
T
The Exploit Database - CXSecurity.com
T
The Blog of Author Tim Ferriss
V
V2EX
S
Securelist
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
CERT Recently Published Vulnerability Notes
A
Arctic Wolf
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
Y
Y Combinator Blog
P
Proofpoint News Feed
T
Tor Project blog
AWS News Blog
AWS News Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
博客园 - 聂微东
T
Threat Research - Cisco Blogs
B
Blog
Attack and Defense Labs
Attack and Defense Labs
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
阮一峰的网络日志
阮一峰的网络日志
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家
N
News and Events Feed by Topic
博客园 - 司徒正美
H
Help Net Security
C
Cisco Blogs
C
Check Point Blog
S
Secure Thoughts

博客园 - 青青木

ASP.net2.0把word、excel转换成Html(转) 在三层交换机上开专线IP的方法 [转]静态框架导航,左侧折叠树的样式,类似于treeview 在ASP.NET中使用FCKEditor的简单配置方法 Matlab与Access数据库的连接 [转]用matlab做聚类分析 Word 2003特殊符号录入与编辑(转) C++内存分配的五种的区别(转) C#中正则表达式的完全匹配 插入SQL语句后,返回刚插入记录的ID asp.net定义用户控件时,属性持久化和如何动态加载的问题 命名空间“Microsoft office”中不存在类型或命名空间名称“Interop” visual studio 2005 和 sql server 2005 安装时需要注意的事项 使用ConfigurationManager需要在.net引用中添加System.Configuration引用 还原数据库后,用户名出错,不能修改用户属性 DataView设置datasource后,需要databind() asp.net中重命名网页的一种方法 C++语言中的虚函数 vc中出现“没有找到mspdb60.dll文件”时 ,解决方法
GridView相应模板列中的LinkButton按钮的事件
青青木 · 2008-06-27 · via 博客园 - 青青木

1 定义LinkButton时需要填写CommandName属性(用来找到这个按钮的标识),也可填写CommandArgument属性(这个属性可是其他列的值)。

<ItemTemplate> 
<asp:LinkButton ID="lbtnNameDetail" runat="server" CommandName="open" CommandArgument='<%# Eval("ID") %>' Text='<%# Eval("Text") %>'> 
</asp:LinkButton> 
</ItemTemplate>

2 在gridview的RowCommand事件中相应对LinkButton的点击

protected void gv1_RowCommand(object sender, GridViewCommandEventArgs e) 

if (e.CommandName == "open"

string ID= e.CommandArgument.ToString; 
//your code 


posted @ 2008-06-27 15:25  青青木  阅读(2992)  评论(0)    收藏  举报