Web Forms :: How To Make TextBox Accept Only Persian (Farsi) Characters
Dec 1, 2013
I am developing a Farsi language project, the webform have Textboxes to be filled withÂ
Farsi language input and some with English input.
I need the farsi language textbox to accept only Farsi alphabet and change it's language to Farsi automatically.
View 1 Replies
Similar Messages:
Sep 16, 2010
I need to construct a regular expression for the password textbox which shouldn't accept special characters($,@,!,etc).Even whitespaces,tabs. I tried the below this accepts special characters.
<asp:RegularExpressionValidator ID="RegEx" runat="server" ControlToValidate="Password"
ErrorMessage="Password must be atleast 8 characters and include a number,alphabets upper case and lower case.
"ToolTip="Password format is not correct"
ValidationExpression="^(?=.{8})(?=.*d)(?=.*[a-z])(?=.*[A-Z]).*$">
</asp:RegularExpressionValidator>
View 3 Replies
May 9, 2013
" Textbox" should accept only alphanumeric values..............
View 1 Replies
May 22, 2010
I am working on a website. I am using C# 2008. I want to make a text box that accept only numbers & comma(,). for example-919981424199,78848817711,47171111747 or there may be a single number like 919981424199.
I was able to do one thing My text box only containing number by using this Regular Expression validation.in its property->Validation Expression i wrote "[0-9]+". This is working but now my requirement is to send bulk SMS & each number is separated by (,).
View 2 Replies
Mar 5, 2014
I used below code for insert limit character in textbox
<asp:FilteredTextBoxExtender ID="FTBE1" TargetControlID="txtadd" runat="server" FilterType="LowercaseLetters,UppercaseLetters,Numbers,Custom" ValidChars=" ">
</asp:FilteredTextBoxExtender>
Now problem is that when I want insert text in persian language it didn't insert I can just enter text in English language...
View 1 Replies
May 26, 2013
I have 2 table in database 1-State 2-City and bind DropDownList 1-ddlstate  2-ddlCity from these table and when I select item from ddlsate , according to my selected item from ddlState , ddlcity's Item change I used OnSelectedIndexChanged for ddlstate
problem is: I enter some data in tables with persian Alphabet now when I select some Item from ddlstate that contain these alphabet in persian "ی ،پ،... " it didn't show any Item in ddlcity but when I select item that didn't contain above alphabet it show item in ddlcity correctly why this happen?
View 1 Replies
Jun 1, 2012
there is a text box in my form to input name.. I apply regular expression to accept only characters ... but it is not accepting space.
i apply this regular expression
 <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server"
ControlToValidate="txtName" ErrorMessage="Only alphabets are allowed"
ForeColor="Red" ValidationExpression="[a-zA-Z]+" > </asp:RegularExpressionValidator>
View 1 Replies
Aug 11, 2010
We're currently using FTEs to filter input on our registration. New business model wants to explore foreign markets, and I have not been able to figure out how to get the FTEs to accept foreign language characters.
View 2 Replies
Aug 23, 2010
I have a string with 100 characters and it is for me too long in one line. I want to make NewLine after each 25 characters. For example:
Instead: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua."
View 2 Replies
Dec 13, 2010
How to count no. of characters entered in multiline textbox, i wanna enter maximum 140 characters in my multiline textbox using vb.net ...
In short i want textbox to enter limit is only 140 characters ....
i have te following code to do that .... but i wanna implement 140 characters limit in multiline textbox :
<script type="text/javascript">
function Count(x) {
document.getElementById("Label1").innerHTML = document.getElementById("TextBox2").value.length;
}
</script>
<asp:TextBox ID="TextBox2" runat="server" Height="78px"
TextMode="MultiLine" Width="224px" onkeyup="Count(this.id)"
MaxLength="140"></asp:TextBox>
View 3 Replies
Jun 14, 2010
I have a javascript to validate and avoid null values for my form but there are some textboxes that I need to be 'optional'. I tried erasing the validation for province address and province contact in javascript to make it optional, but the problem is whenever I add the values in the database, an error message appears "Input string was not in a correct format". It's in C# This is my present code wherein the provincial address and provincial contact must only be optional:
protected void submitButton_Click(object sender, EventArgs e)
View 15 Replies
Nov 30, 2010
When I try to input < or > in a textbox control , I get a error, how can I do ?
View 6 Replies
Mar 26, 2016
I want to set my textbox textmode="time"
View 1 Replies
Nov 8, 2010
how non English language input works with asp.net textboxes.
1. Can a regular asp.net textarea or a textbox accept text from languages other than English?
2. If yes, then how does the user enter non English language text
3. Is there a way to detect what language the user has entered text and make UI changes accordingly. (Ex: Make a button visible if non English text is entered)
4. Can non English text be stored in a varchar column in a SQL Server database? If not, how do I store this text?
View 3 Replies
Mar 25, 2011
I´m creating a user page to enable editing their profiles. When hitting the "update" button, it turns out that the field still contains the old value, although you´re looking at the new one, ie the text property of the textbox isn´t the value of the parameter which in fact gets its value from the text property.As far as I know I haven´t done anything I haven´t done before, both in apps and website?
Fuga.
Code:
Update Persons set [First Name] = @First
Code:
.Parameters.AddWithValue("@First", Microsoft.VisualBasic.Trim(Me.TextBox1.Text))
View 5 Replies
Jun 21, 2010
I have a TextBox & I want to accept just numbers in this TextBox when typing?
View 3 Replies
May 9, 2013
What should be the validation expression to allow only characters in textbox and not numbers.
View 1 Replies
Jul 20, 2010
need to count the this chareter in textbox "," and display that as string
View 6 Replies
Sep 18, 2010
On my current form I have it validating a Canadian Postal Address (xxx xxx). The space is optional but if the user does not use a space, then once the validation passes it will insert one. How can I count the first 3 characters of the textbox, insert a space, then add the rest of the characters?
View 3 Replies
Jul 22, 2010
I have few Text Box controls on my webform on which I would like to do some validation. Validation: Controls should not be allowed to accept All special characters EXCEPT ALLOW letters (incl all foreign language characters), numbers, period, comma, question mark, apostrophe, ampersand, soft parentheses & hyphen. Whats the best way to implement this & how?
View 3 Replies
Feb 24, 2011
i wanna make text box that contain phone number and i wanna tell the client to fill that field in digits.
View 8 Replies
Dec 19, 2012
I want to restrict special chars `!`~@#$%^&*()_+|-={]}[;:,.?/ without any alphabat in asp.net textbox.
View 1 Replies
Jul 29, 2010
how can I allow only alpha characters into a dynamically created textbox? I don't think I can use a regular expression validator for this issue. Unfortunately, I cannot use Ajax for this issue either.
View 8 Replies
Jul 1, 2012
I have text box in my page that users can enter Characters...
I want if user inter more than 100Â Characters it show error that they can't enter more than 100Â Characters...
View 1 Replies
May 7, 2015
There is a Textbox in which only 50 charactes are allowed to enter "excluding spaces between the characters"How to validate it as per requirement.
View 1 Replies