Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

hai everybody..

 

how can i detect page generation when i load my page..

 

like php page.

example

 

"Page Generation: 4.811 Seconds".

 

hope some one know bout it..

 

thank you

Posted

Well ... you might save time information at the start of the loading and save time information at the end... however... I'm sure there's something more accurate than that. I'll go to my job this morning and I'll find you a solution :p

 

(Addict even at home ! :p)

"If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown

"Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me

"A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend.

C# TO VB TRANSLATOR

Posted

Here is what I've done... it's always approximate but... it work best with search or long process which takes minutes to accomplish.

 

private[/color][/size][size=2] [/size][size=2][color=#0000ff]void[/color][/size][size=2] Page_Load([/size][size=2][color=#0000ff]object[/color][/size][size=2] sender, System.EventArgs e)[/size]
[size=2]{[/size]
[size=2]DateTime d1 = DateTime.Now;[/size]
// A LONG PROCESS HERE OR ANY PROCESS
[size=2]DateTime d2 = DateTime.Now;[/size]
[size=2]TimeSpan t = d2 - d1;[/size]
[size=2]Response.Write(t.Minutes + ":" + t.Seconds + ":" + t.Milliseconds);[/size]
[size=2]}

"If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown

"Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me

"A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend.

C# TO VB TRANSLATOR

Posted

I'm interested in this feature Derek... as I found a temporary solution... I would like to know more about Tracing (which could be more effective).

 

Could you give us more detail or maybe some code snippet ?

"If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown

"Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me

"A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend.

C# TO VB TRANSLATOR

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...