摘要: 【问题描述】父窗口打开一个模态子窗口后,子窗口的form提交,弹出新窗口,哪怕是只执行关闭命令,显然这是无法容忍的。【解决办法】head里加<base target=_self><head> <base target=_self></head> 阅读全文
posted @ 2011-02-11 16:08 TNTZWC 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 方法一:/// <summary> /// 使用此方法,可以确保同一个窗口只打开一次 /// </summary> public partial class WebForm1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { this.btnRedirect.Attributes.Add("onclick", "this.form.target='_newName'"); } p 阅读全文
posted @ 2011-02-11 16:06 TNTZWC 阅读(290) 评论(0) 推荐(0) 编辑
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebLibrary.JS.控制输入.WebForm1" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-tran 阅读全文
posted @ 2011-02-11 16:04 TNTZWC 阅读(148) 评论(0) 推荐(0) 编辑
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="弹出Div.aspx.cs" Inherits="WebLibrary.JS.弹出Div" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt 阅读全文
posted @ 2011-02-11 16:04 TNTZWC 阅读(133) 评论(0) 推荐(0) 编辑