This is a migrated thread and some comments may be shown as answers.

[Solved] How do I call a modal message (displayed in view) from the controller?

0 Answers 19 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Cha Garcia
Top achievements
Rank 1
Cha Garcia asked on 11 May 2010, 05:03 PM
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);
     }

Tags
General Discussions
Asked by
Cha Garcia
Top achievements
Rank 1
Share this question
or