How to show the message box after save method at controller side
  • hi genius I have to know how to write the code to show the message box at the save time in Controller side 
    Plz help me
  • 1 Comment sorted by
  • Vote Up0Vote Down atirnaveedatirnaveed
    17.50 Karma Accepted Answer
    public string SaveMail(int Id)
    {
    var recipientOrchestrator = new RecipientsOrchestrator();

    // Returns string "Electronic" or "Mail"
    return Json(
    recipientOrchestrator.SaveDeliveryTypeById(Id),
    JsonRequestBehavior.AllowGet
    );
    }

    $.ajax({
    type: 'GET',
    url: '/Recipients/SaveMail',
    data: { id: mlaId },
    cache: false,
    success: function(result) {

    }
    });



    success: function(result) {
    // TODO: use the result here to do whatever you need to do
    }

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week

Optimum Creative