如何在asp.net中使用HyperLink [英] how to use the HyperLink in asp.net
问题描述
我是asp.net技术的新手
我需要少量信息,我在C#.net Web应用程序中使用文件系统"作为我的主机,
在这里,我的问题是我正在通过超链接浏览URL到"www.google.com",但我觉得更像是
" http://localhost:1162/Secure%20Distributed%20Systems/www.google.com "
我的示例代码是
hi i am new to asp.net technology
i need small information, iam using the "Filesystem" as my host in C#.net webapplication,
here my problem is i am Navigating the url to "www.google.com" throught the Hyperlink but i was taking as something more like
"http://localhost:1162/Secure%20Distributed%20Systems/www.google.com"
my sample code is
HyperLink1.NavigateUrl ="www.google.com";
而且我也想尝试
超链接==>
属性==>
Navigatingurl ="WWW.google.com"
我要同时尝试这两种类型,这是什么问题,如何避免这种情况
and also iam trying like
hyperlink==>
properties==>
Navigatingurl="WWW.google.com"
iam trying both the types , what is the problem, how to avoid this one
推荐答案
尝试这种情况
<asp:HyperLink ID="MyHyperLinkControl" NavigateUrl="http://google.com" runat="server">link</asp:HyperLink>
Try this
<asp:HyperLink ID="MyHyperLinkControl" NavigateUrl="http://google.com" runat="server">link</asp:HyperLink>
使用
这个
它肯定会工作
use
this
it will definitely work
hyperlink1.NavigateUrl="http://www.google.com"
使用
这个
它肯定会工作
use
this
it will definitely work
hyperlink1.NavigateUrl="http://www.google.com"
其他明智的回答
other wise reply me
这篇关于如何在asp.net中使用HyperLink的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!