用textbox(多行)留言 如何取得HTML代码? 内详 问题 谢谢帮忙! this.TextBox1.Text.Replace("<","<").Replace(">",">").Replace("\r\n","<br>").Replace(" "," ") 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 textbox 不支持html format用个第三方吧 RichTextBox FreeTextBox this.TextBox1.Text.Replace("<","<").Replace(">",">").Replace("\r\n","<br>").Replace(" "," ")用第一楼说的这种方法应该可以实现,用TextArea好像支持HTML format 大家可能不完全明白我的意思我公司要求做个 招聘程序 其中有个 填写个人工作经验的textbox 用户填写后 保存的数据库中, 取出数据库中内容 显示在页面的格式要和用户输入的格式一样。要求不让用FreeTextBox using System.Text.RegularExpressions;string Content = this.txtComment.Text.ToString().Trim();Content=Regex.Replace(Content,"<","<"); //过滤HTML代码 Content=Regex.Replace(Content,">",">"); Content=Regex.Replace(Content,"\r","<BR>"); //回车 Content=Regex.Replace(Content," "," "); //空格 Content=Regex.Replace(Content,"\t"," "); 求一个最少耗材量的算法 asp.net问题。急。。。。 如果我上传了新闻以后,我想通过管理员来验证后才能够在前台页面显示 新手上路,大侠路过帮忙解决下!!!! 会摆乎服务器的进来看看 我用IE WebControls 控件从数据据库成生树,生成TreeView.dll出现了以下错误,,百思不得奇解,请各位高手帮忙 请教Excel导出的入门问题 cookie 一问 用IHttpHandler怎样过滤生成内容中的非法字符 .NET问题求救 存储过程分页问题 20 新手问个问题:首页登陆提交并验证用户名名和密码怎么做(用Form 的 action吗? 还是……)
用个第三方吧 RichTextBox FreeTextBox
用第一楼说的这种方法应该可以实现,用TextArea好像支持HTML format
我公司要求做个 招聘程序 其中有个 填写个人工作经验的textbox 用户填写后 保存的数据库中, 取出数据库中内容 显示在页面的格式要和用户输入的格式一样。要求不让用FreeTextBox
string Content = this.txtComment.Text.ToString().Trim();
Content=Regex.Replace(Content,"<","<"); //过滤HTML代码
Content=Regex.Replace(Content,">",">");
Content=Regex.Replace(Content,"\r","<BR>"); //回车
Content=Regex.Replace(Content," "," "); //空格
Content=Regex.Replace(Content,"\t"," ");