处理由HTML链接ASP.NET引发的事件 [英] Handling a event fired by a html link ASP.NET

查看:67
本文介绍了处理由HTML链接ASP.NET引发的事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很疯狂,想找出一个答案.
我正在动态创建链接< a href…..> abc</a>当点击一个时,它必须回传.我需要处理该事件,并且链接必须传递一个值.
我不能使用linkBut​​ton,因为这些链接将是日历控件上的文本.
因此,目标是用户单击日历上的事件,并且无需离开页面即可显示事件信息.
有办法实现吗?

谢谢,

I’m going crazy trying to figure this out one.
I’m dynamically creating links < a href…..>abc</a> and when clicked on one, it has to postback. I need to handle the event and the link has to pass a value.
I can not use linkButton because these links will be the text on a calendar control.
So the goal is that the user clicks on an event on the calendar and it shows the event information without leaving the page.
Is there a way to achieve this?

Thanks,

推荐答案

使用超链接控件.呈现为锚元素.
Use Hyperlink control. It is rendered as an anchor element.


这篇关于处理由HTML链接ASP.NET引发的事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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