PLZ hELP ME IN.....DATE COMPARISON!
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim dt As New Date
If dt.Day() <= 16 Then
ElseIf dt.Day() >= 17 Then
Label1.Text = "error"
Im the beginner for the asp.net .
I would like to allow user to view the results before 16/mm/yyyy and disallow when the date is reached after 17/mm/yyyy.....
but when i write this code in the page load.....all the msgbox i get is ("allow") althougt the date is reached after 17/mm/yyyy.....
pls help me. to solve this problem.....!
By hemanthjava in forum Java
Last Post: 07-05-2006, 10:08 PM
Last Post: 05-23-2005, 11:31 AM
By jbricher in forum ASP.NET
Last Post: 04-10-2005, 12:37 PM
By rtwitty in forum VB Classic
Last Post: 02-24-2005, 01:12 PM
By sxy in forum VB Classic
Last Post: 06-12-2002, 11:00 AM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL