急,急,急在线等 怎嘛在webconfig里写意个正则,给指定的一个字加上链接 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 读取web.configstring webconfig = 读出来;regex urlregex = new regex(@"(http:\/\/([\w.]+\/@)\s*)", regexoptions.ignorecase| regexoptions.compiled);strcontent = urlregex.replace(webconfig, "<a href=/knowskycom/\"\" target=\"_blank\"></a>"); string webconfig = 读出来;regex urlregex = new regex(@"(http:\/\/([\w.]+\/@)\s*)", regexoptions.ignorecase| regexoptions.compiled);strcontent = urlregex.replace(webconfig, "<a href=\"\" target=\"_blank\"></a>");替换完之后在会回写到web.config string webconfig = 读出来;//你先把webconfig的内容读出来,就像读取xml、txt一样regex urlregex = new regex(@"(http:\/\/([\w.]+\/@)\s*)",//@"(http:\/\/([\w.]+\/@)\s*)就是你要加链接的文字 regexoptions.ignorecase| regexoptions.compiled);strcontent = urlregex.replace(webconfig, "<a href=\"\" target=\"_blank\"></a>");//这就是加完链接之后的webconfig,你在会写到webconfig中很清楚了吧 在页面做视频播放 TextBox的单击事件 谁有动态生成treeview树的源代码 XtraReport的问题,麻烦有经验的朋友帮帮忙~ 编译器显示问题,继承窗体 怎么利用一个datatable生成一个dataset? application_end 事件什么时候执行 让按钮变为超级链接 asp.net中如何取得硬盘的物理序列号,今天这问题都发了3次了~ asp:HyperLinkColumn 的问题! asp.net动态生成竖向流程图片 GridView里放入的<asp:DropDownList控件列,他右边有很大一块空白,怎么去掉?
string webconfig = 读出来;
regex urlregex = new regex(@"(http:\/\/([\w.]+\/@)\s*)",
regexoptions.ignorecase| regexoptions.compiled);
strcontent = urlregex.replace(webconfig,
"<a href=/knowskycom/\"\" target=\"_blank\"></a>");
string webconfig = 读出来;
regex urlregex = new regex(@"(http:\/\/([\w.]+\/@)\s*)",
regexoptions.ignorecase| regexoptions.compiled);
strcontent = urlregex.replace(webconfig,
"<a href=\"\" target=\"_blank\"></a>");替换完之后在会回写到web.config
string webconfig = 读出来;//你先把webconfig的内容读出来,就像读取xml、txt一样
regex urlregex = new regex(@"(http:\/\/([\w.]+\/@)\s*)",//@"(http:\/\/([\w.]+\/@)\s*)就是你要加链接的文字
regexoptions.ignorecase| regexoptions.compiled);
strcontent = urlregex.replace(webconfig,
"<a href=\"\" target=\"_blank\"></a>");//这就是加完链接之后的webconfig,你在会写到webconfig中很清楚了吧