473,385 Members | 1,472 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,385 software developers and data experts.

Best Practices (Server controls)

We are starting to standardize what we have been doing with our web
applications and I have a “cost-benefit” question when it comes to some
server controls.

Main two examples is
Plain text vs. <asp:label /and <divvs <asp:panelsfor current static
information.

In my view if we go ahead and make all things static into server controls
anyway then we have the advantage of things like localization, skins and
generally being able to program to them should the spec’s change.
This in general (plus general consistency) seems to outweigh the performance
concerns. Not to mention a server side control could just have viewstate off
and I am willing to bet it will be exactly like any literal control once it
gets to the client.

Oct 19 '06 #1
4 1332
I call premature optimization.

Do your sites have performance concerns?
Have you profiled them and discovered server controls to be a leader cause?

If it _was_ a performance issue, you wouldn't be asking the question....

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/
"sean_mcad" <se******@discussions.microsoft.comwrote in message
news:4A**********************************@microsof t.com...
We are starting to standardize what we have been doing with our web
applications and I have a "cost-benefit" question when it comes to some
server controls.

Main two examples is
Plain text vs. <asp:label /and <divvs <asp:panelsfor current static
information.

In my view if we go ahead and make all things static into server controls
anyway then we have the advantage of things like localization, skins and
generally being able to program to them should the spec's change.
This in general (plus general consistency) seems to outweigh the
performance
concerns. Not to mention a server side control could just have viewstate
off
and I am willing to bet it will be exactly like any literal control once
it
gets to the client.

Oct 19 '06 #2
No performance issues really and that is not even taking into consideration
proper deployment.

Turns out my lead has agreed for us to go all out on server controls for the
very reasons same reasons (extensiblity and standardization)

"Karl Seguin [MVP]" wrote:
I call premature optimization.

Do your sites have performance concerns?
Have you profiled them and discovered server controls to be a leader cause?

If it _was_ a performance issue, you wouldn't be asking the question....

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/
"sean_mcad" <se******@discussions.microsoft.comwrote in message
news:4A**********************************@microsof t.com...
We are starting to standardize what we have been doing with our web
applications and I have a "cost-benefit" question when it comes to some
server controls.

Main two examples is
Plain text vs. <asp:label /and <divvs <asp:panelsfor current static
information.

In my view if we go ahead and make all things static into server controls
anyway then we have the advantage of things like localization, skins and
generally being able to program to them should the spec's change.
This in general (plus general consistency) seems to outweigh the
performance
concerns. Not to mention a server side control could just have viewstate
off
and I am willing to bet it will be exactly like any literal control once
it
gets to the client.


Oct 20 '06 #3
Don't feel bad.
A lot of guys go through a phase of premature optimization.
It's usually mostly a mental thing.
I suggest consulting a counselor or doctor as needed.
;-)

"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
netwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...
>I call premature optimization.

Do your sites have performance concerns?
Have you profiled them and discovered server controls to be a leader
cause?

If it _was_ a performance issue, you wouldn't be asking the question....

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/
"sean_mcad" <se******@discussions.microsoft.comwrote in message
news:4A**********************************@microsof t.com...
>We are starting to standardize what we have been doing with our web
applications and I have a "cost-benefit" question when it comes to some
server controls.

Main two examples is
Plain text vs. <asp:label /and <divvs <asp:panelsfor current static
information.

In my view if we go ahead and make all things static into server controls
anyway then we have the advantage of things like localization, skins and
generally being able to program to them should the spec's change.
This in general (plus general consistency) seems to outweigh the
performance
concerns. Not to mention a server side control could just have viewstate
off
and I am willing to bet it will be exactly like any literal control once
it
gets to the client.


Oct 20 '06 #4
lol

--
http://www.openmymind.net/
http://www.codebetter.com/
"Steve C. Orr [MVP, MCSD]" <St***@Orr.netwrote in message
news:eb****************@TK2MSFTNGP04.phx.gbl...
Don't feel bad.
A lot of guys go through a phase of premature optimization.
It's usually mostly a mental thing.
I suggest consulting a counselor or doctor as needed.
;-)

"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
netwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...
>>I call premature optimization.

Do your sites have performance concerns?
Have you profiled them and discovered server controls to be a leader
cause?

If it _was_ a performance issue, you wouldn't be asking the question....

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/
"sean_mcad" <se******@discussions.microsoft.comwrote in message
news:4A**********************************@microso ft.com...
>>We are starting to standardize what we have been doing with our web
applications and I have a "cost-benefit" question when it comes to some
server controls.

Main two examples is
Plain text vs. <asp:label /and <divvs <asp:panelsfor current
static
information.

In my view if we go ahead and make all things static into server
controls
anyway then we have the advantage of things like localization, skins and
generally being able to program to them should the spec's change.
This in general (plus general consistency) seems to outweigh the
performance
concerns. Not to mention a server side control could just have viewstate
off
and I am willing to bet it will be exactly like any literal control once
it
gets to the client.



Oct 20 '06 #5

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

Similar topics

16
by: D Witherspoon | last post by:
I am developing a Windows Forms application in VB.NET that will use .NET remoting to access the data tier classes. A very simple way I have come up with is by creating typed (.xsd) datasets. For...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
2
by: byrocat | last post by:
I'm chasing after a documetn that was available on one of the Microsoft websites that was titled somethign like "MS SQL Server Best Practices" and detailed a nyumber of best practices about...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
3
by: Todd | last post by:
Hello, I'm looking for a book with in-depth coverage of developing server controls, particularly custom controls. Ideally, the book would have a good amount of how-to's and best practices, but...
4
by: Josh Harris | last post by:
Here is my question: It is common to have many pieces of business logic encapsulated within asp.net user controls. This can be found in high visibility projects such as the iBuySpy portal from...
1
by: NathanV | last post by:
In traditional ASP I used to pretty much replicate what is now being done in ASP.NET 2.0 with the master pages. I would create a header include file that included everything up to the main content...
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
4
by: Ned Balzer | last post by:
Hi all, I am pretty new to asp.net; I've done lots of classic asp, but am just beginning to get my mind wrapped around .net. What I'd like to do is include some code that tests if a user is...
1
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: 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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...

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.