摘要: View Code 1 <asp:TextBox ID="TextBox1" runat="server" CssClass="inputCss" Width="60px"></asp:TextBox>2 <asp:CalendarExtender ID="TextBox1_CalendarExtender" PopupButtonID="TextBox1" runat="server" 3 Enabled="Tru 阅读全文
posted @ 2011-07-06 14:19 Jack Qin 阅读(276) 评论(0) 推荐(0) 编辑
摘要: BackUpDB.aspxView Code 1 <div> 2 3 备份数据库:<asp:DropDownList ID="db" runat="server"> 4 </asp:DropDownList> 5 <br /> 6 <br /> 7 8 </div> 9 <div>10 11 备份名称和位置:<asp:TextBox ID="positions" runat="server"></asp:TextB 阅读全文
posted @ 2011-07-06 14:17 Jack Qin 阅读(308) 评论(0) 推荐(0) 编辑
摘要: View Code 1 public static string getIP() 2 { 3 string result = String.Empty; 4 result = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; 5 if (null == result || result == String.Empty) 6 { 7 result = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]; 阅读全文
posted @ 2011-07-06 14:12 Jack Qin 阅读(294) 评论(1) 推荐(1) 编辑
摘要: View Code 1 public static string WeekDay()2 {3 string[] weekday = { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" };4 string week = weekday[Convert.ToInt32(DateTime.Now.DayOfWeek)];5 return week;6 } 阅读全文
posted @ 2011-07-06 14:11 Jack Qin 阅读(177) 评论(0) 推荐(0) 编辑
摘要: View Code 1 public static int GetWeekTime(DateTime dt)2 {3 int ww = new System.Globalization.GregorianCalendar().GetWeekOfYear(dt, System.Globalization.CalendarWeekRule.FirstDay, DayOfWeek.Sunday);4 return ww;5 } 阅读全文
posted @ 2011-07-06 14:10 Jack Qin 阅读(240) 评论(0) 推荐(0) 编辑
作者:Jack Qin http://www.nosqlcn.com