在网上找到很多资料,但是就只有一段代码有没有应用的详细介绍啊?请各位用过的帮忙,详细用法是怎样的??各位帮忙!!!

解决方案 »

  1.   

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="ssrytj.aspx.cs" Inherits="ssrytj" %><html xmlns="http://www.w3.org/1999/xhtml" >
    <head >
        <title>Untitled Page</title>
        <script   language=javascript>
    <!--#INCLUDE VIRTUAL="calendar.js" -->
    </script>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            起始日期:<asp:TextBox ID="TextBox1" runat="server" Width="83px"></asp:TextBox>&nbsp;&nbsp;&nbsp;
            结束日期:<asp:TextBox ID="TextBox2" runat="server" Width="83px"></asp:TextBox>
        </div>
        </form>
    </body>
    </html>ssrytj.aspx.cs:
        protected void Page_Load(object sender, EventArgs e)
        {
            TextBox1.Attributes.Add("onfocus", "calendar();");
            TextBox2.Attributes.Add("onfocus", "calendar();");
        }
      

  2.   

    <script   language=javascript>
    <!--#INCLUDE VIRTUAL="calendar.js" -->
    </script>TextBox1.Attributes.Add("onfocus", "calendar();");
            TextBox2.Attributes.Add("onfocus", "calendar();");两个关键,把calendar.js复制到你的目录中就可以了
      

  3.   

    但我的问题没人解答,郁闷!
    http://community.csdn.net/Expert/topic/5031/5031142.xml?temp=.4843103
      

  4.   

    太长了发不出啊。你有没MSN或QQ?
      

  5.   

    把光标定定在文本框上时就显示!!
    Script Error!
      

  6.   

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head id="Head1">
        <title>无标题页</title>
     <script   language=javascript>
    <!--#INCLUDE VIRTUAL="calendar.js" -->
    </script>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            起始日期:<asp:TextBox ID="TextBox1" runat="server" Width="83px"></asp:TextBox>&nbsp;&nbsp;&nbsp;
            结束日期:<asp:TextBox ID="TextBox2" runat="server" Width="83px"></asp:TextBox>
            时间:
            </div>
       </form>
    </body>
    </html>    protected void Page_Load(object sender, EventArgs e)
        {
         TextBox1.Attributes.Add("onfocus", "calendar();");
          TextBox2.Attributes.Add("onfocus", "calendar();");
        }
    总算行了哈哈!!