标签未显示包含在其中的值

编程入门 行业动态 更新时间:2024-10-25 19:37:50
本文介绍了标签未显示包含在其中的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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[^]

更多推荐

标签未显示包含在其中的值

本文发布于:2023-10-04 15:30:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1467180.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:标签

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!