Product Spotlight
<< Back to post

Clear Input Fields in an AjaxControlToolkit ModalPopup When Cancel is Clicked Demo

1. Click the button below. In the popup enter some text in the fields and then click cancel. Now click the button again and notice that the fields still contain what you entered.
2. Enter some text in the box below then click the button. In the popup enter some text in the fields and click cancel. Notice how the text in the box is cleared. Now click the button again and notice that the fields that you entered text in are clear as well.
 
3. Enter some text in the box below and then click the button. In the popup enter some text in the fields and then click cancel. Notice how the text in the box remains. Now click the button again and notice that the fields that you entered text in are clear.
 
Demo Gallery