0
내 응용 프로그램에서 새 컨트롤러 메서드로 리디렉션 할 때 해당 컨트롤러 메서드에 대한 뷰가로드를 중지하지 않는다는 것을 알았습니다.페이지로드가 중지되지 않음
일부 CSS는 렌더링을 완료하지 않으며 페이지가 응답하지 않습니다.
테스트로 나는로드가 가능한지보기 위해 가능한 한 간단하게보기로 결정했습니다. 놀랍게도 그렇지 않습니다. 아래 코드에서 문제가 무엇인지 알 수 있다면 놀랄 것입니다. 그러나 내 질문은 무엇이 잘못되었는지 어떻게 알 수 있습니까? ie9 및 VS 2012를 사용하고 ANTS에 액세스 할 권한이 없습니다.
[HttpPost]
public ActionResult FullSearch(BulkDeleteSearchViewModel bulkDeleteSearchViewModel)
{
SessionObjectsSCD.CompanyType =
CacheObjects.CompanyTypes.SingleOrDefault(x => x.TypeId == bulkDeleteSearchViewModel.TypeId);
var type = (CompanyTypeEnum)SessionObjectsSCD.CompanyType.TypeId;
var strategy = BulkDeleteSearchFactory.Get(type, bulkDeleteSearchViewModel);
var bulkDeleteSearchService = new BulkDeleteSearchService(strategy);
SessionObjectsSCD.SearchCompanies = bulkDeleteSearchService.SearchCompany();
return this.RedirectToAction(type == CompanyTypeEnum.Subcontractor ?
"FullListSubcontractor" : "FullList1");
}
[HttpGet]
[Authorize(Roles = "SCDTopLevelUser, SCDAdmin, SCDDeveloper")]
public ActionResult FullList1(int page = 1)
{
return this.View();
}
FullList1보기는 다음과 같습니다.
@{
ViewBag.Title = "FullList1";
}
<h2>FullList1</h2>
레이아웃보기는 다음과 같습니다.
<!DOCTYPE html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]> <html class="no-js" lang="en"> <!--<![endif]-->
<html lang="en">
<head>
<meta charset="utf-8" />
<title>SCD</title>
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<meta name="viewport" content="width=device-width" />
<link rel="SHORTCUT ICON" href="@Url.Content("~/favicon.ico")" />
@Styles.Render(Constants.BundleDataTablesCss)
@Styles.Render(Constants.BundleMenuCss)
@*@Styles.Render(Constants.BundleBaseCss)*@
@Styles.Render(Constants.BundleDemosCss)
@Styles.Render(Constants.BundleMobileCss)
@Styles.Render(Constants.BundlePagedListCss)
@Styles.Render(Constants.BundleBootstrapCss)
@Styles.Render(Constants.BundleSiteCss)
@Styles.Render(Constants.BundleSunnyThemeCss)
@Scripts.Render(Constants.BundleModernizr)
</head>
<body>
<div class="page">
<input type="hidden" id="Environment" value="@AppSettings.EnvironmentSetting.ToUpper()"/>
<header id="mainHeader">
<div id="title">
<div style="float:left;">@Content.Image("MulalleyLogoSmall.jpg", "float:left;padding:10px 10px 0 10px", Url)</div>
<div class="head" style="float:left;padding-top:15px;">SubContractor Database (SCD)</div>
</div>
<div id="logindisplay">
@Html.Partial("_LoginPartial")
</div>
<nav>
@Html.Partial("_MenuItems")
</nav>
</header>
<section class="main-content">
@RenderBody()
</section>
<footer>
<div class="content-wrapper">
<div class="float-left">
© @DateTime.Now.Year -Copyright Mulalley and Company Limited
</div>
<div class="float-right">
<ul id="social">
<li><a href="http://liveweb.sherrygreengrp.com/SHP/" ><b>SHP</b></a></li>
<li><a href="http://liveweb.sherrygreengrp.com/STAS/"><b>STAS</b></a></li>
</ul>
</div>
</div>
</footer>
</div>
@Scripts.Render(Constants.BundleScd)
@Scripts.Render(Constants.BundleDataTables)
@Scripts.Render(Constants.BundleSubcontractorDetail)
@RenderSection("scripts", required: false)
</body>
</html>
레이아웃을 표시 할 수 있습니까? 컨트롤러 동작에서 발생하는 모든 노이즈를 제거하면 어떻게됩니까? 보기를 간소화했기 때문에 재현 시나리오가 필요하지 않을 수도 있습니다. –
Fiddler에서이 메시지가 나타납니다. HTTP 오류 407 프록시 인증이 필요합니다. "이 서버는 에 요청한 문서 에 액세스 할 수있는 권한이 있는지 확인할 수 없습니다. 사용자가 자격 증명 (예 : 잘못된 암호)을 잘못 입력했거나 브라우저가 자격 증명을 제공하는 방법을 이해하지 못했습니다." – arame3333
메뉴에서 직접 뷰에 액세스하려고 시도했지만 정상적으로 렌더링되었습니다. 문제는 리디렉션과 관련이 있습니다. – arame3333