|
-
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
MsgBox("allow")
ElseIf dt.Day() >= 17 Then
MsgBox("disallow")
Else
Label1.Text = "error"
End If
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.....!
Similar Threads
-
By hemanthjava in forum Java
Replies: 0
Last Post: 07-05-2006, 10:08 PM
-
Replies: 1
Last Post: 05-23-2005, 11:31 AM
-
By jbricher in forum ASP.NET
Replies: 2
Last Post: 04-10-2005, 12:37 PM
-
By rtwitty in forum VB Classic
Replies: 4
Last Post: 02-24-2005, 01:12 PM
-
By sxy in forum VB Classic
Replies: 7
Last Post: 06-12-2002, 11:00 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks