المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Confirm message on successful validation



C# Programming
05-05-2009, 10:52 AM
Hi ,

I am developing an application with a datagrid using which user can update the data in the datagrid row. Its all in ASP.Net c#.

on click of a button i should do the following.
Check if user has modified atleast one row.
1. If the user has not modified even one row, then i should display a messsage stating user to action atleast one row.--- I have done this check and works good.
2. If the user has changed atleast one row then i should display a alert asking for confirmation if they would like to proceed. If the user selects 'No' i should stop the execution. if he clicks Yes the execution should proceed. -- I need help on this .. I am not able to trigger it becuase the button is already clicked.

Please help me sort the point 2.