MVC - Ajax.BeginForm gives htmlfile: Unknown runtime error

I am trying to implement Ajax.Beginform on my page, but when I try to run the code, when posting back I get the following warning

htmlfile: Unknown runtime error

I tried trawling a solution on the Internet, but so far there has been no joy. It seems that the problem is often caused by uite, as there are several forms on the page, but the Ajax form is the only one I have. My code is below

    <%  Using Ajax.BeginForm("About", New AjaxOptions With {.UpdateTargetId = "divChart"})%>

        <input type="submit" value="ChangeChart" />
        <div id="divChart">
            --Contains html
        </div>
        <%
        End Using%>

Any ideas what could be causing this? Greetings

+3
source share
3 answers

for everyone who is interested, I don't know / don't understand the solution, but found that seems to work for my implementation.

div (, ) ajaxform, , . , :

<div id="divChart">
<%  Using Ajax.BeginForm("About", New AjaxOptions With {.UpdateTargetId = "divChart"})%>

        <input type="submit" value="ChangeChart" />

            <!--Contains html -->

        <%
        End Using%>
</div> 

. , , , ...

, , .

,

+2

, . , , ajax.

:

ajax "" , "" , .

.

0

, ajax.beginform , , .

-1
source

Source: https://habr.com/ru/post/1722121/


All Articles