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();
}
-------------------------------------