在夜面中有一个textbox,一个button和一个Calendar控件,我想在点击该按钮后,才在textbox下放显示Calendar,可是html中不知道如何写.记得以前是用div的,然后设置其display属性,可是我用了一下.net里好象没有该属性,请各位指教!!!!
<TABLE id="Table3" >
<TR>
<TD style="HEIGHT: 30px">
<asp:TextBox id="tboxDate" runat="server"></asp:TextBox>
<asp:Button id="Button1" runat="server" Width="72px" Text="Button"></asp:Button></TD>
<div>    Calendar控件应该如何加?????</div>
<TR></TABLE>

解决方案 »

  1.   

    calendar空间没有visible属性么?
    设置为false不就好了.
      

  2.   

    如果你的calendar不是放在一个单独的页面中的话,就是在本页面中,那你就把它的VISIBLE设置成FALSE如果是放在另外的页面中的话
    scriptString = "<script language=JavaScript>"
            scriptString += "var postFlag = window.showModalDialog('" & caldar & "?date=" & Date.Now & "',"
            scriptString += "window,'dialogWidth:226px;dialogHeight:260px;help:no;resizable:No;status:No;scroll:off;"
            scriptString += "dialogLeft:" & tmpX & "px;dialogTop:" & tmpY & "px'); if(postFlag[0] == 'T'){window.document.forms[0].submit();}"
            scriptString += "</script>"
      

  3.   

    同样可以用Div,在客户端实现
      

  4.   

    也可以使用Panel啊,把calendar放入Panel中,设置Panel控件的visible属性.
      

  5.   

    <TABLE id="Table2" style="Z-INDEX: 111; LEFT: 410px; POSITION: absolute; TOP: 345px" cellSpacing="1"cellPadding="1" width="300" border="1">
    <TR><TD><DIV style="WIDTH: 295px; POSITION: relative; HEIGHT: 213px" ms_positioning="GridLayout"><asp:TextBox id="TextBox4" style="Z-INDEX: 101; LEFT: 10px; POSITION: absolute; TOP: 10px" runat="server"idth="115px"></asp:TextBox><asp:Button id="Button4" style="Z-INDEX: 102; LEFT: 135px; POSITION: absolute; TOP: 10px" runat="server"Text="Button"></asp:Button><asp:TextBox id="TextBox5" style="Z-INDEX: 103; LEFT: 10px; POSITION: absolute; TOP: 55px" runat="server"Width="115px"></asp:TextBox><asp:Calendar id="Calendar1" style="Z-INDEX: 104; LEFT: 10px; POSITION: absolute; TOP: 40px" runat="server"Visible="False"></asp:Calendar></DIV></TD></TR></TABLE>
      

  6.   

    你直接用我上面的HTML就好了,你看看把
      

  7.   

    不要这样做,用iframe版的梅花雨日历控件吧