Re: ASPX now with methods and classes
- From: "Damien" <Damien_The_Unbeliever@xxxxxxxxxxx>
- Date: 26 Aug 2005 05:42:26 -0700
John Rivers wrote:
[an article about allowing you to fully intermingle code and html in
ASP.NET]
Personally, I've learnt to stop worrying and love the Code-Behind
model. It's allowed me to do some things which are nigh-on impossible
with the old ASP style intermingled pages.
For instance, sometimes I have three completely differently laid out
pages, which all use the same code-behind page for all of the complex
code - they have the same controls but in completely different
locations. But all of the application logic only exists once. Your
alternatives with code-on-the-page are either:
1) A single monster page which has the control logic which determines
which controls are produced and when spread over the whole page, or,
2) Three independent pages which then always have to be maintained in
phase with each other when the application logic changes, or,
3) Three independent pages and a class which the pages call when they
need the application logic to run - but then, you're inventing
Code-behind.
And John, you've obviously never worked in a team where you have a
seperate web page designer - who is very good at producing pretty
webpages, but knows sod all about programming. The first time you
realised the problem with intermingling is after they do an edit of the
page, you get the latest version from source control and half of your
code has been vanished.
Damien
.
- Follow-Ups:
- Re: ASPX now with methods and classes
- From: John Rivers
- Re: ASPX now with methods and classes
- From: Milosz Skalecki
- Re: ASPX now with methods and classes
- References:
- ASPX now with methods and classes
- From: John Rivers
- ASPX now with methods and classes
- Prev by Date: Correct way to use Assembly.Load(byte())?
- Next by Date: How to avoid press button again
- Previous by thread: ASPX now with methods and classes
- Next by thread: Re: ASPX now with methods and classes
- Index(es):
Loading