MVC3下HtmlHelper中哪个是BUTTON啊 如果你是从webform转过来的那么就是用普通的 <input type="submit" value="提交">就可以提交了如果不是~ 那么因为明白form表单提交的本质也不是问这样的问题了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 直接写<input type=button>或者<input type=submit> 我就想知道HtmlHelper里有没有BUTON啊 我看MSDN上没有BUTON 但lable text什么都有 就没有button 我就想知道HtmlHelper里怎么用button 其他有提供htmlhelper方法是因为方便,但button没有提供~是因为直接写更加方便如果你一定要搞个htmlhelper方法,可以自己用扩展方法扩展一个 我觉得htmlhelper是为了View准备的,如果有button,那 for 谁呢。 用<input type="submit" /> @model Account @using(Html.BeginForm()){ @Html.AntiForgeryToken() @Html.ValidationSummary(true) @Html.TextBoxFor(m => m.UserName) @Html.ValidationMessageFor(m => m.UserName) @Html.PasswordFor(m => m.Password) @Html.ValidationMessageFor(m => m.Password) <input type="submit" /> Socket 异步接收丢包问题(有代码) 如何判断一个字段中是否包含某一个字符串 winform数据导出excel怎么指定excel里的某一行的字体是加粗呀 高分跪求答案 文件流的问题 ftp怎么过SSL安全认证访问的 [求助]智能设备应用程序调用Web方法 跪救解决方法? 在VS2013下怎么给C#的程序换肤? 如何判断文件没有被其他进程访问? C#触发button后用提么人控制发送的时间 c# winfrom 如何在BindingSource_PositionChanged 事件中取消行的移动?
<input type=button>或者<input type=submit>
我看MSDN上没有BUTON 但lable text什么都有 就没有button 我就想知道HtmlHelper里怎么用button
其他有提供htmlhelper方法是因为方便,但button没有提供~是因为直接写更加方便
如果你一定要搞个htmlhelper方法,可以自己用扩展方法扩展一个
@model Account
@using(Html.BeginForm()){
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
@Html.TextBoxFor(m => m.UserName)
@Html.ValidationMessageFor(m => m.UserName)
@Html.PasswordFor(m => m.Password)
@Html.ValidationMessageFor(m => m.Password)
<input type="submit" />