English 中文(简体)
MVC 3 - Can t resolution sign GetUserErrorMessageOrfault
原标题:MVC 3 - Can t resolve symbol GetUserErrorMessageOrDefault

I m 试图为MVC3建立超文本助手。 我发现一些行文法完全是我所需要的,但是由于这一条线,它赢得了汇编。

string messageText = GetUserErrorMessageOrDefault(htmlHelper.ViewContext.HttpContext, modelError, modelState));     

“GetUserErrorMessageOrDefault”的方法界定了。 这在MVC2中是无法再得到的吗? 是否有同样的MVC3方法?

问题回答




相关问题
Using jquery to get a partial view and updating the UI

I need to render a partial view (returned from the controller) to show some customer summary details. This will need to happen when the user clicks on a button. In the the mean time the user can ...

MVC 2 / MVC 3 / MVC 4

MVC 2 我们可以轻松地创造领域。 现在,我的问题涉及nes地区(地区内)。

Asp.Net MVC 2 - Changing the PropertyValueRequired string

Using a resx file in the App_GlobalResources directory, I ve been able to change the default message for the PropertyValueInvalid string of the model validators. But it doesn t work to translate the ...

ASP.NET MVC 3 - What features do you want to see? [closed]

I know a bunch of people that are really enjoying the improvements that ASP.NET MVC 2 made over the first release. I have just started to migrate our MVC 1 project over and so far areas has totally ...

热门标签