This question is locked. New answers and comments are not allowed.
I am using MVC 2.0 and developing with VS 2008. I saw an example here:
http://blog.stevehorn.cc/2009/06/rendering-modal-dialog-with-aspnet-mvc.html
(Written in mvc 1.0, can't get it to work)
In my controller:
==============
public ActionResult Edit(Contact contact)
{
... code etc. ...
bool success = theClient.UpdateContact(fault, contact)
if (success)
{
return RedirectToAction("Index");
}
else
{
// Call MessageBox("There was an error:" + fault.Details);
return View(contact);
}
}
http://blog.stevehorn.cc/2009/06/rendering-modal-dialog-with-aspnet-mvc.html
(Written in mvc 1.0, can't get it to work)
In my controller:
==============
public ActionResult Edit(Contact contact)
{
... code etc. ...
bool success = theClient.UpdateContact(fault, contact)
if (success)
{
return RedirectToAction("Index");
}
else
{
// Call MessageBox("There was an error:" + fault.Details);
return View(contact);
}
}