怎样实现点击TextBox弹出日历控件

2025-05-22 16:36:29

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

怎样实现点击TextBox弹出日历控件

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

怎样实现点击TextBox弹出日历控件

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

怎样实现点击TextBox弹出日历控件

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

怎样实现点击TextBox弹出日历控件

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

怎样实现点击TextBox弹出日历控件
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢