jquery - ASP.NET MVC Postback on Modal Dialog/ Popup -


I have a link on an asp.net mvc view that opens a modal popup in which another MVC view is provided . / P>

The view in the modal popup displays many features that trigger a postback. Postbacks ignite the right control methods but when I return the updated view, it shows the renderer itself, as shown in the modal popup.

This popup is closed, I am no longer on the "original page" but loaded instead of a standalone url to look in the modal popup.

What would I want to achieve is that in a modal popup, a postback in the scene loads the updated view back into the modal window?

Can anyone help?

I have seen reference to partial ideas and AJAX calls but are not sure how they are best fit?

Thanks, Griff

First of all, MVC does not postback, it's just regular Appearance can look like cement, but there is a basic difference.

To answer your question, if you want to update the modal window, then you have to go Ajax route. What you want to do is send a request through AJAX and receive feedback, then update some of the devices inside the modal window.

You can also hack by referring to some property of that model which you are seeing so that you can present the right partial view by model and then trigger the dynamic window trigger dynamically. End of View


Comments

Popular posts from this blog

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

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -