WEB开发人员关于C#、VB和VBScrip的技术探讨、代码交流和新手学习!dr.Fill(ds,"Web技术"); YourSkill.DataSource=ds.Tables("Web技术"); YourSkill.DataBind();-----------------------------------------------------号码:12634167群名:ASP.NET开发网络主要话题:ASP.NET(C#,VB)、ASP(VBScript)成员:多为Web开发人员及希望接触新技术的网友欢迎各位热衷于Web开发的朋友加入!我们不以水平论高低,只要你想学习的渴望!
{
if(chr==null)
return "";
chr=chr.Replace("<","<");
chr=chr.Replace(">",">");
chr=chr.Replace("\n","<br>");
chr=chr.Replace(" "," ");
chr=chr.Replace("‘","‘");
return(chr);
}
chr = Regex.Replace(chr,@"\[i\](?<x>[^\]]*)\[/i\]",@"<i>$1</i>",RegexOptions.IgnoreCase);
chr = Regex.Replace(chr,@"\[u\](?<x>[^\]]*)\[/u\]",@"<u>$1</u>",RegexOptions.IgnoreCase);
chr = Regex.Replace(chr,@"\[list\](?<x>[^\]]*)\[/list\]",@"<ul>$1</ul>",RegexOptions.IgnoreCase);
chr = Regex.Replace(chr,@"\[list=1\](?<x>[^\]]*)\[/list\]",@"<ol type=1>$1</ol id=1>",RegexOptions.IgnoreCase);
chr = Regex.Replace(chr,@"\[list=a\](?<x>[^\]]*)\[/list\]",@"<ol type=a>$1</ol id=a>",RegexOptions.IgnoreCase);
chr = Regex.Replace(chr,@"\[\*\](?<x>[^\]]*)\[/\*\]",@"<li>$1</li>",RegexOptions.IgnoreCase);
chr = Regex.Replace(chr,@"\",@"<center>—— 以下是引用 ——<table border='1' width='80%' cellpadding='10' cellspacing='0' style='font-size: 9pt'><tr><td>$1</td></tr></table>—— 引用完毕 ——</center>",RegexOptions.IgnoreCase);
chr = Regex.Replace(chr,@"\[code](?<x>.*)\[/code]",@"<center><table border='1' width='100%' cellpadding='3' cellspacing='3' style='font-size: 9pt'><tr><td>$1</td></tr></table>",RegexOptions.IgnoreCase);