摘要:
调用:UpLoadIMG(this.FileName, "/upload/pic/", ".GIF.JPG.PNG.SWF");public static string TransToTwo(string theStr) { if (theStr.Length == 1) { return "0"+theStr; } else { return theStr; } } public static string UpLoadIMG(FileUpload fulFile, string DirectionName,string ExtNa 阅读全文
posted @ 2011-05-24 20:25
放哨De老鼠
阅读(273)
评论(0)
推荐(0)
摘要:
public static string fromNowToTheDate(DateTime theDate) { string FromNowToTheDate = ""; DateTime d1 = DateTime.Now; DateTime d2 = theDate; TimeSpan d3 = d2.Subtract(d1); FromNowToTheDate = d3.Days.ToString() + "天" + d3.Hours.ToString() + "小时" + d3.Minutes.ToString() + & 阅读全文
posted @ 2011-05-24 20:19
放哨De老鼠
阅读(248)
评论(0)
推荐(0)
摘要:
public static string GetClientIP() { string result = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; if (null == result || result == String.Empty) { result = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]; } if (null == result || result == String. 阅读全文
posted @ 2011-05-24 20:17
放哨De老鼠
阅读(292)
评论(0)
推荐(0)

浙公网安备 33010602011771号