Hi,

This is my dynamic created textbox
Code:
Dim Txtdynamic As TextBox = New TextBox
Txtdynamic.ID = "id1"
c_placeholder.Controls.Add(Txtdynamic) '
used in
Code:
<asp:PlaceHolder runat="server" ID="c_placeholder"></asp:PlaceHolder>
My question is how do I restrict this text box to take only numbers.

I got some hint like
Code:
<asp:TextBox ID="TextBox1" runat="server" onkeypress="return increment(event)" ></asp:TextBox>
but problem is onkeypress event not supported in ASP.Net (in my little knowledge) and I dont use <asp:TextBox> control

Thanks in Advance