文本框未显示特殊字符(') [英] text box not showing special character(')

查看:252
本文介绍了文本框未显示特殊字符(')的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有数据库列中的数据,如ABC'123



当我恢复到文本框时,文本框只显示ABC

解决方案

检查你的数据库,并确保你的数据正好是什么?$


你认为它是。

如果你通过连接字符串插入数据(这是非常危险的),那么引号字符将终止字符串,你会发现数据库值比你想象的要短。 br />


如果不是这样,我们需要查看用于从数据库中提取数据的确切代码并将其显示在您的页面上。

i have data in database column like "ABC'123"

when i reverting to text-box the text-box only showing me "ABC"

after a cama its not showing

解决方案

Check your database, and make sure that your data is exactly what you think it is.
If you have inserted the data by concatenating strings (which is extremely dangerous) then the quote character will terminate the string and you will find the DB values are shorter than you expect.

If that isn't the case, we'd need to see the exact code you use to pull the data from your DB and display it on you page.


这篇关于文本框未显示特殊字符(')的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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