我在MVC3项目中使用多语言资源文件。如何在MVC3中使用剃须刀写入输入值
[Display(Name = "Search", ResourceType = typeof(LanguageResources.Lang))]
public string Search { get; set; }
我不能用剃刀写入输入值。
@Html.LabelFor(o => o.Search)
是在页面上工作,但我需要写入输入值。
<input class="searchInput" type="text" name="name" value='@Html.ValueFor(o => o.Search)' />
我试过这个,但在html页面源代码中是空的。
请elabroate **需要编写的输入值** – Satpal
没你看见我的答? –