摘要: /// <summary> /// 关闭当前窗口并且返回值 /// </summary> public static void CloseWindowReturnValues(string value) { #region System.Text.StringBuilder Str = new System.Text.StringBuilder(); Str.Append("<Script language='JavaScript'type=\"text/javascrip... 阅读全文
posted @ 2012-01-29 10:16 名字随意 阅读(177) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 打开指定大小的新窗体 /// </summary> /// <param name="url">地址</param> /// <param name="width">宽</param> /// <param name="heigth">高</param> /// <param name="top">头位置</param> /// <param name=& 阅读全文
posted @ 2012-01-29 10:13 名字随意 阅读(108) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 转向Url制定的页面 /// </summary> /// <param name="url">连接地址</param> public static void JavaScriptLocationHref(string url) { #region string js = @"<Script language='JavaScript'> window.location.replace('{0}'); ... 阅读全文
posted @ 2012-01-29 10:13 名字随意 阅读(129) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 刷新打开窗口 /// </summary> public static void RefreshOpener() { #region string js = @"<Script language='JavaScript'> opener.location.reload(); </Script>"; HttpContext.Current.Response.Write(... 阅读全文
posted @ 2012-01-29 10:10 名字随意 阅读(139) 评论(0) 推荐(0) 编辑
摘要: View Code 1 /// <summary> 2 /// 刷新父窗口 3 /// </summary> 4 public static void RefreshParent(string url) 5 { 6 #region 7 string js = @"<Script language='JavaScript'> 8 window.opener.location.href='" + url + "';window.close();</Script>"; 9 ... 阅读全文
posted @ 2012-01-29 10:09 名字随意 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1 /// <summary> 2 /// 关闭当前窗口 3 /// </summary> 4 public static void CloseWindow() 5 { 6 #region 7 string js = @"<Script language='JavaScript'> 8 parent.opener=null;window.close(); 9 </Script>";10 HttpContext.... 阅读全文
posted @ 2012-01-29 10:08 名字随意 阅读(116) 评论(0) 推荐(0) 编辑
摘要: View Code 1 /// <summary> 2 /// 回到历史页面 3 /// </summary> 4 /// <param name="value">-1/1</param> 5 public static void GoHistory(int value) 6 { 7 #region 8 string js = @"<Script language='JavaScript'> 9 history.go({0}); 10 ... 阅读全文
posted @ 2012-01-29 10:05 名字随意 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 1 /// <summary> 2 /// 弹出消息框并且转向到上/下页 3 /// </summary> 4 /// <param name="message">消息内容</param> 5 /// <param name="value">-1/1</param> 6 public static void AlertAndRedirect(string message, int value) 7 { 8 #region 9 string js = "<script 阅读全文
posted @ 2012-01-29 10:04 名字随意 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1 /// <summary> 2 /// 弹出消息框并且转向到新的URL 3 /// </summary> 4 /// <param name="message">消息内容</param> 5 /// <param name="toURL">连接地址</param> 6 public static void AlertAndRedirect(string message, string toURL) 7 { 8 #region 9 string js = "<scr 阅读全文
posted @ 2012-01-29 10:00 名字随意 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1 /// <summary> 2 /// 把枚举转化为下拉选项 3 /// </summary> 4 /// <param name="ddl">引用参数:DropDownList</param> 5 /// <param name="enumType">枚举的类型</param> 6 /// <param name="isAddSelected">是否添加选择项</param> 7 public static void EnumToDr 阅读全文
posted @ 2012-01-29 09:59 名字随意 阅读(240) 评论(0) 推荐(0) 编辑