我收到错误:在以下路径中找不到布局页面"_Layout":"〜/ Views/Home/_Layout".
但是布局页面就在这条路上:"〜/ Views/Shared/_Layout"
它有什么问题?
我刚开始这个项目,它看起来像这样:
控制器:
namespace Testing.Controllers
{
public class HomeController : Controller
{
//
// GET: /Home/
public ActionResult Index()
{
return View();
}
}
}
Run Code Online (Sandbox Code Playgroud)
索引视图:
@model dynamic
@{
ViewBag.Title = "title";
Layout = "_Layout";
}
<h2>title</h2>
Run Code Online (Sandbox Code Playgroud)
_ViewStart.cshtml:
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
Run Code Online (Sandbox Code Playgroud)
Solution Explorer:

我想知道如何在Aptana Studio 3.0中找到在Aptana 2.x中有快捷键Ctrl + Shift + F的HTML代码格式?
我有这个功能:
function countLitreKgSums(cProductIds){
var cLitreKgSums = new Array();
var cWeek = 0;
for(i=0;i<cProductIds.length;i++){
var cLitreKgSum = 0;
$("#plan_table td[class='week']").each(function(){
cWeek = $(this).html();
var cLitreKgValue = $("input[name*='plan_table_week" + cWeek + "_prod" + cProductIds[i] + "_']").val();
if (cLitreKgValue == "") {
cLitreKgValue = 0;
}
cLitreKgValue = cLitreKgValue.replace(/,/g, '.').replace(/[^\d\.]/g, '').replace(/\s/g, '');
cLitreKgValue = parseFloat(cLitreKgValue);
cLitreKgSum += cLitreKgValue;
});
cLitreKgSum = Math.round(cLitreKgSum * 100) / 100;
cLitreKgSums[i] = cLitreKgSum;
}
return cLitreKgSums;
//console.log(cLitreKgSums);
}
Run Code Online (Sandbox Code Playgroud)
我收到错误信息,即.replace不是一个函数,但在其他函数中它可以正常工作.有什么不同?
我有一些有趣但令人讨厌的问题.不知怎的,我在VB 2010中切换了这种观点.试着在两个小时内找到解决方案,但徒劳无功.=(
我怎样才能恢复平常的样子?
现在它看起来像这个= S.

提前致谢.
aptana ×1
formatting ×1
function ×1
html ×1
javascript ×1
jquery ×1
options ×1
replace ×1
settings ×1