>>I would like to test the difference in speed it takes to open a web page when Text property of ASP:Label is hard-coded vs. when the Text is assigned in Page_load method from the values set in the web.config file.
>>
>>Where would you suggest to place the variables to store the "begin time" and "end time"? What is the functions in .NET equivalent to seconds() in VFP?
>
>I do it all in the global.asax file. Basically, my framework contains a BeginRequest() and a EndRequest() methods. The code, in regards to that, in the global.asax file looks like this:
>
>
> Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
> LXFramework.oRequest = Request
> LXFramework.oResponse = Response
> LXFramework.oServer = Server
> LXFramework.BeginRequest()
> End Sub
>
> Sub Application_EndRequest(ByVal sender As Object, ByVal e As EventArgs)
> LXFramework.oResponse.Write(LXFramework.GetJavascriptMessage)
> LXFramework.EndRequest()
> End Sub
>
>
>LXFramework is an object that is created in global.asax in order to allow me a reference to the framework.
>
>The framework contains a property nDateNow which is initialize in BeginRequest() as follow:
>
>
> nDateNow = Date.Now.Ticks
>
>
>Then, in EndRequest(), I have something like this:
>
>
> Dim lnDateNow As Double = Date.Now.Ticks
> Dim lnElapse As Double
> lnElapse = ((lnDateNow - nDateNow) / 10000000)
>
Obviously you are miles ahead of me in how you use .NET. I don't have a framework object. But I will "extract" some of your code to apply for my test. And I should look into creating a framework object. Right now, I can't get the concept well in my head. I guess the first thing to learn is how to use the global.aspx.
Thank you very much for your message.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham