I am a little confused regarding ASP.NET MVC design patterns. I have a Masterpage, including a partial view that displays breadcrumbs:
<div id="header"> <strong class="logo"><a href="#">Home</a></strong> <% Html.RenderPartial("BreadCrumbs"); %>
The fact is that I want links on packs to work both in production and in my environment. So my partial view code looks something like this:
<p id="breadcrumbs"> You are here: <a href="http:// <% if (Request.Url.IsLoopback) Response.Write(String.Format("{0}/{1}", Request.Url.Host, Request.Url.Segments[1])); else Response.Write("http:
Does this violate the principle of maintaining the view "stupid"? This principle was part of my argument for extracting this from the master page. I seem to have moved the problem to a new look? Which alternative?
source share