本文介绍了捕获超链接文本属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我有一个aspx页面(此处称为page_1),其数据网格的第一个 列包含超链接。当用户点击其中一个超链接时,他将b / b 将导航到另一个aspx页面(此处称为page_2)。我需要 缓存链接'的文本(hyperlink.text属性)的值,这样我就可以在第2页的page_load事件中使用它。。 /> 我想过使用隐藏字段然后在page_2的Page_Load事件中调用 Request.Form(" hdnClickedLinkText")。我点什么不知道如何在点击 超链接时填充第_1页的hdnClickedLinkText字段。我已经考虑过使用AddHandler但是没有 暴露的单击事件用于超链接控件。我可以设计一个自定义类 ,它继承自超链接类并实现我自己的Click事件,但 这似乎有点多,当一个更简单的解决方案可能存在时。 /> 有没有人有任何其他想法? TIA, - Joe VB.NET/C#/ASP.NET/ASP/VB/C++/Web和数据库开发/ VBA自动化I have an aspx page (referred to here as page_1) with a datagrid whose firstcolumn contains hyperlinks. When a user clicks one of these hyperlinks, hewill navigate to another aspx page (referred to here as page_2). I need tocache the value of the link''s text (hyperlink.text property) so that I canuse it in the page_load event of page_2.I''ve thought of using a hidden field and then callingRequest.Form("hdnClickedLinkText") in the Page_Load event of page_2. What Idon''t know is how to populate the hdnClickedLinkText field on page_1 when thehyperlink is clicked. I''ve thought about using AddHandler but there is noexposed click event for the hyperlink control. I could design a custom classwhich inherits from the hyperlink class and implement my own Click event, butthis seems a bit much when a simpler solution may exist.Does anyone have any other ideas?TIA,--JoeVB.NET/C#/ASP.NET/ASP/VB/C++/Web and DB development/VBA Automation推荐答案 这篇关于捕获超链接文本属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!