有没有人能够让IIS 6上的MVC迷你探测器工作?我在我的应用程序中设置了探查器,它在Visual Studio,IIS Express和IIS 7.5中运行良好,但是当我将完全相同的应用程序放到IIS 6上时它将无法工作.
问题似乎是加载/mini-profiler-includes.js,我只得到404响应.我检查了路由表,并且探查器已经注册了正确的路由,但除此之外,我不知道还有什么可以尝试.
我有一个带有两个文本框的表单.我想要的是当用户点击文本框时默认值消失.我正在使用剃须刀所以不确定如何添加我认为我需要的onfocus事件.
@using (Html.BeginForm("Index", "Home", FormMethod.Post, new { @class = "newsletterform" }))
{
@Html.TextBoxFor(m => m.Name, new { @Value = "Name"})
@Html.TextBoxFor(m => m.Email, new { @Value = "Email"})
<input type="submit" class="newsletterGo" value="Go" />
}
Run Code Online (Sandbox Code Playgroud)