[HELP] Why the child window reopen a new child window ?

B

bhchng

After I click the submit button on my child window, it
successfully navigate the parent window to the indicated URL and
close the child. But I dont understand why the child window reopen a
new child window. What is happening and how to stop child window from
reopening a new window ?

childWindow.aspx:

<script language="javascript">
<!--
function Done() {
var yourParentWin = window.dialogArguments;
yourParentWin.location.href("DE_ShiftLog.aspx");
self.close();
}
//-->
</script>


childWindow.aspx.cs:

private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
if ( !IsPostBack )
{
this.btnSubmit.Attributes.Add("OnClick", "javascript:
Done();");
}
else
{
//...
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,526
Members
44,997
Latest member
mileyka

Latest Threads

Top