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:

Web Forms :: Construct A Regular Expression For The Password Textbox Which Shouldn't Accept Special Characters

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

Web Forms :: How To Make Textbox Accept Only AlphaNumeric Values

May 9, 2013

" Textbox" should accept only alphanumeric values..............

View 1 Replies

C# - How To Make Validation For A Textbox That Accept Only Comma(,) & Digit

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

AJAX :: FilteredTextBoxExtender Not Working For Persian (Arabic) Language Characters

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

Data Controls :: Unable To Match Persian Characters From DropDownList In SQL Server Database

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

Web Forms :: Validation To Accept Only Alphabetic Characters

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

AJAX :: How To Get FilteredTextboxExtender To Accept Non English Characters

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

MVC String Formatting C# - By 100 Characters Make 4 Rows Each 25 Characters?

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

How To Count Of Characters Entered In Multiline Textbox Till 140 Characters

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

Web Forms :: Accept Textbox Value Even If It's Null?

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

Web Forms :: How To Accept Input In Textbox Control

Nov 30, 2010

When I try to input < or > in a textbox control , I get a error, how can I do ?

View 6 Replies

Web Forms :: Use MaskedEditExtender For Textbox To Accept Time?

Mar 26, 2016

I want to set my textbox textmode="time"

View 1 Replies

Localization :: Textbox Needs To Accept Text From Other Languages?

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

VS 2010 Textbox On Webform Doesn´t Accept Input?

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

Visual Studio -to Accept Just Numbers On A TextBox When Typing?

Jun 21, 2010

I have a TextBox & I want to accept just numbers in this TextBox when typing?

View 3 Replies

Web Forms :: How To Allow Only Characters In TextBox

May 9, 2013

What should be the validation expression to allow only characters in textbox and not numbers.

View 1 Replies

Web Forms :: Count Characters In Textbox?

Jul 20, 2010

need to count the this chareter in textbox "," and display that as string

View 6 Replies

Web Forms :: How To Count Number Of Characters In A Textbox

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

Web Forms :: Special Characters Validation On TextBox

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

Web Forms :: Setting Just Numbers In Textbox Without Any Other Characters?

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

Web Forms :: Restrict Special Characters In TextBox

Dec 19, 2012

I want to restrict special chars `!`~@#$%^&*()_+|-={]}[;:,.?/ without any alphabat in asp.net textbox.

View 1 Replies

Web Forms :: Allow Only Alpha Characters Into A Dynamically Created Textbox

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

Web Forms :: Limit Number Of Characters Using Validator In TextBox

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

Web Forms :: Validate TextBox Should Contain Only 50 Characters Excluding SPACE

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







Copyrights 2005-15 www.BigResource.com, All rights reserved