473,785 Members | 2,220 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.ServerV ariables(PATH_I NFO) %> 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 1295
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.C ontrol.
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.s tate.ga.us> wrote in message
news:eC******** *****@TK2MSFTNG P09.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.ServerV ariables(PATH_I NFO) %> 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***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:eg******** ******@TK2MSFTN GP12.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.C ontrol. 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.s tate.ga.us> wrote in message
news:eC******** *****@TK2MSFTNG P09.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.ServerV ariables(PATH_I NFO) %> 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**********@g mail.com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.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**********@g mail.com> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.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***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:%2******** ********@TK2MSF TNGP10.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**********@g mail.com> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.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******** *****@TK2MSFTNG P15.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
1973
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 securing the server. Included in this was revoking public access to the system table objects. Can someone post the URL where I can pick this up, or drop me a note on contacting them for a copy of the document?
136
9458
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 code was littered with document.all and eval, for example, and I wanted to create a practical list of best practices that they could easily put to use. The above URL is version 1.0 (draft) that resulted. IMO, it is not a replacement for the FAQ,...
13
2284
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 = 2, Option4 = 3
1
1415
by: | last post by:
Hi can someone send or point me to Any nice Material on .NET Best Practices -regards
2
1830
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) Group relevant .aspx files into subfolders within your project etc.
4
1846
by: Luis Esteban Valencia | last post by:
Hello. Can somebody recomend me books of design patterns in c# and best practices too.
10
3484
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 somewhere that each folder under the "web site" is compiled in separate assembly. I however, did not find that the "web site" creation in vs.net 2005 created any AssemblyInfo.cs file.
0
1720
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 design of the database for a new project, but I am unsure as to the best practice when one wants to store data relating to combinations of arbitrary numbers of sets of data. For example, take the following two groups of sets, each containing...
10
3003
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? public class MyClass private _variableName as integer public property VariableName as integer
3
2246
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 Enterprise Libraries data layer (if possible) - Use of providers (if possible) - use of factories (if possible) - use of caching - Session management
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9489
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10162
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10100
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5396
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5528
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2893
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.