标签未显示包含在其中的值 [英] label not shows the value enclosed within

查看:134
本文介绍了标签未显示包含在其中的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

在我的应用程序中,如果用户输入的值为<名称>在文本框中.然后,在查看此用户信息时,它会显示名称的空白值.为什么会出现这种情况,对此有什么解决方案吗?请帮我

Hello friends,

In my application if User enters value as < name > in textbox. then when viewing this user information it shows the blank value for name. why this appear and is there any solution for it? Plz help me

推荐答案

,这是因为字符串<名称>被浏览器解释为html标签.因此,在将数据保存到数据存储之前或在显示之前,必须对它进行Htmlencode.请参考... http://msdn.microsoft.com/en-us/library/w3te6wfz.aspx [^ ]
that is because string < name > is interpreted by browser as html tag. So before saving data to your data store OR before displaying you have to Htmlencode it. Please refer... http://msdn.microsoft.com/en-us/library/w3te6wfz.aspx[^]


这篇关于标签未显示包含在其中的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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