Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
There is a Linkbutton Control in navigation menu
XML
<li class="current"><a href="Home.aspx">Home</a>
      <ul>
      <li>
          <asp: LinkButton ID=" LinkButton1" runat="server" PostbackUrl="userwelcome.aspx">My Page</asp: LinkButton></li>
      </ul></li>


and the LinkButton's Visibility is set to False when Session is Null but it shows Blank square Block Menu under Home menu but when session is not null it is showing "My page" text on this LinkButton text which is working perfectly as i want.

But i want to Remove this Blank Square Block when session is Null.
Posted
Comments
[no name] 18-Sep-12 3:04am    
btr deal with the list item styles instead of link tag.. give a try....
Ernest Wiggins 18-Sep-12 17:38pm    
Try display: none
Ernest Wiggins 18-Sep-12 17:40pm    
If your doing it from the code behind use

Me.LinkButton1.Style.Item("display") = "none"

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900