Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

How to update parent page after AJAX Model Popup Extender closes without postback?

$
0
0

Hi guys .. Before I describe my problem, please note that I'm using MVC and not Web forms. Meaning the solution needs to work within MVC.

I have a button on an ASP.NET page (let's call it Parent Page), which when I press, opens a modal popup which has a form in it which the user fills in. When the form is submitted, I'd like to display the data the user entered in the modal popup on the Parent Page, without doing a postback. How can this be achieved while using MVC ?

The Models I'm using are given below. The Parent Page is for creating aTeam, and the modal popup with take details of a Player. The details are then to be shown on theParent Page in a grid-like view.

public class Team
{
public int ID {get; set;}
public string name {get; set;}
public string slogan {get; set;}
public string homeCity {get; set;}
public List<Player> players {get; set;}
}

public class Player
{
public int ID {get; set;}
public string fullName {get; set;}
public int age {get; set;}
public string height {get; set;}
}




Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>