在GridView中选择行时遇到特殊字符问题? [英] Having problem with special characters when selecting a row in GridView?
问题描述
我正在开发一个项目,我必须使用特殊字符。
在表格中添加一些行后,我用三个表格中的存储过程填充GridView。此外,我可以选择一行并填充该行的文本框和下拉列表。
文本框中存在的问题是行的列有一个字符并且没有正确显示它,例如:
I'm working on a project in which I have to use special characters.
After adding some rows in tables, I fill a GridView with a stored procedure from three tables. Also, I can select a row and fill the textboxes and dropdown lists with that row.
The problem exists by the textboxes where the column of a row has an character and is not showing it properly for example:
without spaces between symbols
Ë = & # 203;
ë = & # 235;
Ç = & # 199;
ç = & # 231;
我的问题是如何在选择时解决这个问题特定行在文本框中显示那些字符。
提前感谢您的回复。
干杯。
My question is how to fix this when selecting a specific row to show in textboxes those kind of characters.
Thank you in advance for your reply.
Cheers.
推荐答案
如评论中所述,您可以使用HtmlEncode和/或HtmlDecode()函数来处理特殊字符。
如果textmode =密码,那么你将看不到文字。如果要显示文本,请不要使textmode = password。
As mentioned in the comments, you can use the HtmlEncode and/or HtmlDecode() functions to handle special characters.
If textmode = password then you won't see the text. If you want to show the text, don't make textmode = password.
这篇关于在GridView中选择行时遇到特殊字符问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!