Hi,

In javascript there is an alert message box...What i want to do is include a javascript popup/ for confirmation of whether the user will save the record or not..

Since asp.net has no message box for web, i was thinking of using javascript..


heres the scenario:

asp.net 2.0 code Code:
  1. protected void saveEmployeeRecord_click()
  2.   {
  3.  
  4.          try
  5.          {
  6.          objEmp.Emp_ID = this.txtEmployee.Text;
  7.          //other statements for assigning to object
  8.  
  9.         //show the popup dialog here
  10.        //if you click ok in the popup
  11.        //call the save method to the database
  12.        //if you click cancel, do not save the record
  13.        
  14.          }
  15.          catch(Exception ex)
  16.          {
  17.               //do error handling here
  18.          }
  19. }

or what are some other means to do this?

Greg