| Not a rhetorical question: What's so wrong
with Web Forms? Postback? That's really part of HTTP.
What the browsers send back to the server is as specified
by HTTP, not Microsoft or Web Forms. Viewstate? Okay, it's a bit of a tricky thing, but
really can mostly ignore it. Else it provides a
somewhat useful service. Controls? Yes, for each HTML 'control', there is
an ASP.NET class so to send the HTML for the control
to the user, get an instance of the class corresponding
to the control, assign values to the properties, attach the instance to a big
tree that gets walked by the code in one of the ASP.NET 'events', maybe PAGE_PRERENDER, and move along. Why is this
so bad? Web Forms is my first and so far only
way I've written Web pages. Explain what
is wrong with Web Forms and what is much
better and why? |
ViewState was far better than other frameworks that shoved the client state into a server session object and broke the Back button. Plus the clients were saving state instead of wasting server memory. If it got too ugly, you didn't even have to use it, the http variables were still there.
Remember this was all designed back when Netscape 4 was a popular browser and any Javascript was considered exotic. Of course we have much better way to do things now, the WebForm approach broke down hard as soon as it encountered AJAX. But originally it was fine.