点击超链接的事件 [英] Click Event of Hyperlink

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

问题描述

如何找到一个是否超链接被点击或不ASP.net C#在运行?
我想写code对像

 的Response.Redirect(Default.aspx的);


解决方案

如果你想在后的链接点击执行服务器code,那么你应该使用ASP.NET控件&LT ; ASP:LinkBut​​ton的>

这就像一个按钮,可以让你挂接服务器端的事件,并在年底可以在浏览器只是重定向到任何页面。

How to find Whether a hyperlink is clicked or not in ASP.net C# in runtime? I want to write code on like that

Response.Redirect("Default.aspx");

解决方案

If you want to execute server code upon a click in a link, then you should use the ASP.NET control <asp:LinkButton>

This is just like a button and will allow you to hook up Server Side Events and at the end you can just redirect the viewer to any page.

这篇关于点击超链接的事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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