拋棄式信箱 http://www.jetable.org/zh/index
不管什麼配備的電腦 能夠立刻直接感受到執行視窗的速度的方法...
開始-執行-鍵入regedit 找: HKEY_CURRENT_USER \ Control Panel \ Desktop ..
右邊的 MenuShowDelay -右鍵-修改- 數值改為 50 or 100 ---> ( XP / Vista 皆可)
AjaxControlToolkit http://www.asp.net/AJAX/AjaxControlToolkit/Samples/
淡江大學地址 251台北縣淡水鎮英專路151號
1. 前序(PreOrder):樹根→左子樹→右子樹 (DLR) D
2. 中序(InOrder) :左子樹→樹根→右子樹 (LRD) L R
3. 後序(PostOrder):左子樹→右子樹→樹根 (LRD)
string from = "";
string to = "killerjims@gmail.com";
string subject = "Title";
string body = @TextBox2.Text;
MailMessage message = new MailMessage(from,to,subject , body);
SmtpClient client = new SmtpClient("Localhost", 25); client.Send(message); //SmtpClient smtp = new SmtpClient();//smtp.Host = "smtp.gmail.com";//smtp.Credentials = new System.Net.NetworkCredential("killerjims", "PSWD");//smtp.EnableSsl = true;//smtp.Send(message);
string pattern = @"(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?";
//特定 \.(?:jpg|jpeg|gif|png) 檔案
string pattern = @"(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?\.(?:jpg|jpeg|gif|png)";
//Set up regex object
Regex RegExpr = new Regex(pattern, RegexOptions.IgnoreCase);
//get the first match
Match match = RegExpr.Match(content);
//loop through matches
int times = 0;
while (match.Success)
{
times++;
this.TextBox1.Text += match.Value + "\n";
//output the match info
Console.WriteLine("href match: " + match.Groups[0].Value);
WriteToLog("C:\\matchlog.txt", "href match: " + match.Groups[0].Value + "\r\n");
//get next match
match = match.NextMatch();
}
Label1.Text = times.ToString();
}
//Write to a log file
private void WriteToLog(string file, string message)
{
using (StreamWriter w = File.AppendText(file))
{
w.WriteLine(DateTime.Now.ToString() + ": " + message); w.Close();
}
}