asp.net mvc - Dynamically Generated Ajax.BeginForm -


I have a problem with ASP.NET MVC Ajax forms. I generate many Ajax form in a table such as:

   & Lt; Input type = "submit" name = "activity" value = "add activity" / & gt; & Lt;%}% & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt;%}% & gt;  

So far so good. When I post one of those forms, it gives a partial view in a div, and in this new partial view a new Ajax Beginnform (which is not in Genesis form) This second Ajax Beginnorf is exactly like the ones I got on the table, but when I post it, I do not get the "Ajax Post", but a normal post that sends me to a new page, I do not know whether the two Ajax forms What is the reason for the difference between, why is it the "dynamically generated" Ajax form behaves like a normal HTML form?

By the way, I know that I can do it in different ways using javascript, but I would like to understand whether it can only be done using MVC helplars and Ajax libraries and if The answer is "yes", so I do wrong.

Thank you very much,

wasp

not me Know that this can be done with MS AJAX but I can tell you what is wrong once you update partially on the first ajax, this update partially allows Javascript to register AJAX for a new form Includes for. This Javascript is not executed No because there is nothing that is asking you to execute it. You will have to call the Javascript function registering AJAX for the second form on the success of the first ajax request callback.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

Debug on symbian -