Home >Web Front-end >JS Tutorial >js birth date year month day cascading menu sample code_javascript skills

js birth date year month day cascading menu sample code_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:04:211407browse

The Gregorian calendar (Gregorian calendar) now used around the world has also gone through a long-term evolution process. Let's first look at the Gregorian calendar. The number of days in each month is fixed: "Single days before the seventh day, double days after the eighth day." That is to say, January, March, May, July, August, October and the twelfth lunar month (December) have 31 days, April, June, September and November have 30 days. Only February has 28 days in ordinary years and 29 days in leap years. .

Copy code The code is as follows:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>



   


   


   

  
   
   
   

   
   
   




.aspx.cs
复制代码 代码如下:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            btnSave.Attributes.Add("onclick", "getValue()");
        }

        protected void btnSave_Click(object sender, EventArgs e)
        {
            Response.Write(hfValue.Value);
        }
    }
}

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn