易截截图软件、单文件、免安装、纯绿色、仅160KB

js C# ASP.Net 正则去掉超链接(只是 和 )

//替换所有
Regex reg = new Regex(@"(?is)</?a\b[^>]*>(?:(?!</?a).)*</a>");
string result = reg.Replace(yourStr, "");
//保留www.abc.com链接
Regex reg = new Regex(@"(?is)</?a\b.*?href=(['""]?)(?!(?:http://)?www\.abc\.com)[^'""\s>]+\1[^>]*>(?<text>(?:(?!</?a).)*)</a>");
string result = reg.Replace(yourStr, "");
//替换所有
string ds = Regex.Replace(row["products_description"].ToString(),"<a (.*?)>","",RegexOptions.Compiled);
ds = Regex.Replace(ds, "</a>", "");


相关文档:

asp.net 操作xml

asp.net 对xml文件的读写,添加,修改,删除操作
下面有代码调试正确
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using&nb ......

ASP.NET网站开发小结

1.<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
Vs2005红色了,提示找不到该文件
于是改为.<script src="/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
结果红色没有了,但是编译时报错,找不到该文件
结论:<script src="Script ......

C#关键字:访问关键字(access keyword)

 C#中访问关键字(access keyword)有两个:base、this
 
1.base
   用于从派生类中访问基类的成员,包括:
     a.调用基类上已被其它方法重写(override)的方法。
     b.指定创建派生类实例时应调用的基类构造函数。
  注意:对基类的访问只能 ......

asp.net小数点四舍五入的方法

1.只要求保留N位不四舍5入
  float f = 0.55555f;int i =(int)(f * 100);f = (float)(i*1.0)/100;
  2.保留N位,四舍五入 .
  decimal d= decimal.Round(decimal.Parse("0.55555"),2);
  3.保留N位四舍五入
  Math.Round(0.55555,2)
  4,保留N位四舍五入
  double dbdata = 0.5 ......

c# asp.net 获取客户端表单的数据

在web程序中,经常会使用在一个网页使用其他网页提交的数据信息,这里可以使用Request内置对象来完成,来获取用户提交的信息,根据客户端提交数据方式的不同,Request对象分别使用Form和QueryString集合属性来获取数据。下面是两种集合获取方式的不同点:通过Form获取数据时在form属性中简单的添加action=“跳转的网页 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号