Is it considered bad practice if you use an <input> for a textbox compared to <asp:Textbox>?
<p>I have an ASP.NET page that contains a form and a button. In order to use the <code>OnKeyPress</code> and a javascript function (to stop the user from using the enter key and without adding a <code>FilteredTextBoxExtender</code>) attribute I had to change the <code>&lt;asp:Textbox&gt;</code> to an <code>&lt;input&gt;</code> with <code>type="text"</code>.</p>

<p>Is this considered bad practice? Or are there valid situtations where  should be used? </p>

<p>To ensure this question isn't subjective - are there any other ways to prevent the user using the enter key when typing in an ASP.NET textbox? (without putting code in the code behind)</p>
