U
Usman Ghani
Hi There,
I want to display below page creation time and so I have two variables
as:
Dim start_time As New DateTime
Dim end_time As New DateTime
First I am storing value in start_time on page pre_render as
Private Sub Page_PreRender(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.PreRender
start_time = Now
End Sub
And then storing value in end_time on page load event as
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not IsPostBack Then
end_time = Now
End If
** here I want to display the time difference, will it be like
lblPageCreationTime.Text = start_time - end_time , this one is giving
error here?
End Sub
Can someone please help me here?
Best Regards,
Usman
I want to display below page creation time and so I have two variables
as:
Dim start_time As New DateTime
Dim end_time As New DateTime
First I am storing value in start_time on page pre_render as
Private Sub Page_PreRender(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.PreRender
start_time = Now
End Sub
And then storing value in end_time on page load event as
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not IsPostBack Then
end_time = Now
End If
** here I want to display the time difference, will it be like
lblPageCreationTime.Text = start_time - end_time , this one is giving
error here?
End Sub
Can someone please help me here?
Best Regards,
Usman