So I totally buy into the basic tenents of ASP.NET, testability, SoC, HTML control…it’s awesome. However being new to it I have a huge hang up with the markup. I know it comes from my hatred of classic ASP, and I can’t help but feel like I’ve entered the twilight zone when I see this.
I don’t know what the alternative is (can I use server controls, databinding etc…?)
There are things you can do to help clean up the markup, but I agree it can get a bit tag-soupy.
ViewData.Model.myPropertyrather than(MyClasst)ViewData['foo'].myPropertyFor instance this is an extension I made to make an RSS-spitter-outer 🙂
So in my front end all I have is
<%=Html.RSSRepeater(mydata)%>which is much nicer.