Hi bhvch,
I would rather use javascript or jQuery for clearing the textboxes instead of doing a server call with the Cancel button.
Remove the OnClick event and add OnClientClick event as following:
OnClientClick="return ClearAll"
and add the below code in you web page inside script tags. I hope you know how to use the javascript.
function ClearAll() {
var objInput = document.getElementsByTagName("INPUT");
for (var iCount = 0; iCount < objInput.length; i++) {
if (objInput[iCount].type == "text")
objInput[iCount].value = "";
}
return false;
}
This is a more efficient way of handling this scenario.
jQuery is even better but you need to add jQuery file references to your page.
Thanks,
RelicV