block status

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2009
Posts: 3
Reputation: archanaj39 is an unknown quantity at this point 
Solved Threads: 0
archanaj39 archanaj39 is offline Offline
Newbie Poster

block status

 
0
  #1
Oct 10th, 2009
hi,
I have developed website "Job requisition and Interview System".
In this website I offer products for accessing resume of Job Seeker .
After buying the product they can accesses resumes by activing status.After one month validity of product get over.And status become inactive.In this I did active status but how can I do inactive status after one month.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 66
Reputation: reach_yousuf is an unknown quantity at this point 
Solved Threads: 12
reach_yousuf reach_yousuf is offline Offline
Junior Poster in Training
 
0
  #2
Oct 12th, 2009
Originally Posted by archanaj39 View Post
hi,
I have developed website "Job requisition and Interview System".
In this website I offer products for accessing resume of Job Seeker .
After buying the product they can accesses resumes by activing status.After one month validity of product get over.And status become inactive.In this I did active status but how can I do inactive status after one month.
you can retrieve the Product Registration date then compare while accessing. have a look at the sample code
  1. Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  2. If CheckIsValidUser() = False Then
  3. Label1.Text = "Your Status is INACTIVE"
  4. Else
  5. Label1.Text = "Your Status is ACTIVE"
  6. End If
  7. End Sub
  8.  
  9.  
  10.  
  11. Private Function CheckIsValidUser() As Boolean
  12. '
  13. Dim RegisterDate As Date = Microsoft.VisualBasic.DateAdd(DateInterval.Month, -1, Date.Today).ToString
  14. Dim ExpiryDate As String = Microsoft.VisualBasic.DateAdd(DateInterval.Month, 1, RegisterDate).ToString
  15. If ExpiryDate.ToString = Date.Today.ToString Then
  16. ''Raise your exception
  17. Return False
  18. Else
  19. Return True
  20. End If
  21.  
  22.  
  23.  
  24. End Function
  25.  
Mark as solved if it helps !!!
Last edited by reach_yousuf; Oct 12th, 2009 at 5:45 am.
Yousuf
Software Developer
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC