asp.net mvc - PartialView renders new page instead of in div -
I had this problem first and do not remember how to fix it or where I went about it for my life Gaya.
I'm returning a partial view from an action
back partial view ("comments list control", recipe comments); But this loads a new web page and why not in my div?
& lt; Table width = "100%" & gt; & Lt; TR & gt; & Lt; TD & gt; & Lt; Div id = "divComments" & gt; By using {%> <% (Ajax.BeginForm ("CreateComment", New AjaxOptions {UpdateTargetId = "divCommentsList", InsertionMode = InsertionMode.Replace}} "Rows =" 3 "cols =" 60 "> & gt; Table width =" 100% ">
& lt; Input type = "submit" value = "save comment" />
Then use CSS in your heart's content button style.
Comments
Post a Comment