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

Best Practices Question #4

Hello:
I am deploying a new web site that will have over 100 pages.
In the ASP world, I would create templtes - include files, etc... to easily
"manage" the site.
In asp.net 2.0 I want to create a web control but apparently I have to
"create" a web site first.
Concern #1: is VS an appropriate interface to manage 100+ web pages site
conversely
Concern #2: when asp.net 3.0 comes there might be fundamental structural
issues the 3.0 does not like.
Question: should I "break-up" my site into smaller "web sites" ?
I have been a web developer for over 10 years with a lot of ASP experience
and I am encountering this new DOTNET paradigm with discomfort.
For example, I wanted to have a javascript enabled button that would let my
users rate the page they are on. in ASP I would have used <%=
Request.ServerVariables(PATH_INFO) %> as a parameter passed as a querystring
for the survey window... simple! and effective! Now I have to build a
control and have a placeholder, etc....

It's Monday !;-(
Thanks
T
Nov 28 '05 #1
8 1271
Hi T,
In the ASP world, I would create templtes - include files, etc... to
easily "manage" the site.
Okay, this is common, and a common mistake. Here's why:
I have been a web developer for over 10 years with a lot of ASP experience
and I am encountering this new DOTNET paradigm with discomfort.
ASP and ASP.Net have a number of things in common. They both operate in an
HTTP Request/Response environment. They both dynamically generate HTML, and
create HTML documents. They are both programming technologies, and they are
both ISAPIs on a web server. However, that is about where the similarity
ends.

Your discomfort is completely understandable, and again, quite common. It
comes from years of experience with ASP and procedural script-oriented web
application development, being challenged with a completely different
paradigm, that of object-oriented, strongly-structured ASP.Net. Migrating
from ASP to ASP.Net is like migrating from an automatic transmission to a
manual stick shift. Everything works differently. And it is discomforting at
first getting used to thinking differently.

The problem lies not only with the difference between procedural versus
object-oriented programming, but also with the structure of the ASP.Net
programming model. ASP has very little structure. That is, you are almost
completely in control of how your application responds to a Request, how it
maintains state, how client-side events are handled, etc. ASP.Net, on the
other hand, comes with a strongly-structured programming model, based upon
the concept of a Server Control, or more accurately, System.Web.UI.Control.
Everything in an ASP.Net web page, from the first <html> tag to the last, is
in fact, a Server Control of one sort or another. Everything outside of a
WebForm is generally a Literal Control (with a few exceptions), and
everything inside the Web Form is a Server Control of one sort or another.

The programming model of ASP.Net uses an elaborate system of server-side
object-oriented programming, mixed with client-side HTML, JavaScript and
(usually) CSS, to emulate a stateful environment where no state truly
exists, and to provide an event model which mimmicks the traditional event
model of a desktop application. As the environment is so different, so is
the mechanism for mimmicking the desktop environment. The programming model
is complex, and difficult to understand and/or master.

The good news is, once you get used to it, it works beautifully, and once
you learn enough about object-oriented programming and the ASP.Net
programming paradigm, it becomes so much easier to work with, and especially
to maintain, support, and extend than ASP. Be patient, and stick with it!

Now, as to your specific questions:
Concern #1: is VS an appropriate interface to manage 100+ web pages site
Yes. Absolutely.
Concern #2: when asp.net 3.0 comes there might be fundamental structural
issues the 3.0 does not like.
The 2.0 paradigm differs significantly from the 1.1 paradigm, but only at a
certain (high) level. Underneath it all, it works very much the same. It is
better to think of the 2.0 (and the 3.0 in the future) model as extending,
rather than replacing the 1.1 model. There is no overarching reason to make
the switch in any great hurry therefore.
Question: should I "break-up" my site into smaller "web sites" ?
Most probably not. Having more than one web application is problematic. If
you can say why you think you should, we can probably suggest alternatives.

Hang in there, bro! We do a bit of bleeding on the cutting edge, but what a
view!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

"Support" <Re****************@mail.oci.state.ga.us> wrote in message
news:eC*************@TK2MSFTNGP09.phx.gbl... Hello:
I am deploying a new web site that will have over 100 pages.
In the ASP world, I would create templtes - include files, etc... to
easily "manage" the site.
In asp.net 2.0 I want to create a web control but apparently I have to
"create" a web site first.
Concern #1: is VS an appropriate interface to manage 100+ web pages site
conversely
Concern #2: when asp.net 3.0 comes there might be fundamental structural
issues the 3.0 does not like.
Question: should I "break-up" my site into smaller "web sites" ?
I have been a web developer for over 10 years with a lot of ASP experience
and I am encountering this new DOTNET paradigm with discomfort.
For example, I wanted to have a javascript enabled button that would let
my users rate the page they are on. in ASP I would have used <%=
Request.ServerVariables(PATH_INFO) %> as a parameter passed as a
querystring for the survey window... simple! and effective! Now I have to
build a control and have a placeholder, etc....

It's Monday !;-(
Thanks
T

Nov 28 '05 #2
Thanks Spencer! Great positive answer.
Take care
T
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:eg**************@TK2MSFTNGP12.phx.gbl...
Hi T,
In the ASP world, I would create templtes - include files, etc... to
easily "manage" the site.


Okay, this is common, and a common mistake. Here's why:
I have been a web developer for over 10 years with a lot of ASP
experience and I am encountering this new DOTNET paradigm with
discomfort.


ASP and ASP.Net have a number of things in common. They both operate in an
HTTP Request/Response environment. They both dynamically generate HTML,
and create HTML documents. They are both programming technologies, and
they are both ISAPIs on a web server. However, that is about where the
similarity ends.

Your discomfort is completely understandable, and again, quite common. It
comes from years of experience with ASP and procedural script-oriented web
application development, being challenged with a completely different
paradigm, that of object-oriented, strongly-structured ASP.Net. Migrating
from ASP to ASP.Net is like migrating from an automatic transmission to a
manual stick shift. Everything works differently. And it is discomforting
at first getting used to thinking differently.

The problem lies not only with the difference between procedural versus
object-oriented programming, but also with the structure of the ASP.Net
programming model. ASP has very little structure. That is, you are almost
completely in control of how your application responds to a Request, how
it maintains state, how client-side events are handled, etc. ASP.Net, on
the other hand, comes with a strongly-structured programming model, based
upon the concept of a Server Control, or more accurately,
System.Web.UI.Control. Everything in an ASP.Net web page, from the first
<html> tag to the last, is in fact, a Server Control of one sort or
another. Everything outside of a WebForm is generally a Literal Control
(with a few exceptions), and everything inside the Web Form is a Server
Control of one sort or another.

The programming model of ASP.Net uses an elaborate system of server-side
object-oriented programming, mixed with client-side HTML, JavaScript and
(usually) CSS, to emulate a stateful environment where no state truly
exists, and to provide an event model which mimmicks the traditional event
model of a desktop application. As the environment is so different, so is
the mechanism for mimmicking the desktop environment. The programming
model is complex, and difficult to understand and/or master.

The good news is, once you get used to it, it works beautifully, and once
you learn enough about object-oriented programming and the ASP.Net
programming paradigm, it becomes so much easier to work with, and
especially to maintain, support, and extend than ASP. Be patient, and
stick with it!

Now, as to your specific questions:
Concern #1: is VS an appropriate interface to manage 100+ web pages site


Yes. Absolutely.
Concern #2: when asp.net 3.0 comes there might be fundamental structural
issues the 3.0 does not like.


The 2.0 paradigm differs significantly from the 1.1 paradigm, but only at
a certain (high) level. Underneath it all, it works very much the same. It
is better to think of the 2.0 (and the 3.0 in the future) model as
extending, rather than replacing the 1.1 model. There is no overarching
reason to make the switch in any great hurry therefore.
Question: should I "break-up" my site into smaller "web sites" ?


Most probably not. Having more than one web application is problematic. If
you can say why you think you should, we can probably suggest
alternatives.

Hang in there, bro! We do a bit of bleeding on the cutting edge, but what
a view!

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

"Support" <Re****************@mail.oci.state.ga.us> wrote in message
news:eC*************@TK2MSFTNGP09.phx.gbl...
Hello:
I am deploying a new web site that will have over 100 pages.
In the ASP world, I would create templtes - include files, etc... to
easily "manage" the site.
In asp.net 2.0 I want to create a web control but apparently I have to
"create" a web site first.
Concern #1: is VS an appropriate interface to manage 100+ web pages site
conversely
Concern #2: when asp.net 3.0 comes there might be fundamental structural
issues the 3.0 does not like.
Question: should I "break-up" my site into smaller "web sites" ?
I have been a web developer for over 10 years with a lot of ASP
experience and I am encountering this new DOTNET paradigm with
discomfort.
For example, I wanted to have a javascript enabled button that would let
my users rate the page they are on. in ASP I would have used <%=
Request.ServerVariables(PATH_INFO) %> as a parameter passed as a
querystring for the survey window... simple! and effective! Now I have to
build a control and have a placeholder, etc....

It's Monday !;-(
Thanks
T


Nov 28 '05 #3
Kevin, that was a fantastic answer, how much did Microsoft pay you :-)

Nov 29 '05 #4
> Kevin, that was a fantastic answer, how much did Microsoft pay you :-)

If I told you, I'd have to kill you.

--
;-),

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

<ga**********@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Kevin, that was a fantastic answer, how much did Microsoft pay you :-)

Nov 29 '05 #5
How long have you been an MVP by the way?

Nov 29 '05 #6
> How long have you been an MVP by the way?

Had to look it up. Since 1997. Almost nine years.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

<ga**********@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
How long have you been an MVP by the way?

Nov 29 '05 #7
October, 1997, IIRC.

You and I became MVPs at the same time.

Juan T. Llibre
ASP.NET.FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
How long have you been an MVP by the way?


Had to look it up. Since 1997. Almost nine years.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

<ga**********@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
How long have you been an MVP by the way?


Nov 29 '05 #8
> October, 1997, IIRC.

You and I became MVPs at the same time.
Wow. Well, just over 8 years, then! And what a coincidence, that we became
MVPs at the same time. I wonder if I ever met you at a summit?

--

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:eB*************@TK2MSFTNGP15.phx.gbl... October, 1997, IIRC.

You and I became MVPs at the same time.

Juan T. Llibre
ASP.NET.FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================

Nov 29 '05 #9

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

Similar topics

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...
13
by: john doe | last post by:
A quick question, about so-called 'best practices', I'm interested in which of A/B of the two examples people would choose, and why. public enum MyEnum { Option1 = 0, Option2 = 1, Option3 =...
1
by: | last post by:
Hi can someone send or point me to Any nice Material on .NET Best Practices -regards
2
by: Amelyan | last post by:
Could anyone recommend a book (or a web site) that defines best practices in ASP.NET application development? E.g. 1) Precede your control id's with type of control btnSubmit, txtName, etc. 2)...
4
by: Luis Esteban Valencia | last post by:
Hello. Can somebody recomend me books of design patterns in c# and best practices too.
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...
0
by: Louis Aslett | last post by:
I hope this is the correct newsgroup for this query (if not please give me a pointer to where is best): I understand the theory of normalisation etc and am trying to follow best practices in the...
10
by: Ren | last post by:
Hi All, I'm still rather new at vb.net and would like to know the proper way to access private varibables in a class. Do I access the variable directly or do I use the public property? ...
3
by: John Dalberg | last post by:
I am looking for an ASP.NET application on CodePlex which exemplifies best practices for the following: - Use of interfaces - Seperation of the UI, business and data tiers - Data Tier that uses...
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: 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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have 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
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
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...

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.