为什么在Asp.net MVC中的嵌套形式没有范围是什么? [英] Why do nested forms in Asp.net mvc not have scope?

查看:102
本文介绍了为什么在Asp.net MVC中的嵌套形式没有范围是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有了它内部的几种形式在asp.net mvc的形式。嵌套形式用ajax佣工,并阿贾克斯的形式。

I have form that has several forms inside of it in asp.net mvc. The nested forms are using ajax helpers and are ajax forms.

这总是嵌套的表格发布到原始形式的行动,而不是他们的行动。

The forms that are nested ALWAYS post to the original form's action, not their action.

为什么呢?为什么我不能有多种形式在一个页面上?

Why? Why can't I have multiple forms on one page?

推荐答案

可以让你在页面上喜欢为很多形式,但你不能嵌套的。

You can have as many forms you like on a page, but you can't nest them.

它无关,与ASP.NET MVC或者,它的HTML 格式标记不允许嵌套。如果您尝试拼图的形式,浏览器会忽略内在形式开始标记。

It has nothing to do with ASP.NET or MVC, it's the HTML form tag that doesn't allow nesting. If you try to nest forms, the browser will ignore the inner form start tag.

这篇关于为什么在Asp.net MVC中的嵌套形式没有范围是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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