function onKeyDown(e) {
if (e && e.keyCode == Sys.UI.Key.esc) {
// if the key pressed is the escape key, dismiss the dialog
$find('div1').hide();
}
}
i have the above script but not working
this is based on on ealier ppost
a control gets displayed on the grid header click which is in update panel
i need to hide or dispose the control on ESC keypress