Using (Displaying) Urdu Font in TextBox in ASP.Net

Last Reply 15 days ago By Mudassar

Posted 22 days ago

Dear Experts, 

I need to use urdu font in web application in asp:textbox. Please guide.

Kind Regards,

Mehram

Posted 15 days ago

Hi,

Please use this code. Note. It wil allow only to display. If you want to type then you need to add a Keyboard of Urdu Font in your Windows.

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        @import url(https://fonts.googleapis.com/earlyaccess/notonaskharabic.css);
        input
        {
            font-family: 'Noto Naskh Arabic' , serif;
            font-size: 10pt;
            direction: rtl;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TextBox ID="TextBox1" runat="server" Text = "جشن ٖآزادی مبارک" />
    </div>
    </form>
</body>
</html>

Screenshot