Crazy talk: Inline scripting and code-behind (blog.wekeroad.com)

published 2 years, 3 months ago, submitted by jongallowayjongalloway(4175) 2 years, 3 months ago

Rob Conery says it's time to reconsider inline script in ASP.NET.

2 comments | category: | Views: 9

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:

posted by gavinjoycegavinjoyce(25.7k) 2 years, 3 months ago

Great post.

I was one of the many caught in the server control/viewstate headlights when asp.net first arrived. I always kept business logic out of the UI but the control/page events and databinding usually led to a mass of code split between the aspx page and code behind.

Working with Rails for over a year has changed my opinion on inline scripting in the UI. Simple views are simply better. Roll on the ASP.NET MVC.

posted by simonebsimoneb(5440) 2 years, 3 months ago

Hmm, don't want to sound rude, but let's try not to be silly, there's not much to be proud of in discovering that code inlining at times is much better than the control model. It just stays to mean that we didn't do any progress at all compared to jsp and php with respect to presentation logic. Or worse, we thought we did and we're just realizing that it was not true.

information Login or create an account to comment on this story