Dim str As String = Replace(Me.TextBox1.Text, " ", "") '替換空格
str = Replace(str, vbCrLf, "") '替換回車
str = Replace(str, vbCrLf, "") '替換回車
解决方案 »
- c# print2flash 转换命令
- 老生长谈!求教如何开发,能提高网站的运行速度!
- 循环生成复选框后,怎么获得选中的复选框的ID
- UpdatePanel 局部刷新的问题?
- 新手提问送分
- 思归、孟子老大们,这样的项目该怎样去做?
- 想把函数写活(合并的字段任我变)
- gridview模板列中,如何让HyperLink1.Text =下拉列表中选中的项d的文字~~~
- 生成提示 只能出现在 += 或 -= 的左边这是什么情况求高手100分
- 各位在北京的GGDDJJMM,进来看看
- ORA-02041 client database did not begin a transaction是怎么回事?
- 从数据库导入到EXCEL时,无法读出表的列名
string.trim().ToString().Replace("",null);
public static string MyHtmlEncode(string strContent)
{
strContent=strContent.Replace("&","&");
strContent=strContent.Replace("'","''");
strContent=strContent.Replace("<","<");
strContent=strContent.Replace(">",">");
strContent=strContent.Replace("chr(60)","<");
strContent=strContent.Replace("chr(37)",">");
strContent=strContent.Replace("\"",""");
strContent=strContent.Replace(";",";");
strContent=strContent.Replace("\r\n","<br/>");
strContent=strContent.Replace(" "," ");
return strContent;
}