Z
zhuang
Hi,
I am creating a ASP.NET web application. On one page, if user click a
link button, then another aspx page will be shown as modelwindow, on
that modal window, it shows some key information about the sale, user
could change the value, and then click confirm link button on that
page,
the javascript code to pop up the new window is:
this.LinkButton1.Attributes.Add("onClick",
"window.showModalDialog('signupConfirm.aspx','this','font-size:10px;dialogWidth:43em;dialogHeight:40em,toolbar=0,location=0,directories=0,status=no,menuBar=1,scrollBars=no,resizable=no');");
The code to correspond the click event on popup window is:
private void LinkButton1_Click(object sender, System.EventArgs e)
{
Model.SignUp signup = (Model.SignUp )Session["signup"];
if ( this.CheckInfor(signup))
{
//this.AddSale(signup);
//Response.Redirect(GeneralHelper.SignupRAF);
this.Dispose();
}
}
if I open the child page using Response.Redirect, then everything is
fine, but if I use it as popup window, when I click confirm link
button, another popup window comes out, it is a blank page, the address
in address bar is:
javascript:{if%20(typeof(Page_ClientValidate)%20!=%20'function'%20||%20%20Page_ClientValidate())%20__doPostBack('LinkButton1','')}
I have no idea what happened, but I do have a few validator on that
child page, I have disabled all of them, and also check the html code,
there is no javascript at all, any one could give me some ideas?
Thanks you so much
zhuang
I am creating a ASP.NET web application. On one page, if user click a
link button, then another aspx page will be shown as modelwindow, on
that modal window, it shows some key information about the sale, user
could change the value, and then click confirm link button on that
page,
the javascript code to pop up the new window is:
this.LinkButton1.Attributes.Add("onClick",
"window.showModalDialog('signupConfirm.aspx','this','font-size:10px;dialogWidth:43em;dialogHeight:40em,toolbar=0,location=0,directories=0,status=no,menuBar=1,scrollBars=no,resizable=no');");
The code to correspond the click event on popup window is:
private void LinkButton1_Click(object sender, System.EventArgs e)
{
Model.SignUp signup = (Model.SignUp )Session["signup"];
if ( this.CheckInfor(signup))
{
//this.AddSale(signup);
//Response.Redirect(GeneralHelper.SignupRAF);
this.Dispose();
}
}
if I open the child page using Response.Redirect, then everything is
fine, but if I use it as popup window, when I click confirm link
button, another popup window comes out, it is a blank page, the address
in address bar is:
javascript:{if%20(typeof(Page_ClientValidate)%20!=%20'function'%20||%20%20Page_ClientValidate())%20__doPostBack('LinkButton1','')}
I have no idea what happened, but I do have a few validator on that
child page, I have disabled all of them, and also check the html code,
there is no javascript at all, any one could give me some ideas?
Thanks you so much
zhuang