本文介绍了如何将.aspx页面添加到超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我也搜索了它并检查了许多网站也可以有人帮助我。
我想将.aspx页面添加到超链接,因为我想要用户点击主页它将被定向到下面链接中提到的开始页面
I have googled it also and checked many sites also Can anybody help me on this.
I want to add .aspx page to hyper link as i want whenever user click on home it get directed to start page mentioned in link below
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/StartPage.aspx">Home</asp:HyperLink></li>
我尝试过:
What I have tried:
<header>
<div class="container">
<div class="row">
<div class="col-lg-4">
<img src="company-logo.png" />
</div>
<div class="col-lg-8">
<div class="top-nav">
<nav class="navbar pull-right">
<ul class="nav navbar-nav">
<li class="active"><%--<a href="StartPage.aspx">Home</a>--%> <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/StartPage.aspx">Home</asp:HyperLink></li>
<li><a href="http://www.veridic.in/veridic-aboutus.html">About US</a></li>
<li><a href="http://www.veridic.in/veridic-contact.html">Contact Us</a></li>
</ul>
</nav>
</div>
</div>
</div>
</div>
</header>
推荐答案
<asp:HyperLink NavigateUrl="StartPage.aspx" Text="Click This" runat="server" />
我希望这会对你有帮助!
I Hope this will help you!
这篇关于如何将.aspx页面添加到超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!