http://www.freevpnaccess.com/
http://just-cool.net/thread-2413-1-1.html
2013年6月19日 星期三
2013年5月9日 星期四
2013年5月8日 星期三
position: fixed work in IE6
add this code in the css:
_position: absolute; /* position fixed for IE6 */
_top:expression(documentElement.scrollTop);
2013年5月7日 星期二
2013年3月25日 星期一
完成下載時刪除檔案 Delete the file when finish download.
string responseFile = Server.MapPath("~/" + FileName);
try{
Response.ContentType = "text/xml";
Response.AppendHeader("Content-Disposition", "attachment; filename=" + FileName);
Response.TransmitFile(responseFile);
Response.Flush();
}
finally {
File.Delete(responseFile);
}
2013年1月18日 星期五
2013年1月7日 星期一
Get the MD5 code
private string HashString(string Value)
{
System.Security.Cryptography.MD5CryptoServiceProvider x = new System.Security.Cryptography.MD5CryptoServiceProvider();
byte[]
data = System.Text.Encoding.ASCII.GetBytes(Value);
data = x.ComputeHash(data);
string
ret = "";
for (int i = 0; i < data.Length; i++)
ret += data[i].ToString("x2").ToLower();
return
ret;
}
訂閱:
文章 (Atom)