----------------------------------------------------------- New Message on MumbaiUserGroup
----------------------------------------------------------- From: Jav Message 2 in Discussion Hi Water, Problem 1 :I've got a problem, say i've got a number (eg : 45) in a textbox named txtCounter Now when I Click on a button, btnIncrement i want to increment the value in the text box (In this case from 45 to 46) The problem is that the number is entered in ARABIC ... Is there a way of capturing the number, converting it to english and then incrementing it and converting it back into Arabic ??? Solution 1: Just change the Threading CurrentUICultureInfo to the desired Languages you want. The Settings for Culture will be available in MSDN. Then you just work the way you are working. Change the thread back to english when work is over. Problem 2 :My second doubt is i have a field "FirstName" wherein the user enters the value of the name in Arabic or English, in the database the type of this field is varchar(25) When i type in the first name in english (say "ABRAHAM") and save it everything is OK and "ABRAHAM" gets saved in the database, but when i type it in ARABIC, it gets saved into the database allright but when i open the table the value of the arabic name is ??????? (ALL QUESTION MARKS) Solution 2 : Just precede an 'N' in the insert statement while insertin non-english characters in database.ex :insert into test values (N'ay���pl'). Regards Javeed __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
