如何在asp.net中将标签文本分配给href链接动态 [英] how to assign label text to href link dynamically in asp.net

查看:80
本文介绍了如何在asp.net中将标签文本分配给href链接动态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想将标签文本设置为href链接.

那是

标签text ="sadf@gmail.com".

我想将标签文本分配给href链接.

即为

href ="mailto:label.text".

如何将标签文本分配给href

Hi
I want to assisgn label text to href link.

That means,

label text="sadf@gmail.com".

I want to assigning my label text to href link.

i.e as

href="mailto:label.text".

How can i assign label text to href

推荐答案

您可能需要查看和使用的是 ^ ]控件.
What you probably need to look at and use is the hyperlink[^] control.


使用jQuery怎么样?

What about using jQuery?

<script type="text/javascript">


(文档).ready(function(){
(document).ready(function () {


这篇关于如何在asp.net中将标签文本分配给href链接动态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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