Note that there are some explanatory texts on larger screens.

plurals
  1. PODoes anyone beside me just NOT get ASP.NET MVC?
    text
    copied!<p>I've been fiddling with ASP.NET MVC since the CTP, and I like a lot of things they did, but there are things I just don't get.</p> <p>For example, I downloaded beta1, and I'm putting together a little personal site/resume/blog with it. Here is a snippet from the ViewSinglePost view:</p> <pre><code> &lt;% // Display the "Next and Previous" links if (ViewData.Model.PreviousPost != null || ViewData.Model.NextPost != null) { %&gt; &lt;div&gt; &lt;% if (ViewData.Model.PreviousPost != null) { %&gt; &lt;span style="float: left;"&gt; &lt;% Response.Write(Html.ActionLink("&lt;&lt; " + ViewData.Model.PreviousPost.Subject, "view", new { id = ViewData.Model.PreviousPost.Id })); %&gt; &lt;/span&gt; &lt;% } if (ViewData.Model.NextPost != null) { %&gt; &lt;span style="float: right;"&gt; &lt;% Response.Write(Html.ActionLink(ViewData.Model.NextPost.Subject + " &gt;&gt;", "view", new { id = ViewData.Model.NextPost.Id })); %&gt; &lt;/span&gt; &lt;% } %&gt; &lt;div style="clear: both;" /&gt; &lt;/div&gt; &lt;% } %&gt; </code></pre> <p>Disgusting! <strong>(Also note that the HTML there is temporary placeholder HTML, I'll make an actual design once the functionality is working)</strong>.</p> <p>Am I doing something wrong? Because I spent many dark days in classic ASP, and this tag soup reminds me strongly of it.</p> <p>Everyone preaches how you can do cleaner HTML. Guess, what? 1% of all people look at the outputted HTML. To me, I don't care if Webforms messes up my indentation in the rendered HTML, as long as I have code that is easy to maintain...This is not!</p> <p>So, convert me, a die hard webforms guy, why I should give up my nicely formed ASPX pages for this?</p> <p><strong>Edit:</strong> Bolded the "temp Html/css" line so people would stfu about it.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload