473,320 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Perforamce of User Controls ?

Platform: ASP.Net/C# / Framework 1.1/Windows 2000 Server

I am thinking of using User Controls for some tasks which I perform on
nearly all pages like:
1) Page Title with different Captions
2) Address Information forms
3) List of Users
etc.

My Application would be running in an ASP mode and thousands of users would
use it simultaneously, so I need to keep a strict check on performace.

After compilations, Is there a overhead in Page Loading wrt User Controls?
What I want to know is that would my page load any slower (even if
marginally) if I use say 4-5 User Controls on it instead of corresponding
code directly?

Regards,
Manish
Nov 15 '05 #1
1 1170
Any user controls are going to incur the expense of having to be created
(constructors), then have their events called (in addition to the page
events), and then rendered with respect to their rendering code. So there
is going to be a small overhead to using User Controls. You can get by some
of this overhead by caching content at a user control level (fragment
caching) so that each time the page is hit the user controls aren't actually
run, but instead the HTML they generated the first time through is actually
placed into your response stream verbatim.

User controls make a lot of sense from a code manageability point, so don't
let a few extra milliseconds dissuade you from using them. Used properly
with caching/fragment caching they can be quite fast and powerful.

--
Justin Rogers
DigiTec Web Consultants, LLC.
"Manish Jain" <ma******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Platform: ASP.Net/C# / Framework 1.1/Windows 2000 Server

I am thinking of using User Controls for some tasks which I perform on
nearly all pages like:
1) Page Title with different Captions
2) Address Information forms
3) List of Users
etc.

My Application would be running in an ASP mode and thousands of users would use it simultaneously, so I need to keep a strict check on performace.

After compilations, Is there a overhead in Page Loading wrt User Controls?
What I want to know is that would my page load any slower (even if
marginally) if I use say 4-5 User Controls on it instead of corresponding
code directly?

Regards,
Manish

Nov 15 '05 #2

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

Similar topics

1
by: Robert Howells | last post by:
Perhaps I'm just too new at this to pull it off, or perhaps it's just bad architecture. I'd appreciate some feedback on the the wisdom (or lack thereof) in attempting the following: I'm not new...
6
by: Steve Booth | last post by:
I have a web form with a button and a placeholder, the button adds a user control to the placeholder (and removes any existing controls). The user control contains a single button. I have done all...
4
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
2
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
0
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
3
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
1
by: Demetri | last post by:
I'm trying to determine if we want to use panels or user controls for our pages. Our primary concern is performance, page loading and posting speed. To illustrate my question, lets use the...
8
by: mark.norgate | last post by:
I've run into a few problems trying to use generics for user controls (classes derived from UserControl). I'm using the Web Application model rather than the Web Site model. The first problem...
4
Frinavale
by: Frinavale | last post by:
Introduction Sometimes, when developing web applications, we need to be able to dynamically load controls based on user selections. The following article describes a simple scenario where TextBox...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.