Click here to Skip to main content
15,908,013 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everybody,

My issue is related in how to show a modal window from some controller in asp.net mvc application, but I dont want to lose the context because I try to validate a CRUD operation:

This method try to render a modal window (Yes/No), but when I show it the gridview related with some entity is deleted

[AcceptVerbs(HttpVerbs.Post)]
public PartialViewResult ExecuteCrudAction(int pOperationType, object pModel, int pActionStep)
{
return this.ShowUserInteraction(vResult.UserInteractionView, pModel);
}

Any ideas?
Posted
Updated 12-May-15 13:19pm
v2
Comments
Sergey Alexandrovich Kryukov 12-May-15 20:29pm    
Really a modal window or a "modal popup" (in a Web page)? Why?
—SA

1 solution

You should use jQuery UI dialog together with AJAX call.

A simple example that you can using as starting point is the next one: http://ricardocovo.com/2010/09/02/asp-mvc-delete-confirmation-with-ajax-jquery-ui-dialog/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900