I do have a clientside onclick already. I have put this code in it...
if (window.event.keyCode == 13)
{
event.returnValue=false;
event.cancel = true;
}
But I think that needs to go in a body onclick eventhandler.
Right now the page will postback when the enter button is clicked while in any other input on the page.
Main Topics
Browse All Topics





by: jamesrhPosted on 2009-10-10 at 17:23:15ID: 25544401
Use a regular HTML button rather than an ASP.NET button. Or create a client-side onClick function that prevents submit.