We help IT Professionals succeed at work.

Disable enter click  event On dynamically created textbox

Sudhanshum
Sudhanshum asked
on
Hi I am creating dynamic Textbox in one of application, Problem is that I want to disable enter click event on that textbox, so if I will do enter click then it will not do anything means no postback. Is it possible? Or Can I connect my particular textbox with one of button click event? There are 10  dynamic textbox and 10 dynamic buttons.

regards,
Sudhanshu
Comment
Watch Question

Senior Software Engineer
Top Expert 2009
Commented:
Se the AutoPostBack property to false.

if more help needed please provide sample code and generated html, to see whether you need to To block the enter key at javascript level