0
我是.net Core
中的新成員。我在土耳其人的Partial View
上遇到問題。.NET核心部分視圖土耳其文字符錯誤
我有一個CssController
,它有Tipografi.cshtml
,Button.cshtml
等
還有就是我的代碼和圖片:
@{
if (ViewContext.ActionDescriptor.DisplayName.ToString().IndexOf("Css") != -1)
{
<div class="col-md-3 text-center" style="background-color:lavender;">
<div class="panel-heading" align="left"><h3>İç Menü</h3></div>
<div class="list-group">
<a class="list-group-item @((ViewContext.ActionDescriptor.DisplayName.ToString().IndexOf("Tipografi") != -1) ? "active" : "")" asp-controller="Css" asp-action="Tipografi">Tipografi</a>
<a class="list-group-item @((ViewContext.ActionDescriptor.DisplayName.ToString().IndexOf("Tablolar") != -1) ? "active" : "")" asp-controller="Css" asp-action="Tablolar">Tablolar</a>
<a class="list-group-item @((ViewContext.ActionDescriptor.DisplayName.ToString().IndexOf("Code") != -1) ? "active" : "")" asp-controller="Css" asp-action="Code">Code</a>
<a class="list-group-item @((ViewContext.ActionDescriptor.DisplayName.ToString().IndexOf("Form") != -1) ? "active" : "")" asp-controller="Css" asp-action="Form">Form</a>
<a class="list-group-item @((ViewContext.ActionDescriptor.DisplayName.ToString().IndexOf("Button") != -1) ? "active" : "")" asp-controller="Css" asp-action="Button">Button</a>
<a class="list-group-item @((ViewContext.ActionDescriptor.DisplayName.ToString().IndexOf("Image") != -1) ? "active" : "")" asp-controller="Css" asp-action="Image">Image</a>
<a class="list-group-item @((ViewContext.ActionDescriptor.DisplayName.ToString().IndexOf("Yardimcilar") != -1) ? "active" : "")" asp-controller="Css" asp-action="Yardimcilar">Yardımcılar</a>
</div><p>üğçöıİ</p>
</div>
}
else
{
<div class="col-md-3 text-center" style="background-color:lavender;">
<div class="panel-heading" align="left"><h3>Hizmetler</h3></div>
<div class="list-group">
There is a list
</div>
</div>
}
}
它的工作,但人物的樣子This。
還有就是我的佈局代碼:
<body>
@Html.Partial("MasterPage//Header.cshtml")
<div class="row">
<div class="col-md-3" style="background-color:lavender;margin-bottom:30px;">
@Html.Partial("MasterPage//Duyurular.cshtml")
@Html.Partial("MasterPage//Etkinlikler.cshtml")
</div>
<div class="col-md-6" style="background-color:lavenderblush;padding-bottom:20px;padding-top:20px;">
@RenderBody()
</div>
@Html.Partial("MasterPage//Hizmetler")
</div>
@Html.Partial("MasterPage//Footer.cshtml")
There is some scripst and others...
@RenderSection("scripts", required: false)