I have menu like below :
I want to hide some menu items in Child page when child page is Load. plz give me advice how can i do this.
<div>
<ul id="navmenu">
<li class="style1"><a href="#"> Home a>li>
<li><a href="#" target="_self"> Edita>
<ul class="sub1">
<li><a href="cust.aspx" target="_self"> Add Category a>li>
<li><a href="search.aspx" target="_self"> Delete a>li>
<li><a href="search.aspx" target="_self"> Update a>li>
li>
ul>
<li><a href="frmInputForm.aspx" target="_self" target="_self"> Add Consumera>li>
<li><a herf="#"> SMS SENDa>
<ul class="sub1">
<li><a href="MainPage.aspx" target="_self">Template SMS a>li>
<li><a href="custSMS.aspx" target="_self">Customize SMSa>li>
<li><a href="#" target="_self">Upload Filea>
<ul class="sub2">
<li><a href="uploadDetail.aspx"> Excela>li>
<li><a herf="#"> Worda>li>
<li><a herf="#"> Othera>li>
ul>
li>
ul>
li>
<li><a herf="#"> Reporta>li>
<li><asp:LinkButton ID="LinkButton1" runat="server" Height="24px"
Width="105px" onclick="LinkButton1_Click">Logoutasp:LinkButton>li>
div>
Sunny SharmaPosted Sep 6, 2013, 4:45 AM
Ramesh MaruthiPosted Sep 6, 2013, 4:26 AM
If you want to write you can write in code behind file in page load as
if(ispostback)
{
// condition which u want
childelement.visible = false;
}
or
in Aspx page you can do like this for particular element
their is an option like Autopostback = " true"