Or K
Or K

Reputation: 335

redirect from html to another page in aspx

i include html page in aspx:

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <iframe src="HTMLPage.htm" frameborder="0" style="width: 184px" ></iframe>
</asp:Content>

in the html page there is a button and when i press it i want to go to another page.

window.location ="../Doh/doh.aspx?";

the problem is that the new page open in the iframe in the aspx page, and i want that it instead of the first aspx page.

can you help me?

thanks

Upvotes: 0

Views: 161

Answers (2)

Murali Murugesan
Murali Murugesan

Reputation: 22619

Try accessing parent's window and set url

window.parent.window.location.href = '../Doh/doh.aspx?'

Upvotes: 1

Armen Abrami
Armen Abrami

Reputation: 224

Try:

parent.window.location.href = "../Doh/doh.aspx?";

Upvotes: 1

Related Questions