How do i hide the tables created in visual studio 2010 C#? -
how hide tables created in visual studio 2010 c#? trying hide table (somewhat timetable) , let appear when user click on 1 of calendar dates. tried using visibility: hidden; whole table disappeared when view on design view. need help! in advance.
your question bit unclear, understood, how can achieve:
in codebehind (c# .cs file) can set table hidden using style property, this:
.aspx file
<table id="table1" runat="server"> ......td's , tr's..... </table>
.cs file in page_load
table1.style.add("display", "none");
this allow see table in design mode, , when page rendered on client's browser table
hidden.
note: cannot use this.table1.visible = false;
in codebehind hide table because in case table never reach client-side browser , wont able show table @ all, should use table1.style.add("display", "none");
if want send table client's browser in hidden mode.
you can use jquery or javascript on client side show table.
so when user clicks on calendar date call javascript function. javascript function table object dom id or class , show setting style display
block
Comments
Post a Comment