473,471 Members | 2,017 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Effect

Jon
Hello all,

I'm just wondering about the following code example:

if (Page.IsPostBack == false)
{
// Put user code to initialize the page here
}

It's basically a blank method on the page load, which as you can see does
nothing. I was wondering if there are any impliactions (apart from totally
pointless) of doing this? Does it affect the processor time etc?

Thanks all,

Jon
Nov 19 '05 #1
2 940
Hi,

Enable trace on the webpage and see yourself. In my machine time spent on
calling load event’s delegate is about 0.000026s. Remember this event is
raised just once per request, therefore it should not be a serious
implication for application’s performance.

Milosz Skalecki
MCP, MCAD

"Jon" wrote:
Hello all,

I'm just wondering about the following code example:

if (Page.IsPostBack == false)
{
// Put user code to initialize the page here
}

It's basically a blank method on the page load, which as you can see does
nothing. I was wondering if there are any impliactions (apart from totally
pointless) of doing this? Does it affect the processor time etc?

Thanks all,

Jon

Nov 19 '05 #2
What you're looking at is a placeholder for your code which comes from a
Template. You may delete it if you like. The use of Templates in various
Microsoft programming IDEs is a time-saving way of writing the boiler-plate
code that is typically written by any develper. It is there for your
convenience.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Paranoia is just a state of mind.

"Jon" <Jo*@discussions.microsoft.com> wrote in message
news:69**********************************@microsof t.com...
Hello all,

I'm just wondering about the following code example:

if (Page.IsPostBack == false)
{
// Put user code to initialize the page here
}

It's basically a blank method on the page load, which as you can see does
nothing. I was wondering if there are any impliactions (apart from totally
pointless) of doing this? Does it affect the processor time etc?

Thanks all,

Jon

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Susanna | last post by:
Hi all, I'm using the following slideshow script that I found on the web to display changing images with a crossfade effect. Eventually I will be adding many more images to the slideshow. The...
14
by: Charles Douglas Wehner | last post by:
If you go to http://www.netscape.com and search for Wehner, you will find my site. It will say http://wehner.org You click to preview, and find that my home page is too big for the preview...
16
by: eholz1 | last post by:
Hello CSS group, I saw a beautiful effect that I would like to use either by CSS or using photoshop to create the image/effect (maybe even imagemagick) the site address is:...
3
by: Beamer | last post by:
Hi I am trying to build a roating slide effect in javascript. Basically, I have a list like below <ul id="slideShowCnt"> <li id="slide0"><img .../></li> <li id="slide0"><img .../></li> <li...
7
by: nolo contendere | last post by:
the alert message appears before the Effect.SlideUp even begins. How can I ensure that the SlideUp completes before executing the next statement? I've tried setTimeout, and I can kind of get it to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.