2

I have two pages A.aspx and B.aspx

Page A.aspx opens B.aspx as modal popup by javascript function window.showModalDialog("B.aspx");

Page B.aspx has two text boxes (Login, Password), <asp:Button> control and button click event in server code.

Problem is when I click on the submit button it opens me B.aspx page in new third window

How is it possible to not open new window on submit button. Thanks!

ihorko
  • 6,855
  • 25
  • 77
  • 116

2 Answers2

8

simply in the modal window put this to the <HEAD>

<BASE target="_self">

Madhur Ahuja
  • 22,211
  • 14
  • 71
  • 124
0

move B.aspx code to B.ascx (user control)

idm
  • 1,728
  • 2
  • 19
  • 26