开发者

window.showModalDialog and postback button

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:Bu开发者_如何转开发tton> 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!


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

<BASE target="_self">


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜