怎样实现点击TextBox弹出日历控件
1、textbox弹出日历控件。 在里面写 Calendar控件 的显示,我写了个例子希望能帮你,<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.

2、cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title></title>

3、<script>function xianshi(){document.getElementById("cal").style.display='block';}

4、</script><style>#cal{ display:none;}</style></head><body><form id="form1" runat="server"><div id="after"></div>

5、<asp:TextBox ID="id1" runat="server" onfocus="xianshi();" ></asp:TextBox><asp:Calendar ID="cal" runat="server"></asp:Calendar></form></body></html>

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:137
阅读量:143
阅读量:163
阅读量:21
阅读量:77