> Anyway, I still think it is a very messy style and is exactly
> what code behind was created for.
> The whole idea is to not have presentation code interspersed
> with programming logic.
> I used to be an ASP developer and it was not a good way of
> doing things.I cannot be convinced that inline script is a
> good thing. I know in some cases it is good for file
> location using ResolveUrl but in most it is a heinous
> practice and in my opinion a hack.
> Even with things like <%#
> ((Customer)Container.DataItem).CustomerName %> when used in a
> repeater control is bad because behind the scenes it uses reflection.
>
> It is much better to subscribe to the ItemDataBound event and
> do it in an actual code file.
I think you're closing your eyes for one type of evil to be able to say
another type of evil is bad.
The code in the itemdatabound event handlers is often crap as well,
with the findcontrol calls: that code is depending on
the exact layout of the HTML, making it strongly coupled with that HTML.
Furthermore, when you want to write HTML on your own, you know in your
special controls, you had all kinds of write routines
in the code which spit out strings with HTML tags... also not my way of doing
HTML.
In short: for code which has to be in teh code behind, you still can.
For code which has to be inside the HTML, also still
can.
I don't see the problem. ASP.NET isn't a struts framework, it's not
pure MVC.
FB
>
> Paul
>
>
>
>
> > Date: Tue, 18 Apr 2006 14:34:50 -0400> From: [EMAIL PROTECTED]>
> > Subject: Re: [ADVANCED-DOTNET] VS ASP.NET 2005> To:
> > [email protected]> > > No I don't mean
> debug it, I
> > mean that it will not do any type> > checking etc.> > If I have t
> he inline on an .aspx page> >> > <%= NoSuchMethod("Garbage")
> %>> >> > and I compile then the compiler will not throw an
> error.> > I rest my case, try it if you do not believe me.> >
> The compiler does check it. It's just that you're using the
> ASP.NET> co mpiler, which is invoked upon first access to the
> page.> > Now in ASP.NET 2.0 you can precompile your ASPX
> pages prior to deployment,> which sounds like what you're
> looking for.> > -Brock> http://staff.develop.com/ballen> >
> ============================= ======> This list is hosted by
> DevelopMentorR http://www.develop.com> > View archives and
> manage your subscription(s) at http://discuss.develop.com
> ===================================
> This list is hosted by DevelopMentorR http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
>
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com