如何在服务器端asp.net中为标签开发onClick事件? [英] How to develop onClick event for label in sever side asp.net?
本文介绍了如何在服务器端asp.net中为标签开发onClick事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要将onclick事件发送给一个标签
i已经找到了一些方法来做到这一点......但它没有用......我不能点击标签?
说< the server =tag =is =not =well =formed =>
代码: -
i need to give onclick event to a label
i have found some way to do it... but its not worked.. and i cant click labels?
saying "<the server="" tag="" is="" not="" well="" formed="">"
Code :-
<asp:Label ID="Label1" runat="server" Text="Home" OnClientClick="window.open('Default.aspx', 'Default')"></asp:Label>
推荐答案
为什么不使用Jquery或Javascript使用客户端代码???????
Why don't u use client-code using Jquery or Javascript???????
这篇关于如何在服务器端asp.net中为标签开发onClick事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文