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:
protected void saveEmployeeRecord_click() { try { objEmp.Emp_ID = this.txtEmployee.Text; //other statements for assigning to object //show the popup dialog here //if you click ok in the popup //call the save method to the database //if you click cancel, do not save the record } catch(Exception ex) { //do error handling here } }
or what are some other means to do this?
Greg





Reply With Quote