示例#1
0
 public ActionResult BsDialog(string s)
 {
     if (Request.IsAjaxRequest())
     {
         return(MessageBox.BsDialog("A message from Server with Ajax request", type: DialogType.Danger));
     }
     else
     {
         MessageBox.BsDialog("A message from Server", type: DialogType.Success);
         return(View());
     }
 }