In the click event(code behind) of an 'Add' button on a webform I call a function to add a particular node to an already loaded xml document -
The node relates to connection info. relevant to a server. So before the node is actually added to the xml doc. the server side code calls another function to test the connection with the info. from the different textboxes. In the test server connection routine if the connection suceeds then the control comes back to AddNode() and the info. is added to the xml doc. However if the test connection fails how do I use the confirm dialog to inform the user that the connection has failed and that if the user clicks the Ok button the server info. will be added to the doc, but if the user cliks 'Cancel' the server info will not be added ?
A code sample will be great. Please let me know if you need any clarification about the above
Thanks a lot.