如何添加指向< li>的链接它由asp.net的LinkButton控件组成 [英] How to add link to the <li> which consists of LinkButton control of asp.net
本文介绍了如何添加指向< li>的链接它由asp.net的LinkButton控件组成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<ul class="tabrow" id="ulist">
<li id="list1"><div class="icon"><i class="ion ion-person-stalker" ></i></div>
<asp:LinkButton ID="linkMenuProfile" runat="server" onclick="linkMenuProfile_Click">Profile</asp:LinkButton></li>
< / ul>
</ul>
推荐答案
有两种可能的方法实现它
1.包装<李>使用Anchor(< a href =>< / a>)标记,您可以在其中指定链接
2. LinkButton有一个名为PostBackUrl的属性,您可以在其中提及链接
希望这能帮到你
There are two possible ways to achieve it
1. wrap the < li> with an Anchor(< a href="">< /a>)tag and where you can specify the link
2. There is property called PostBackUrl for LinkButton where you can mention the Link
Hope this will help you
这篇关于如何添加指向< li>的链接它由asp.net的LinkButton控件组成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文