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


Top 5 Contributors of the Month
david stephan
Fauzul Azmi
Asad Ali
Post New Web Links

how to find give text English or arabic

Posted By:      Posted Date: October 22, 2010    Points: 0   Category :ASP.Net
 

 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




View Complete Post


More Related Resource Links

Convert English to Arabic number without changing any regional settings in .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.

Search does not find text in Word document stored in document library on a Report Center site within

  

Hello,

We have a document library on a site created off of the Report Center site template. We uploaded a Word 2007 document with the word zebra in the text. Using the search bar at the top of the page we selected This list: Our document library and searched for zebra. We received no results.

We tested the same thing on another site (site template Team site) within the same site collection and search worked fine.

Does the Report Center search function differently then the search functionality on the Team site?


Tamara Bredemus SharePoint Minion...working up to Maven

Converting Hindi Text to English Text

  
Hi,Can someone guide me in converting hindi text to english text using c#.  The application will be windows based.  When I googled it says it will be possible using google/translate.  However I am not aware of how to use that in my application.Any ideas?Regards,Karthizen

Find text between two separate words - to parse text from a message

  
Hi all, I am new to regular expressions.   The following text has got three sections; - Name, Date, and Message   [Sender]: John Smith  [Received]: 2005-8-21 3:28:9Hi bob, thanks for the message[Sender]: Paul Stein  [Received]: 2005-8-21 3:17:38Cannot make that time...[Sender]: Sarah S  [Received]: 2005-8-20 15:18:2No way! Let me know if it's on. I would love to see that film. It got great reviews.[Sender]: John Smith  [Received]: 2005-8-21 3:28:9Hi bob, thanks for the message[Sender]: Paul Stein  [Received]: 2005-8-21 3:17:38Cannot make that time...[Sender]: Sarah S  [Received]: 2005-8-20 15:18:2No way! Let me know if it's on.   I want to extract each of them.   The text between "[Sender]:" and  "[Received]:" is the NAME   The next word after the  "[Received]:"  is the DATE   The MESSAGE starts after the digits of the Date end and it is upto the mark  "[Sender]:"   Can anyone tell me how to extract it using C# Regular expressions.   Thank you for your time.   Tomy

Can not find file when running app (I give up!!!)

  
Ok, I give Up!!!I created a deployment project in VS 2008.   It packages a Windows forms app.1- My application includes two XML files that that it needs to read from.  Those files were added into the solution.2- After installing the app via my deplyoment project, the app can not find the XML files that it needs,  it tells me that System IO can't find the XML files3- I notice that when the files are read, the app tries to read from the User\myprograms etc area.  Sometimes they are read from windows\system32 4- After I had added the files to my Windows forms app  I never specified a path when retrieving.  I figured the system was going to choose the application folder once deplyed and read from the same.  Maybe this is where the fault exists.  The application runs fine from Visual Studio.Can someone tell me if I have to specify a folder or if I have to use some sort of default syntax to make sure the files are written and read from the application folder.  The XML files have had the write always property set to true.I have tried moving the files around to no avail.  The code that loads one of the files is simply:xelement doc = xelement.load("myxmlFile.xml");??? NR

Accent-insensitive search with Arabic text

  
I've indexed documents in Arabic that contain accents (or diacritics) and I want to be able to conduct searches where the query does contain the accents but returns results for texts that both contain and do not contain accents. For example, if I have a document that contains the word "????????????" (a word with accents), I would like to be able to search using the word "???????" (the same word without accents). I have tried several combinations of configurations in my environment to no avail. I have tried installing my SQL Server using Arabic collation and I have installed the Arabic language pack on my OS. I have also tested the same thing with French, and it is working properly. The spsearchdiacriticsensitive value is set to false (the default). Does anyone know how to get this working? Is it even possible to do accent-insensitive search with Arabic? More on my environment: MOSS 2007 Enterprise Windows 2008 R2 SQL Server 2008 R2 Thank you

how to find any text in current page with java script like (CTRL + F) ie or firefox .

  

hi

i have a page with datalist and more label

and i have an input text and a html button in my page.

i need a javaScript code for find text in my page like ( ctrl + f ) in ie or firefox . ?!

thanks


Find the RootNode text/value of TreeView control using Javascript

  

Hi,

Is it possible to find the text/value of the Rootnode  of Treeview control using javascript.

Thanks,

Reena


find and replace on regexp in selected text

  

Hi

I work in SQL Server Management Studio 9.00.1399.00

I have this text:

Column1,
Column2,
Column3

I search this regexp:

^{[^ ,]+}
and replace with this one:

o\.\1 = t\.\1


As result I expect this:

o.Column1 = t.Column1,
o.Column2 = t.Column2,
o.Column3 = t.Column3
Replace works fine when I search in Current Document. But it does not work in Selection. When I apply search and replace to selection, I get this result:

Column1,
o. = t.,
o. = t.umn3
Is there any fix? Regexp never worked fine in SSMS, but usually I managed to find work around. Not this time.

Thank you,

Alexander


DBA

How to let the user switch between English and Arabic language SharePoint sites?

  

I have installed MOSS 2007 Arabic Language Pack and now have SharePoint 2007 sites in both English and Arabic languages.

I have a custom UserControl in my MasterPage which is a dropdown box having the options:English and Arabic.

I want the user to select the language of his/her choice and depending on the choice,the site will be displayed in the selected language.

I have created a custom team site definition using the SharePoint 2007 WSPBuilder Project template which has custom document libraries,lists,web parts,features,usercontrols,workflows,etc.
I am deploying this WSP using STSADM commands on the WFE server.

I want to have this site language switching functionality in this custom team site definition.
The same thing which is found in the Microsoft SharePoint 2010 site at: http://sharepoint.microsoft.com/en-us/Pages/default.aspx

My current custom team site definition(WSP) uses the default English Resource file(core.en-US.resx).
How can I use the Arabic language Resource file(core.ar-SA.resx) in the same WSP Solution?

Also,suppose I create a custom publishing site definition(WSP),then I want that if the content publisher/owner/administrator publishes the content in the English language site,then the same thing must be reflected in the Arabic language site as well.

That is,any content ch

insert Arabic text to sql express 2005 (windows application)

  

Hi,

 

I need your help guys. Am devolving a windows application by c#. I have problem of insert Arabic text to sql express 2005. I always get ???? instead of the Arabic letters. I change the collation of the database field to windows collation and choose Arabic but still I get the same problem.

 

Your help is appreciated

 

 


AutoCompleteStringCollection for text box in DataGridView 2.0

  
I have been searching for a way to have autocomplete in a DataGridTextBox
object. There does not appear to be an obvious way to do this like you would
for a TextBox outside of a grid using the AutoCompleteCustomSource. Any
thoughts on how I can add this collection? :)

Built-in Functions - Text and Image Functions in SQL Server

  
Text and image functions operate on TEXT, NTEXT and IMAGE data types. These data types are deprecated with SQL Server 2005 and should be replaced by VARCHAR(MAX), NVARCHAR(MAX) and VARBINARY(MAX) when possible. Alternatively you can also consider storing large string values using XML data type. Text and image functions are nondeterministic.

Future versions of SQL Server will not support TEXT, NTEXT and IMAGE data types. Columns with TEXT / NTEXT data type do not support commonly used string functions such as LEN, LEFT, RIGHT, etc. Furthermore, due to the large size of TEXT data you''re likely to see performance issues if you store such data in the database. However, at times you can''t help but use the TEXT / NTEXT / IMAGE data types (for example when supporting 3rd party databases when you cannot change the schema) - this is when text and image functions come in handy.

Built-in Functions - Text and Image Functions

  
Text and image functions operate on TEXT, NTEXT and IMAGE data types. These data types are deprecated with SQL Server 2005 and should be replaced by VARCHAR(MAX), NVARCHAR(MAX) and VARBINARY(MAX) when possible. Alternatively you can also consider storing large string values using XML data type. Text and image functions are nondeterministic.

Conversion of text files from ANSI to UTF-8

  
reading and writing text files in ANSI format and
writing html-files in Charset ISO-8859-1 (Western Europe).

Text to Voice

  
Text to Voice and Voice to Text convert

Voice to Text conversion:-
http://www.programmersheaven.com/mb/VBNET/416861/416861/voice-recognition-using-ms-visual-studio-2005-and-ms-speech-sdk/

could somebody give me example how I can connect to database only once if I use many models in contr

  

I use in my ASP.NET MVC application repository pattern and I use in controller for example 3 models:

   namespace MvcApplication1.Controllers  
   {  
        public class HomepageController : Controller  
        {  
            private IWebsitesRepository _repository_websites = new WebsitesRepository();  
            private IFirmRepository _repository_firm = new FirmRepository();  
            private IPhotosRepository _repository_photos = new PhotosRepository();  
      
     
           ...............  
       }  
   }  

In WebsiteRepozitory, FirmRepository and PhotosRepository classes I have:

Database1Entities _entities = new Database1Entities();

So I have 3 connections to database ? Is it wrong ? How can I solve it ?


Categories: 
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