如何在asp.net的表格单元格中的超链接上获取文本 [英] How to get the Text on a hyper link in a cell of a table in asp .net

查看:193
本文介绍了如何在asp.net的表格单元格中的超链接上获取文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们



有人可以告诉我如何在asp .net中的表格单元格中的超链接上获取文本







谢谢

Hi friends

could anyone please tell me how to get the text on a hyper link in a table cell in asp .net



Thank You

推荐答案

您的问题不明确,它应该至少包含你正在尝试的方法以及你未能实现的目标。



所以根据我的理解,我给你的解决方案可能是帮助你。



你可以在创建它时将主键添加到超链接的id即(
Your questions is not clear, it should at least contain what approach are you trying and where exactly you failed to achieve.

So here as per my understanding i am giving you the solution which might be of help to you.

You can add the primary key to the id of the hyperlink while creating it i.e. (
'hlnk_' + 1

)以后可以通过它的id获取它。



或者你想要获取具有此id的所有超链接然后你可以在jQuery中获取它们如下: -

) and later can fetch it by its id.

Or else you want to fetch all the hyperlinks with this id then you can get them in jQuery as below :-


' a [id ^ =hlnk _]'





如果这个答案有,请详细说明不符合你的期望。



Please elaborate more if this answer does not meets your expectation.


这篇关于如何在asp.net的表格单元格中的超链接上获取文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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