By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,747 Members | 1,672 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,747 IT Pros & Developers. It's quick & easy.

Help with showDialogWindow (there is an extra pop-up window)

P: 9
I'm building an ASP.NET 2.0 application in Visual Studio 2005.

Here is what I want to do, and what is happening:
1 User clicks on button
2 New window opens up, user selects File to upload and a Date, clicks "submit"
3 Window automatically closes, returns to parent window and refreshes the page.

What is happening:
1 User clicks on button
2 New window pops up. When "submit" is clicked, a NEW window pops up, and neither window closes.

I've tried setting the post method of my form to _self and _parent with no change in what is happening. I'm using a master page to design the parent page, but not the child page.

Please let me know if you have any fix ideas, I'd appreciate it.


Here is my javascript:

onclick="showModalDialog('AddPQAEval.aspx?ProjID=5 ', 'cal', 'dialogWidth:800px; dialogHeight:800px; dialogLeft:10px; dialogTop:10px; status:no;');"
Oct 16 '06 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 1,208
i guess i am not fully understanding it or your not posting enough code.

the new window pops up (an upload or something of the such) when you click submit you want this window to upload the file or submit the file which ever then close.

if this is correct will need some more of your code

function closewin() {'','_parent','');
win = top;
win.opener = top;

this is a function i wrote for closing a window without confirmation. if this helps any.
Oct 16 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.