Asp.net website in hindi or other native language with simple steps

Dear all,
For Indian its great news that you can now create web site in your native language like Hindi, Marathi, Punjabi, Urdu, Tamil etc.
Kudos to Microsoft for introducing “Microsoft Indic Language” with help of this we can easily create web site in any language without doing much efforts.
So here we go  with the sample  and things to remember with simple step

Step 1:- Add following line in your html page

input type=”hidden” id=”MicrosoftILITWebEmbedInfo” attachMode=”optout” value=””

/>
<script type=”text/javascript” src=”http://ilit.microsoft.com/bookmarklet/script/hindi.js” defer=”defer”></script>
   

Remember here:  I am using hindi here that’s why i used hindi.js you can use your own choice.
Step 2:- Add new attribute with each input control which is “MicrosoftILITWebAttach” as shown in below.
<    asp:TextBox ID=”txtPost” runat=”server” MicrosoftILITWebAttach=”true”             ></asp:TextBox>

Step 3:- If you want to store this value in database the just remember all the field which contain string data type should be “NVARCHAR”
Otherwise your searching will not work and all the data will be change to question mark instead of actual data.

Step 4:- for searching in database hindi text or text which you insert you have to use following syntax

SELECT * FROM tblPost where postName =N’प्रोफेसर’
So Enjoy

Thanks
Rajat

Advertisements

7 thoughts on “Asp.net website in hindi or other native language with simple steps

  1. Hi Rajat, it is nice.
    can you please tell me what a resource file is? and how I can show the complete web page (generally Home, About, Contact etc. including Header, Menu tabs, main content, sidebars, footer) in Hindi.
    Please help me .

    1. Hi Vikas,

      In the post you saw how to create a resource file.
      The resource file is like your language repository where you will keep value for particular label , header , menu etc. if your web page is static then you can save each entry in resource file like home ,about ,contact us etc.

      and if it is dynamic or coming from database then either save the value in that particular language in database or use And other option is you can use Google page translation also.

      you can also check https://indiandotnet.wordpress.com/2009/04/24/multi-language-web-site-in-5-easy-steps-in-5-minutes/
      and https://indiandotnet.wordpress.com/2009/03/18/language-translator-in-5-minutes/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s