validate login page password only be numeric and liginid only contain alphanumeric not spacail char

Posted by Bhuwan87rawat under ASP.NET on 8/25/2012 | Points: 10 | Views : 789 | Status : [Member] | Replies : 1
hello sir
in my application i want to
validate login page password only be numeric and liginid only contain alphanumeric not spacail character



regard
Bhuwan




Responses

Posted by: Ranjeet_8 on: 8/25/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
U can use Ajax Filter TextBox Control.
For Numeric

<ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server"
TargetControlID="TextBox1"
FilterType="Numbers" />

For Alpha Numeric

<ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server"
TargetControlID="TextBox2"
FilterType="LowercaseLetters,UppercaseLetters,Numbers" />



Bhuwan87rawat, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response