SIGN UP MEMBER LOGIN:    
ARTICLE

Fetch, Read, Write, and Store by HINDI Language in ASP.NET

Posted by Prabhakar Parihar Articles | ASP.NET Programming April 04, 2011
In this article I am trying to fetch, read, write and store data in the HINDI Language.
Reader Level:


In this article I am trying to fetch, read, write and store data in the HINDI Language. In this article I am showing how to change your required language to Hindi Translation, English, Hindi (Devlys001), or other language change by pressing right side Alt + Shift button both ..... The first step is to download HINID Indic IME 1 V 5.0

Image1.jpg

Firstly do this task . . download the Unicode generator software HINID Indic IME 1 V 5.0 then install this software on your PC . . not difficult to do .. installed in your PC . . then start ASP.NET.

In SQL

In SQL create a table with required data entry. And since you want to add Hindi in a column the data type should be NVARCHAR. The columns NAME, Father Name, Address and City are NVARCHAR data type.

In aspx page

In the aspx page, draw a textbox and button control. Then write the following code for saving the data to a SQL Database.
Write this code for the button's Click event:

protected void btnSubmit_Click(object sender, EventArgs e)
    {
        localclass1.myconnection();
        string sql = "insert into hindi (name,Fathername,address,city,phone)values(N'" + TextBox1.Text + "',N'" + TextBox2.Text + "',N'" + TextBox3.Text + "',N'" + TextBox4.Text + "',N'" + TextBox5.Text + "')";
        cmd = new SqlCommand(sql, localclass1.mycon);
        int res;
        res = cmd.ExecuteNonQuery();
        GridView1.DataBind();

    }


Since the insert query has Unicode data, character data needs to be prefixed with an N like this .... N'"+ TextBox4.Text +"' .... to support saving Unicode to Nvarchar data type.

Many Language Types Can Be Used

There are many options to use many languages; change in setting by clicking right side Alt + Shift button. A Hindi keyboard option can be generated using Right Side then you choosing a language, such as Hindi transliteration, Hindi Remington, Hindi Typewriter, Hinidi Inscript, Hindi Web Duniya KeyBoard, Hindi Anglo Nagri.

Change the language as you require . . and enjoy this code.

Image2.jpg

Conclusion

With this code I am trying to solve the HINDI language problem short out. Many times we want to use the Hindi language in a application but we don't know an easy way to do this, but with this code using the Hindi language will be easy in applicationa & databases . . Enjoy it.....

Login to add your contents and source code to this article
share this article :
post comment
 

Thanks for excellent post on hindi could you post the same with oracle 9i as backend and rest of example is same. thanks in advance

Posted by MUJI GOPINATH Mar 27, 2012

Suthis when we store the values in Hindi language it will store that values in Hindi in Database.

Posted by Krishna Garad Apr 28, 2011

From Where we can download this hindi indic any link please.

Posted by Krishna Garad Apr 26, 2011

third party installation is not required required . . in that case . . u generate Unicode any ware and out ur control (TextBox) then Save in Database

Posted by Prabhakar Parihar Apr 05, 2011

What about client they complusary install that third party tool or no need to install?

Posted by Krishna Garad Apr 05, 2011
Become a Sponsor
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
    Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
Team Foundation Server Hosting
Become a Sponsor