在文本框中键入的站点地址用作链接 [英] site address typed in textbox to serve as a link

查看:77
本文介绍了在文本框中键入的站点地址用作链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在文本框中键入的网站地址在作为网页查看时应作为该网站的链接。在正常过程中,它显示为文本。我正在使用带有C#的ASP.NET。



我在Facebook上看到过这种情况,但我无法在我的网站上找到并编写代码或教程来实现这一点。



我正在寻找任何帮助来实现它。



请帮助我。

I want that a site address typed in textbox should serve as a link to that site when viewed as webpage. In normal course it appears as a text. I am using ASP.NET with C#.

I have seen this happen at Facebook but I was not able to find and code or tutorial to implement this on my site.

I am looking for any kind of help to implement it.

Kindly help me.

Many thanks.

推荐答案

看到这个,

See this,
Uri myUri = new Uri(TextBox1.Text, UriKind.Absolute);





http://msdn.microsoft.com/en- us / library / ms131565(v = vs.95).aspx [ ^ ]

http://msdn.microsoft.com/en-us/library/zttxte6w(v = vs.110).aspx [ ^ ]



-KR



http://msdn.microsoft.com/en-us/library/ms131565(v=vs.95).aspx[^]
http://msdn.microsoft.com/en-us/library/zttxte6w(v=vs.110).aspx[^]

-KR


这篇关于在文本框中键入的站点地址用作链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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