我仍在学习ASP.NET,并且试图在同一窗口中打开一个页面。我只成功在另一个选项卡中打开页面,但我希望当前窗口更改为下一个窗口。
这是我的代码。
<asp:Button ID="buttonRegistreerHier" runat="server"
CommandName="MoveNext" Text="Registreer hier!!"
OnClick="buttonRegistreerHier_Click"
OnClientClick="window.open('RegistratieForm.aspx', 'OtherPage');"
PostBackUrl="~/RegistratieForm.aspx" />
尝试window.location.href='RegistratieForm.aspx'
代替window.open
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句