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>", "");
Ïà¹ØÎĵµ£º
ÒÔblogϵͳΪÀý£¬Ò»¸ö¼òµ¥µÄblogϵͳģÐÍ°üÀ¨£º
1.·¢±íһƪеÄblog
2.ÏÔʾһƪblog
3.ÐÞ¸Äһƪblog
4.ɾ³ýһƪblog
ASP.net MVC»áÊÇÕâÑùµÄURL¹æ»®£º
*. http://www.gaotianpu.com/blog/create,´´½¨
get·½·¨¸øÓû§Õ¹Ê¾Ò»¸öhtml±íµ¥,¹©Óû§Ìá½»Êý¾Ý
post·½·¨½ÓÊÜÓû§Ìá½»µÄÊý¾Ý£¬²åÈëµ½db
*. http://www.gaotianpu. ......
Backup.aspx
protected void Button1_Click(object sender, EventArgs e)
{
string path = Server.MapPath("") + @"\Backup";
if (!Directory.Exists(path))
......
DateTime dt = DateTime.Now;
// Label1.Text = dt.ToString();//2005-11-5 13:21:25
// Label2.Text = dt.ToFileTime().ToString();//127756416859912816
// Label3.Text = dt.ToFileTimeUtc().ToString();//127756704859912816
// Label4.Text = dt.ToLocalTime().ToString();//2005-11-5 21:21:25
// Label5.Text = ......
//postÇëÇó
string name = Request["name"].toString();
string name =Request.Form.Get("name").toString();
//getÇëÇó
string name = Request.QueryString["name"].toString();
µ«ÎÒ·¢ÏÖ ÎÞÂÛÊÇ·ñÊÇpostÓëget´«Öµ¶¼¿ÉÓÃ
string name = Request["name"].toString();
±íµ¥Ìá½»ÖÐgetºÍpost·½Ê½µÄÇø±ð¹éÄ ......
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 ......