在asp.net中,文本框返回'表示'(单引号).我想在文本框中输入“(单引号)不要".任何人都可以告诉这个解决方案. [英] Textbox return ' for ' (single quote) in asp.net. i want ' (single quote) not ' in my textbox. Can any one tells this solution.
本文介绍了在asp.net中,文本框返回'表示'(单引号).我想在文本框中输入“(单引号)不要".任何人都可以告诉这个解决方案.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在asp.net中,文本框为(单引号)返回".我想在文本框中输入(单引号)而不是".
解决方案
如果要删除单引号,请尝试类似textbox.text.replace(@'''''',string.empty);
Textbox return '' for '' (single quote) in asp.net. i want '' (single quote) not '' in my textbox. Can any one tells this solution.
解决方案
If you want to remove single quote try something like textbox.text.replace(@'''''',string.empty);
use it txtBox.Text = System.Web.HttpUtility.HtmlEncode("This is my \"text\", isn''t it pretty?");
这篇关于在asp.net中,文本框返回'表示'(单引号).我想在文本框中输入“(单引号)不要".任何人都可以告诉这个解决方案.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文