I'm having a bit of weirdness that I can't figure out.
I need one of you MVC gurus to shed some light on this before I pull all my hair out...
It was necessary for me to create a copy of the /Views/Shared/_ColumnsTwo.cshtml in order to use a particular plugin and achieve the layout we wanted without affecting other pages of our site. It is almost identical to the original and named "_ColumnsTwoArticles.cshtml"
Today, in my _ColumnsTwoArticles.cshtml I added the following code, which is working as I hoped..except for one thing... 2 inexplicable characters appear on my page, right where side-2 ends and center-2 begins...just above the breadcrumb.
<div class="side-2">
@if (IsSectionDefined("left"))
{
string theleftdiv="";
string currentpage=HttpContext.Current.Request.ServerVariables["PATH_INFO"];
if (currentpage == "/Articles/" | currentpage == "/articles/")
{
theleftdiv ="<div class=\"articles-home-left-column\">";
}
else
{
theleftdiv ="<div class=\"articles-list-left-column\">";
}
@Html.Raw(theleftdiv)
@RenderSection("left")
}
else
{
@Html.Widget("left_side_column_before")
@Html.Action("CategoryNavigation", "Catalog", new { currentCategoryId = currentCategoryId, currentProductId = currentProductId })
@Html.Widget("left_side_column_after_category_navigation")
@Html.Action("ManufacturerNavigation", "Catalog", new { currentManufacturerId = currentManufacturerId })
@Html.Action("VendorNavigation", "Catalog")
@Html.Action("NewsletterBox", "Newsletter")
@Html.Widget("left_side_column_after")
}
The image below shows the two characters..one looks like a "square", and the other is a right-brace.
I tried pasting the "square" character into Google and searching..Google thought it was a question mark (?)
Articles.cshtml and the page that references it, and I can't see any reason for it.
Can you guys see a reason for it?
Thanks!