1

I am having a parent page from which I am opening another page in a modal popup window using "showModalDialog" javascript function, the page is opening correctly in a modal popup window, but the problem is that, when I click on any <aspx:Button> in the modal popup page, the page again gets opened in a new browser window, while in the modal popup window, it is still open.

Any body knows why this is happening ?

I have also attached a sample solution for this containing the least amount of code required to produce the problem:

http://rapidshare.com/files/435608108/ShowModalDialogProblem.rar

Any other way to solve this problem is also appreciated.

1 Answer 1

3

Just add the following in the <head> section of your aspx page:

<base target=_self>
Sign up to request clarification or add additional context in comments.

1 Comment

I found this line somewhere on net, but didn't give attention to it. Thanks a lot!!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.