Check if dateTime is a weekend or a weekday

前端 未结 6 1909
日久生厌
日久生厌 2021-02-03 20:48


        
6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-03 21:01

    You need to put your asp controls inside form tag with runat="server".

    
        

    Today's date is:
    The day of the week is:

    Signature of Page_Load method is incorrect in your code. Also you should use Response.Write for asp websites instead of Console.Writeline. There should be OR(||) instead of AND(&&) when you are checking for the day of the week.

     
    

提交回复
热议问题