本文介绍了标签未显示包含在其中的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友, 在我的应用程序中,如果用户输入的值为<名称>在文本框中.然后,在查看此用户信息时,它会显示名称的空白值.为什么会出现这种情况,对此有什么解决方案吗?请帮我
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.请参考... msdn.microsoft/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... msdn.microsoft/en-us/library/w3te6wfz.aspx[^]
更多推荐
标签未显示包含在其中的值
发布评论