944,153 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 474
  • ASP.NET RSS
Oct 10th, 2009
0

block status

Expand 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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
archanaj39 is offline Offline
4 posts
since Aug 2009
Oct 12th, 2009
0
Re: block status
Click to Expand / Collapse  Quote originally posted by archanaj39 ...
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
ASP.NET Syntax (Toggle Plain Text)
  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.
Reputation Points: 12
Solved Threads: 38
Junior Poster
reach_yousuf is offline Offline
194 posts
since Sep 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: deploying a web applicaiton on individual pc
Next Thread in ASP.NET Forum Timeline: Connect asp.net with SQL





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC