首页 | 软件中心 | Designand Inspiration
读库教程网 > 网络教程 > 网页编程 > ASP学院 > ASP实例 > ASP实现的日历代码实例程序

ASP实现的日历代码实例程序

添加:2008年5月14日



<%
'以下为ASP中通过该日历算法实现的具体代码
 
    '先判断是否指定了一个年份和月份,没有则根据当前的年和月份显示
    If Request("ReqDate")="" then
         CurrentDate=Date
    else
         CurrentDate=Trim(Request("ReqDate"))
    end if 
    pyear=year(CurrentDate)
    pmonth=month(CurrentDate)
 
    '以下的代码生成日历显示的表格头内容
%>
   
   
   
   
 
   
   
   
   
   
   
   
   
 
 
 

        '">
   

        <%=pyear%>年<%=pmonth%>月
   

        '">