Asp.net从文本框中获取阿拉伯语文本 [英] Asp.net get arabic text from textbox
问题描述
我的应用程序中有一个包含first_name和last_name文本框的aspx页面。如果我试图从数据库中获取列并在textBoxes中显示它是完美的,但如果我尝试在textBox中编写阿拉伯语文本并通过此代码获取服务器中的文本:txtArabicFirstName.Text文本出错就像Gibberish
请帮忙!
我尝试了什么:
我尝试将此代码添加到我的webConfig:
< locatio path =〜/ admin /employee/Tabs/sd12.aspx\">
< system.web>
< globalization requestEncoding =utf-8responseEncoding =utf-8/>
< /system.web>
< / location>
我尝试将其添加到我的第一个aspx页面行:
LCID =1025CodePage = 65001
但是没有用。
你没有回答我的问题......然而......
从这里开始: ASP.NET Web应用程序的双向支持 [ ^ ]
I have a aspx page in my application that contain first_name and last_name textboxes. if I try to get columns from database and display them in textBoxes it work perfect, but if I try to write arabic text in textBox and get the text in server by this code: txtArabicFirstName.Text the text goes wrong like Gibberish
please help!
What I have tried:
I try to add this code to my webConfig:
<locatio path="~/admin/employee/Tabs/sd12.aspx"> <system.web> <globalization requestEncoding="utf-8" responseEncoding="utf-8" /> </system.web> </location>
and I try to add this to my first aspx page line:
LCID="1025" CodePage="65001"
but didnt work.
You didn't answer to my questions...Nevertheless...
Start here: Bidirectional Support for ASP.NET Web Applications[^]
这篇关于Asp.net从文本框中获取阿拉伯语文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!