The first issue with the provided markup is that the DIV
element that you are including in the AJAX settings is not a server control and you should at least at runat="server"
or use Panel
The second issue is that you are setting the OnClientClick
event of the button for executing some custom validation, but please note that when you are setting "return validation();
" to the OnClientClick
event, the actual handler for the click event will be:
As you can notice, the _doPostBack
() will never occur, so you should use some other approach for your custom validation, so the _doPostBack
() function could be properly called.
Hope this helps.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.