如何将标签用作“点击事件"弹出一个数据网格视图 [英] how to use a label as a "click event" to pop up a datagrid view

查看:80
本文介绍了如何将标签用作“点击事件"弹出一个数据网格视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网页出现了问题,我可以让数据显示在数据视图中,一旦单击了包含该标签的信息的标签,则现在所有内容都需要第二个datagrid弹出.标签将说明数据网格中的内容)

任何帮助将不胜感激
谢谢:)
Wes

Hi, i''ve hit a deadend with my webpage, i can get data to display in the dataview and everything now need a 2nd datagrid to pop up once a certain label has been clicked on with information containing to that label(label will be discription to whats in the datagrid)

any help will be appreciated
thanks:)
Wes

推荐答案

您可以通过
实现
1.添加<asp:hyperlink xmlns:asp="#unknown"></asp:hyperlink>而不是<asp:label xmlns:asp="#unknown"></asp:label>将CSS应用于HyperLink看起来像普通的Label,然后为Hyperlink
处理onClick事件
2.或label 编写javascript onlcick ,然后从javascript
调用服务器端代码
如果它回答了您的问题,请将其标记为解决方案
You can acheive this by

1. Add <asp:hyperlink xmlns:asp="#unknown"></asp:hyperlink> instead of <asp:label xmlns:asp="#unknown"></asp:label> Apply CSS to HyperLink to look like as a normal Label then Handle the onClick event for Hyperlink

2. Or write a javascript onlcick for the label then call serverside code from javascript

Mark it as solution if it answer your question


这篇关于如何将标签用作“点击事件"弹出一个数据网格视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆