Click here to Skip to main content
15,885,546 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)
--------------------------
[HttpPost]
public ActionResult Add( FormCollection collection)
{
try
{


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

}
catch
{
return View();
}
}
------------------------

_testpartial -partial view
---------------------------

-----------------------------



testcontroller- Create (view)


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

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




@{Html.RenderPartial("_testpartial");
}


Create




testcontroller:
-------------------------------

public ActionResult Create()
{
Session["abc"] = "Initial";
return View();
}
-------------------------------------
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