书上是这么说的:该TextBox不能输入,只能弹出一个日历控件选择请问如何实现啊??

解决方案 »

  1.   

    有一现在的日历控件,调用代码示例如下:
            <div id="popCal" style="POSITION: absolute; VISIBILITY: hidden; WIDTH: 10px">
                <iframe frameBorder="0" height="160" name="popFrame" scrolling="no" width="282" src="/calander.aspx"></iframe>
            </div>
            <asp:TextBox ID="starttime" runat="server"></asp:TextBox>
            <input onclick="popFrame.fPopCalendar(starttime,starttime,popCal);return false" class="c02" value="▼" size="2" name="1" readonly>
      

  2.   

    TextBox1.Attributes["contentEditable"] = "false";即可
      

  3.   

    一定要用客户端属性,不能<asp:textbox readonly="true">,这样的话服务器端得不到text值
      

  4.   

    我是想调用calendar控件啊..
    狗尾草的我有点看不懂,,,
    小鹰说的readonly不错!!!问题还是没解决..晕啊,