如何以Utf格式转换文本框值 [英] How Do I Convert Textbox Value In Utf Format

查看:95
本文介绍了如何以Utf格式转换文本框值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想将文本框中输入的文本转换为kruti dev 010,因为我使用css代码

Hi I want to convert the text what ever typing in the text box is converted into the kruti dev 010 for that i uses the css code

<style type="text/css">

      @font-face {  
      font-family: kruti dev ;  
       src: url('../fonts/KRDV010.ttf') format("truetype");  
    }
      .hinditext {
    font-family: kruti dev;  
    font-size:18px;
}

    </style>



但这仅在前端转换代码

如何转换代码背后的代码

for



String name = textbox.text



这里的名字不包含转换后的字体





我怎么转换这个

请帮帮我


but this converts only on front end code
how do i convert the code behind code
for

String name=textbox.text

here name doesnot contains the converted font


how do i convert this
please help me

推荐答案





参考以下链接,希望它有所帮助。



使用ASP.NET C#的其他语言输入(印地语,孟加拉语,英语,马拉地语,马拉雅拉姆语等)。 [ ^ ]


你好

我找到了我的答案的解决方案

我使用了相同的CSS对于网格视图

Hello
I found the solution for my answer
I used same css for the grid view
<style type="text/css">

      @font-face {
      font-family: kruti dev ;
       src: url('../fonts/KRDV010.ttf') format("truetype");
    }
      .hinditext {
    font-family: kruti dev;
    font-size:18px;
}

    </style>





之后,我在文本框中键入的值在gridview中查看

但我知道看到了sql server中的文本

在sql server中我差点使用nvarchar(max)数据类型来存储数据

但这件事很神奇



谢谢





如果有人知道在hindi格式的sql server中查看数据的答案那请告诉我



after that what i typed in text boxes that values are viewed in gridview
but i caanot see the text in sql server
in sql server i almost used nvarchar(max) data type for storing the data
but this thing is amazing

thank you


if any one knows the answer for viewing that data in sql server in hindi format then please tell me


这篇关于如何以Utf格式转换文本框值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆