我想在ASP文本框中查看sql数据,但不想在文本框中显示html标记 [英] I want to view sql data in text box of asp but not to display html tag in text box

查看:64
本文介绍了我想在ASP文本框中查看sql数据,但不想在文本框中显示html标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在创建网站,因为我要显示来自sql server的网页.我想先进行内容管理,首先要在asp的文本框中显示网站数据,以便用户可以查看网站内容.但是在sql表中我使用了HTML标签.因此,我希望用户无法在文本框中看到HTML标签.因此,请帮助我在.net
中是我的新手. 谢谢和问候
Manohar

Hello i m creating website in that i display web page from sql server.i want to do content management in that first i want to display website data in text box of asp so that user can view website content.but in sql table i used HTML tag.so i want that user cant see the HTML tag in text box.so please help me i m new in .net
Thanks and regards
Manohar

推荐答案

很确定我上周回答了类似的问题.无论如何,请使用正则表达式删除html标签.去检查正则表达式帮助站点(其中有很多).使用谷歌. Google是您的朋友.
Pretty sure I answered a similar question last week. Anyway, use a regular expression to strip out the html tags. Go check out Regular Expression helper sites (of which there are plenty). Use Google. Google is your friend.


这篇关于我想在ASP文本框中查看sql数据,但不想在文本框中显示html标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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