title: How to create a pop-up message box to display error message in .net c# web-applications
body: <p>Does anyone know how can I create a pop-up message box in server side, so that it will display the error message in the pop-up message box when save process is failed?</p>
  
  <p>Example:</p>
  
  <pre><code>   protected void btnSave_Click(object sender, EventArgs e)
     {
         try
         {
             using (TransactionScope scope = new TransactionScope())
             {
                 //save process
  
                 scope.Complete();
                 Response.Redirect(url);
             }
         }
         catch (TransactionAbortedException ex)
         {
            //pop-up message box to show error message
         }
         catch (ApplicationException ex)
         {
            //pop-up message box to show error message
         }
     }
  </code></pre>
  
  <p>How can I able to create a pop-up message box within the catch to pop-up the error message box to the user when the save process is failed?</p>