2

I am still learning ASP.NET and I am trying to open a page in the same window. I only succeeded in opening the page in another tab, but I want the current window to change to the next.

this is my code.

<asp:Button ID="buttonRegistreerHier" runat="server"
            CommandName="MoveNext" Text="Registreer hier!!" 
            OnClick="buttonRegistreerHier_Click"
            OnClientClick="window.open('RegistratieForm.aspx', 'OtherPage');" 
            PostBackUrl="~/RegistratieForm.aspx" />
4

2 回答 2

4

尝试window.location.href='RegistratieForm.aspx'代替window.open.

于 2013-10-25T13:47:35.823 回答
-3

伙计,我不知道。但是看看这个很棒的 youtube 视频教程->“kudvenkat”那是频道名称。清晰直接的教程,虽然不是那么“酷”。

于 2013-10-25T14:27:44.853 回答