You must Sign In to post a response.
  • Category: ASP.NET

    How to change TextBox input language programatically in ASP.NET

    How to change TextBox input language programatically in ASP.NET
  • #767863
    For Different languages in TextBox or TextArea we have many javascript file can be used as a plugin. This JavaScript files will be used add the libraries for the languages which we want.

    We can do it in many ways, we can also utilize Globalization/Localization Concept here.
    I have provided you the JavaScript plugin concept.


    function ChangeLanguage(Lang)

    {

    if ( Lang == "English")

    {

    setEnglish("Editor");

    }

    else if(Lang == "Tamil")

    {

    setTamil("Editor");


    }

    else
    {
    setHindi("Editor");
    }

    }

    Thanks,
    Mani

  • #767876
    Hi,

    In ASP.net we have a concept called as Globalization and Localization using that technique you can able to achieve this task, refer below link this might be helpful to convert the language as you desired.

    https://msdn.microsoft.com/en-us/library/bz9tc508.aspx

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/

  • #767886
    First you need to download Tamil fonts from following link
    http://azhagi.com/freefonts.html
    then apply style to asp page as below

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title></title>
    <style type="text/css">
    @font-face
    {
    font-family: Marathi;
    src: url("Fonts/Roupya.eot") /* IE 8 */;
    }
    @font-face
    {
    font-family: Marathi;
    src: url("Fonts/Roupya.ttf") /* CSS3 supported browsers */;
    }
    </style>
    <style type="text/css">
    input
    {
    font-family: Marathi, Verdana, Arial, sans-serif;
    font-size: medium;
    color: black;
    }
    </style>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <asp:TextBox runat="server" />
    </div>
    </form>
    </body>
    </html>

    hope it helps

    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]


Sign In to post your comments