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


Reply With Quote




Bookmarks