954,123 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

block status

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.

archanaj39
Newbie Poster
4 posts since Aug 2009
Reputation Points: 10
Solved Threads: 0
 
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

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If CheckIsValidUser() = False Then
            Label1.Text = "Your Status is INACTIVE"
        Else
            Label1.Text = "Your Status is ACTIVE"
        End If
    End Sub


    
    Private Function CheckIsValidUser() As Boolean
        '
        Dim RegisterDate As Date = Microsoft.VisualBasic.DateAdd(DateInterval.Month, -1, Date.Today).ToString
        Dim ExpiryDate As String = Microsoft.VisualBasic.DateAdd(DateInterval.Month, 1, RegisterDate).ToString
        If ExpiryDate.ToString = Date.Today.ToString Then
            ''Raise your exception
            Return False
        Else
            Return True
        End If



    End Function

Mark as solved if it helps !!!

reach_yousuf
Junior Poster
195 posts since Sep 2007
Reputation Points: 12
Solved Threads: 38
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You