Click here to Skip to main content
15,746,813 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Iam trying to use foundation reveal modal to update a partial view.
Cant get that to work. returning to /Billing/Test/Add with Testinggggg as text.
Also how to use session variable?

testcontroller add (action)
public ActionResult Add( FormCollection collection)

Session["abc"] = "Modal popup";
return PartialView("_testpartial");

return View();

_testpartial -partial view


testcontroller- Create (view)

ViewBag.Title = "Create";
Layout = "~/Views/Shared/_Layout.cshtml";
Add lineitem

@* @{Html.RenderPartial("Create", "Customer");}*@




public ActionResult Create()
Session["abc"] = "Initial";
return View();

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