.net - How To Allow Only English Chars In Textbox
Mar 22, 2010I want to allow only English characters to be typed in my asp:TextBox (in asp:Login conttrol).How can I do that?
View 2 RepliesI want to allow only English characters to be typed in my asp:TextBox (in asp:Login conttrol).How can I do that?
View 2 RepliesWhat's the different between varchar and nvarchar to store Non-English chars? like À Õ Ù and so on.
View 4 RepliesI want to replace some chars like ş,ğ,ı,ç... to % and search with LIKE for easy search and data convenience.But if the string is ayşe and I search all the other things like aysel ay.........e comes in the resut set.Is there any way to change these characters with one char length % ???
View 1 RepliesI want to convert a string to a number.
But some strings have a normal char in it like:
543p
How can delete all chars, instead of all chars that are normal in a decimal ?
I want to create a Dictionary... where i can get Dictionary database or World lists (english to english , english to hindi)
View 1 RepliesI have a textbox to which i want to allow only digits and chars and restrict any special chars.
So if i use the following javascript it works fine:
[Code]....
But the above does not work. It allows special chars also.
i try to make register users page with username and password i want to makr the textbox for username accept only english and number and special carachter lik "_ - @ . " how can i do it
View 2 RepliesDo I need to use regex to ensure that the user has typed in English? All characters are valid except non English characters.
How do I validate this textbox?
In project need to convert txtEnglishName english text to txtHindiName
using google api or your recommended program or api on internet.
I want user to enter name in Arabic if the user enter in english it should give Message " Enter Message In Arabic " and same for English if user try to enter in arabic it should give a message "Enter Name in English" ...
View 1 RepliesI am having trouble with parsing a srtring, let me figure out :
This is my string (being gathered from DB) : students/notes/8293/location/michael.jpg
and i want to parse "michael.jpg" from this string to be able to process it.
I'm developing a web app in asp.net mvc using jquery, the language of application is pt-BR and some characteres are not displayed correctly, like accented charcacters and 'ç' char. Insted of this, a unknown char is displayed on browser.
Is there any way to set the location on jquery ? Or on the file .js, .aspx?
I am not doing an ajax call, I'm writing a text in elements of html like div, hyperlink, etc... something like this:
$("#myDiv").text("Água, Açúcar, e leite em pó");
But in my div is shown: "?gua, A??car, e leite em p?"
I've set my globalization in web.config to pt-br, my html tag and meta tags to pt-br:
<!DOCTYPE html>
<html lang="pt">
<head>
<title>...</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="content-language" content="pt-br">
I have a textbox1, want to set a minimum length of atleast 8 chars, how to do the min length validation.
View 7 RepliesI have a string and I want to know if it has unicode characters inside or not.(if its fully contains ASCII or not)How can I achieve that?
View 4 RepliesI have an asp.net page connected to a MySql DB.When I try to insert/update values from the webpage into the DB the chars are shown in the DB as question marks (I am using SP).If i will write a query directly in the DB, It will work and the chars will be displayed correctly.
The DB default charset is utf8, and the column collation is utf8_general_ci.
What is the regular expression for a RegularExpressionValidator so it fires if the string in the validated control contains a r is longer then 250 chars?
View 1 RepliesI'm looking to parse the cs(Referer) column in one of log files for the following data found intween the followingbolded URL parameters and was wondering what commands in a select statement would be the best way for doing this.[URL]Example - I would be able to parse the "2" found after "start=" and the data "castle%2bshore" inbetween "%3Fq%3D" and "%26"
View 1 RepliesI have problem like to count the repeated chars from a string using sql server.Also i have used functions in sql server thats working fine.But i want the solution using a sql query...
[i have a column like ID,name,Secure_name],here 1 ,'kamal','welcome'.so findout 'e' howmany times repeated in a column secure_name.....
I'm trying to complete a regular expression that will pull out matches based on their opening and closing characters, the closest I've gotten is
^([[)[a-zA-Z.-_]+(]])
Which will match a string such as "[[word1]]" and bring me back all the matches if there is more than one, The problem is I want it to pick up matchs where there may be a space in so for example "[[word1 word2]]", now this will work if I add a space into my pattern above however this pops up a problem that it will only get one match for my entire string so for example if I have a string
"Hi [[Title]] [[Name]] [[surname]], How are you"
then the match will be "[[Title]] [[Name]] [[surname]]" rather than 3 matches "[[Title]]", "[[Name]]", "[[surname]]". I'm sure I'm just a char or two away in the Regex but I'm stuck, How can I make it return the 3 matches.
In my project one of scenario demands passing querystring values more than 256 chars @ a time ...I tried it but after 256 chars its trunacting all other chars. workaround or various ways for passing more than 256 chars through querystring.
View 6 Replieson my page i have a time range printed in the format of 12:00 AM - 12:00 PM i have to display this appropriately for whatever culture the browser supplies. i'm having an issue with arabic (ar-ae): the am/pm indicator seems to change the text ordering for part of the string. the string has the right characters in the right places in memory, but shows them in a different order.
so for my start and end times, i have strings like 03:00 ص and 11:00 مand then i put them together like
string dummytext = t1string + " - " + t2string; when the page is written, the range is displayed as 03:00 ص - 11:00 م i've tried putting each piece in a Label control and wrapping everything in a div with dir="ltr" and haven't made any progress. this is happening in a table cell if it makes any difference.
In the rowdatabound, I have added some html to a linkbutton for formatting, but later when I try to get the len(trim) char count of the linkbutton, I cannot get an accurate reading. Is there someway?
View 11 RepliesI am developing a site in Persian (it a right to left language), and it's supposed to be used both with IE7 and IE8. I don't have any problems with IE7 but in IE8 all my numbers show in English instead of Persian; ie instead of showing ١٢٣ , IE8 shows 123. I tested Culture and UICulture but they didn't solve the problem.
By a great chance, I found that if I Omit "DocType" tag from top of my pages this problem resolves, but some other problems appear like my Ajax popup dialog box won't work as it used to in both IE7 and IE8; I've also seen warnings that say CSS Styles may not work properly without "DocType" tag.
What's wrong with <!DocType>? And How can I solve my problem?
why non-english characters get changed to code symbols in IE, but appear as they have to be at FireFox? Could it be fixed?
View 1 RepliesI just wanted to know if there is a fast way to convert a month's name to any language except english? I wanted it to translate to finnish.
i.e.
January = Tammikuu
February = Helmikuu