<%@ Page Language="C#" %> <html> <head id="Head1" runat="server"> <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script> <script language="javascript"> $(document).ready(function () { $(".Hide").parent().remove(); }); </script> </head> <body> <form id="form1" runat="server"> <div class="Container"> <asp:SiteMapDataSource runat="server" ID="smdDataSource" ShowStartingNode="false" /> <asp:Menu runat="server" ID="menuItems" DataSourceID="smdDataSource"> <DynamicItemTemplate> <asp:HyperLink runat="server" ID="menuLink" Text='<%# Eval("Text") %>' NavigateUrl='<%# Eval("NavigateUrl") %>' CssClass='<%# (Eval("NavigateUrl").ToString()).Contains("HiddenPage.aspx")? "Hide" : "Normal" %>' /> </DynamicItemTemplate> </asp:Menu> </div> </form> </body> </html>
Sunday, August 29, 2010
How to remove asp.net menu item using java script and jQuery
Subscribe to:
Post Comments (Atom)
Azure Storage Account Types
Defferent Types of Blobs Block blobs store text and binary data. Block blobs are made up of blocks of data that can be managed individually...
-
Why we need asynchronous tasks? Execute a time consuming operations in parallel to the CLR thread which execute the request If you have ...
-
Demo: I was thinking a way to show images before actually uploading them to server. I would say to preview images using javascript. Obv...
No comments:
Post a Comment