allow '/' character in textbox

Posted by Softnetalake under C# on 1/3/2012 | Points: 10 | Views : 1120 | Status : [Member] | Replies : 3
how to allow '/' character in textbox as i have blocked other characters to enter in textbox.i need '/' to enter for door number.plz rply




Responses

Posted by: Amritha444 on: 1/3/2012 [Member] Starter | Points: 25

Up
0
Down
Hi

You didnt mentioned which validation method using
If ajax use this
<asp:TextBox ID="txt_Job_Tittle" runat="server" CssClass="TextBox_Normal"
MaxLength="50" ReadOnly="True" Width="198px"></asp:TextBox>
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender33" runat="server"
FilterType="UppercaseLetters,LowercaseLetters,Numbers,Custom"
TargetControlID="txt_Job_Tittle" ValidChars="/ ">
</cc1:FilteredTextBoxExtender>

Regards
Amrutha


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

Posted by: Softnetalake on: 1/3/2012 [Member] Starter | Points: 25

Up
0
Down
i wrote the coding using c# in windows application.please help me.

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

Posted by: Blessyjees on: 1/3/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi,

you can use regular expression to validate the text box.
Try this reg expression ^\s*[a-zA-Z0-9/\s]+\s*$

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

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

Login to post response