This is my dynamic created textbox
Dim Txtdynamic As TextBox = New TextBox
Txtdynamic.ID = "id1"
My question is how do I restrict this text box to take only numbers.
<asp:PlaceHolder runat="server" ID="c_placeholder"></asp:PlaceHolder>
I got some hint like
but problem is onkeypress event not supported in ASP.Net (in my little knowledge) and I dont use <asp:TextBox> control
<asp:TextBox ID="TextBox1" runat="server" onkeypress="return increment(event)" ></asp:TextBox>
Thanks in Advance