Click here to Skip to main content
16,012,223 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a page for register customer wich contains several part .

for example TextBox for Customer Name and Button for Customer location Wich when user Click on button open Partial View Location (contain City ,address,zip code ,.....) wich open popup on page i want when in Partial View user click on button this data save and in page register customer use this data i use this code in partial view
[HttpPost  ]
public ActionResult Index(FormCollection model)
{
    LocationModel location = new LocationModel();
    location.Address = model["Address"];
    location .Email=model["Email"];
    location.Part = model["Part"];
    location.Unit = model["units"] + "-" + model["Cites"];

    ViewData["location"] = location;


    return RedirectToAction("Index", "Customer");
}

but again Refresh page i want without refresh main page when click on button in Partial View Location save Data and use it when i want register Customer in Main Page?
Posted

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