Hi ,
A per ur requirement , Use CustomValidator Control Validation
I am sending example , here i am only check length.....for numeric refer http://forums.asp.net/t/1211724.aspx
<form runat="server">
<asp:Label runat="server" Text="" id="lbmsg" associatedcontrolid="txtpancard"/>
<asp:TextBox id="txtpassword" runat="server" />
<asp:Button Text="Submit" runat="server"/>
<br />
<asp:CustomValidator
ControlToValidate="txtpancard"
OnServerValidate="password"
Text="Pancard must be atleast 10 characters!"
runat="server"/>
</form>
..........
<script runat="server">
Sub password(source As object,args As ServerValidateEventArgs)
if args.Value. > 10 then
args.IsValid=false
else
args.IsValid=true
end if
End Sub
</script>
Warm Regards
Ashish Tiwari
'Rome was not built in a day '