Alert on successful validation
-
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.
-
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.
A button click with a server control can have two events, OnClientClick and OnClick. OnClientClick will call a javascript method, which needs to return true for OnClick to be called on the server. So, make your onClientClick show a message box and return true or false, based on what the user clicks.
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
-
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.
Hi Ramkithepower, Cud u please tell me where is the button located. with in the Datagrid or outside the datagrid on the form. Regards, _Anil
jhgdgf