.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Convert English to Arabic number without changing any regional settings in .net

Posted By: Syed Shakeer Hussain     Posted Date: July 15, 2010    Points: 2   Category :ASP.Net
Well, most applications that I worked with was multilingual that supports English UI and Arabic UI.

And one of the major issue that we have faced is displaying Arabic numbers without the need of changing the regional settings of the PC.

So the code below will help you to display Arabic number without changing any regional settings.

View Complete Post

More Related Resource Links

convert english string to hindi string

Code to convert english to hindi string

convert english to hindi

i need a c# code which fetch records from table in data base which is in english and convert it in to hindi . i am using windows application so please do not suggest google api and all that. i need core c# code to do that please help me

convert english to hindi

sir i am developing an application in which i take data from data base which is in english and i need to convert it in to hindi . i am working in windows application so  google api will not work here please give  c# code to do the same or any other way to do the same

How to convert 2.00- to a number?

I have a problem in SSIS where I from a flat file receive data where a column has the number f.x. " 2.00- ". As I am Scandinavian the SSIS does not recognize this as a number and therefore treat it like a string. I need to change it to " -2,00 " instead. How do I do that? 

Change Regional Settings

I need to change regional settings on SharePoint so that the date format is not mm/dd/yyyy but dd/mm/yyyy.I have seen that this can take place if i go to Home site->Site Settings->Regional Settings and change the locale from there. All are perfect up to here. Since i need this change to take effect on subsites as well I check the "All sub-sites inherit these Regional Settings". After Pressing ok, i get an error message "Please turn off all indexed columns before changing the collation of this site. One or more list or library contains a column that has been marked for indexing. ..."How can i stop this indexing temporary? i tried to stop the indexing service from service administration but this didn't work.After applying this change, i hope my dates will not be lost, correct (this is the production server.....)? Will i have any problem with the search? Do i need further actions?a.rongas

Dynamic list item title based on date created & regional settings?

I have a list of things that doesn't *need* a title.  However, because sharepoint uses Title for links, RSS etc  I tried generating a title in an event handler.   This would work great if I wasn't basing it on a date field: public override void ItemAdding(SPItemEventProperties properties) { DateTime dt = Convert.ToDateTime(properties.AfterProperties["TestDate"]); properties.AfterProperties["Title"] = dt.ToShortDateString(); base.ItemAdding(properties); } In testing, this sets the title to "8/9/2010" when I selected 8/10/2010 in the date picker.  I figure this is because of the regional settings of my test user.  I can probably correct the title value for 'test user' but that won't fix 'test user in mongolia' who would still see two different values. So What I would like is to have the Title always display the value MyDate in the uesr's locale.  So the field needs to be dynamic not only at edit/update time, but at display time. Does anybody know if this can be accomplished, and more specifically how?

Convert to whole number

I have included the below examples with the output I want, any ideas what function I should use to get this? I tried round. FROM .00  TO .00 (.00 stays as is) FROM .0001 or .33 or .899  TO 1 Thanks.sqldev

Convert from Number to Text- Exporting to Excel from SQL Reporting services 2000

I was trying to export a report which contains a number format. When I do that, all the numbers in excel will have a green small tag beside it saying "Convert from Number to Text". Is there anyway that I can change the format to a number when I export it to excel?

Convert user.config to database storage via my custom settings provider



I've created my own custom settings provider to save user settings (formerly in the user.config) to a database. To point the particular settings that are to be saved to the database I specified

for each property to point to the BlobSettingsProvider instead of allowing them to default to the LocalFileSettingsProvider.
Now I need to convert existing user.configs to save to the database on the fly - a one time conversion. Because I've now specified the properties to use the BlobSettings provider they can no longer access the local user.config.
Does anyone have any thoughts on how best to accomplish this conversion (i.e. read the local user.config and populate the BlobSettingsProvider). The app can be run as a ClickOnce installed app or as a simple .net app - finding the correct local user.config looks to be a problem.
Thoughts, ideas,...?


Programmatically changing the 'Activities I am following' under Newsfeed Settings

Hi, is it possible to programatically select/deselect activities I am following on the news feed preferences page under MySites? I want to be able switch on/off notifications for both custom events and those provided by Sharepoint 2010 out-of-the-box.

Regional settings impacts Caml DateTime query



I am using the GetListItems web service to retrieve items from a list where my custom column UpdateCompleted is less than or equal to a given datetime. But, I noticed some weird behaviour of SharePoint 2007 going on. The query would perform differently when I changed my regional settings on the site settings page of SharePoint! When regional settings were set to UTC my query would select the items, when in GMT it would not.

I have specified my query to use a DateTime in UTC form (ends with Z) and I have also specified DateInUtc to TRUE in the query options. So I would expect SharePoint to do a UTC date compare despite what the site regional settings are set to.

This is my query:

<Query><Where><And><Eq><FieldRef Name='Status'></FieldRef><Value Type='Text'>Unlocked</Value></Eq><Leq><FieldRef Name='UpdateCompleted'></FieldRef><Value Type='DateTime' IncludeTimeValue='TRUE'>2010-10-08T18:40:21Z</Value></Leq></And></Where></Query>

This is my query options:

Using Custom Regional Settings in WPF


I am creating a localized WPF application and i want WPF to use whatever settings i have in my regional settings.

All over the internet they recommend the following code, which i did use

protected override void OnStartup(StartupEventArgs e)
    new FrameworkPropertyMetadata(

Now, let's suppose that in the regional settings i'm still using en-US but i have decided to show the currency as 1 digit after the decimal point instead of 2

If i use this code, it works perfectly

decimal d = 2.5M;

but when i use binding, i still get both digits after the decimal point


Changing grid to a color reflecting a number?


This is what I need


 This is what i have

How can i do this? I think thinking maybe something in the code behind that when it detects a 4,3 it would change it to a color. but im not sure.

Thanks for the help!


how to find give text English or arabic


 in my project two kind of languages are used.one is english and other one Arabic. i want to validate given text english or arabic .plz help me friends

My regional Settings


On our Project 2010 site only users with contribute permissions have the option to change their regional setting through the users My Settings properties , but users with more restrictive  access to the site do not see the option to change their My regional settings . They only see the My Alerts . is there a way to enable this for all users ?

Regional settings (locale) in SP - is there any way to change that settings? eg. date format

The system I use is MOSS2007. I have regional settings set to "Polish". The default date format is yyyy-mm-dd, what is wrong because usually is dd-mm-yyyy. Is there any way to change specific regional settings? I couldn't have found it on internet. I've tried to change to "French", which gives me dd-mm-yyyy, but then eg. in calendar I have days and months in French language :)

Forms Services Regional Settings


When a user selects a date with the Date Picker control, the date is entered as mm/dd/yy. In Australia we use a slightly reversed date format to the default US setting: dd/mm/yy.

I have checked the regional settings in the following placed, but they're all set to Australia:
1. The SharePoint site that's hosting my form (i.e. the list that has my form as a content type).
2. The SharePoint front-end web server that's hosting the SharePoint web application.
3. My local PC.

Is there some other place I need to set the region?


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend