MVC3 Html.BeginForm不渲染页面 [英] MVC3 Html.BeginForm not rendering for a page

查看:112
本文介绍了MVC3 Html.BeginForm不渲染页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网页(其中之一)。但是,这个特殊的网页上的以下不渲染。

I have a web page (one of many). But on this particular web page the following doesn't render.

@using (Html.BeginForm()) {
     <h1>bbbbbbbbbbbbbbbbbbbbbbbbbbbb</h1>
 }

这和其他网页之间的唯一区别是,我动态创建此链接到这个网页与jQuery,而不是硬编码在页面上的链接。当我检查的链接,它看起来是这样的:

The only difference between this and other web pages is that I have dynamically created this link to this page with jQuery rather than hardcoding the link on the page. When I check the link it looks like this:

<a href="/adminStats/Edit?PartitionKey=P22&amp;RowKey=01-01-0001">Edit</a>

有一些关于BeginForm不能看到该网页的地址,因此它不会创建表单链接?

Is there something about BeginForm that can't see the page address so it doesn't create the form link?

罗伯特

推荐答案

我有同样的问题。检查嵌套形式的标签。

I had the same problem. Check for nested form tags.

这篇关于MVC3 Html.BeginForm不渲染页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆