code_junkie

ASP.NET 2.0 HtmlTable Rows - hiding without making invisible

Nov 13th, 2011
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <div style="display:none;">
  2. asp.net table goes here
  3. </div>
  4.  
  5. table.Style.Add("display","none")
  6.  
  7. table.Style["display"] = "none";
  8.  
  9. <tr id="rowID" runat="server">
  10.  
  11. <div style="display:none;" id="tblHideItems1" runat="server">
  12.  
  13. Definition:
  14. protected System.Web.UI.HtmlControls.HtmlGenericControl tblHideItems1;
  15.  
  16. To show:
  17. this.tblHideItems1.Style.Add("display", "inline");
  18.  
  19. To hide:
  20. this.tblHideItems1.Style.Add("display", "none");
Add Comment
Please, Sign In to add comment