rmk108 0 Newbie Poster
function newCC()
{
var modalUrl;						
var vID;
modalUrl = 'ccNew.aspx';						
modalFeatures = 'dialogWidth:48; dialogHeight:29; status:0; help:0';
var vID = window.showModalDialog(modalUrl, 'UDI', modalFeatures);
if(vID != 'Close')
{
document.getElementById('txtGoID').value = vID;
document.getElementById('txtGoTgt').value = 'ccNew';
__doPostBack('lnkbtnGo','');
}	
}

hi,
In the above code i am usind " window.showModalDialog()" which will redirect me to the next page called ccNew.aspx. In the ccNew i have one text box and one button and tew radio buttons. I want the follwing to happen "If I enter text in the text box and Press Enter key then the button click event should fire"... but now if i press Enter nothing happens..
pls let me know how can i make the buttton click event fired if i press Enter key.

Thanks
Kiran