Following codesnippet of asp:CompareValidator can be used to validate a textbox to allow Integer value only.
<asp:CompareValidator ID="com12" runat="Server" Text="Numeric only" ControlToValidate="txtAge" Operator="DataTypeCheck" Type="Integer" Display="Dynamic" />
Thanks