Click here to Skip to main content
15,894,460 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have a master page and in that i have a menu item and when i click on each item that particular clicked page should be displayed.
I am getting that pages from web.config file(links for that pages.)
And now before displaying that page i want to hide unuseful data of that and should display the remaining page. i.e.,i have to hide some part of the page before displaying on the screen..
Please help me if anyone faced the same issue.

Thanks in advance
Posted
Comments
PRAKASH9 10-Nov-14 7:35am    
So you have to write hide code inside page load.
Karthik Bilakanti 10-Nov-14 11:57am    
Hide code

There are both server side properties which you can set (
i.e. myPanel.Visible = false
)
and client side i.e. jQuery

$("#myPanel").css("display", "none");


Depends on how much of the page you should have hidden and under which conditions.


If this helps please take time to accept the solution. Thank you.
 
Share this answer
 
Comments
Karthik Bilakanti 11-Nov-14 2:11am    
Actually I am displaying that page in one panel and now i want to hide first two rows of the displayed page in that panel.... can we hide some part of the panel.....
You may apply Jquery like this Demo code:

HTML
<html>
   <script>
      $(document).ready(function(){
            $("div.featuredposts_content1").hide();
            $("div.featuredposts_content2").show();
      })
   </script>
   <body>
      <div id="IdOfDiv1" class="featuredposts_content1">
         Cat1
      </div>  

      <div id="IdOfDiv2" class="featuredposts_content2">
         Cat2
      </div>
  </body>
</html>​​​​​
 
Share this answer
 

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