
نوشته اصلی توسط
data20
فایل معنی نداره
view یا کنترلر ؟ General.cs یا General.cshtml ؟
اگر شما دست رسی به سورس نداشته باشید پس فقط دارید view میسازید که بدون کنترلر
پس عملا در حالت عادی نمی تونید صفجه جدیدی ایجاد کنید فقط iframe میتونید توی صفحات موجود بالا بیارید
دسترسی دارم و general یک فایل ساختم به نام
testir.cshtml
و فایل زیر در نوشتم
کد PHP:
@{
ViewBag.Title = "تست";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<iframe rel="nofollow"
src="http://x.com/"
width="100%"
height="800px"
marginheight="5"
marginwidth="5"
frameborder="0">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>
بعدش رفتم در فایل Shared در بخش header.cshtml
کد PHP:
<li><a href="@Url.Action("Testir","General")"><i class="glyphicon glyphicon-send"></i>پنل 999</a></li>