BeginFormSitefinity form disappears after submitting

隐身守侯 提交于 2019-12-02 03:18:47

if you are using Hybrid MVC (that is the webforms version of MVC widgets) then i believe there is no way to avoid this.

Previous to v8.1 the javascript you posted above was different, and would modify the actual form tag of the webforms page to post to your custom action...

now it appears they submit to a FORM tag built on the fly for MVC widgets...

One thing I've noticed they still have is the id of the FORM tag hard-coded to be "aspnetForm", so if your Master Page doesn't use that explicit, specific ID then that might be a probably cause...

if you set a breakpoint in the action to which your form posts, do you get a hit?

pryabov

Our team also had the same issue. Was created support ticket to Telerik. And there is an answer:

Essentially, this is expected behavior when using the BeginFormSitefinity. The reasons this happens is because in ASP.NET web forms only one form with runat="sever" is allowed on a page. This is why the BeginFormSitefinity renders as a div by default and a form is dynamically created and submitted when the submit button is clicked. In order to overcome this behavior you will need to create a custom helper and HybridForm. You can take a look at the following StackOverflow answer for more information on how to create a custom HybridForm.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!