IFrame problem

  • Thread starter Thread starter Steve Peterson
  • Start date Start date
S

Steve Peterson

Hello

I have an .aspx page that has an Iframe that embeds another .aspx page. In
the "embedded" .aspx page that is loaded, I have a button. When the user
clicks on the button, I do some control validation and a couple of
calculations. If all is OK I need to go to another .aspx page.

However, the problem I have is "busting out" of the embedded .aspx page so
that the new page is loaded over the "parent" .aspx page. I know that if
this were a hyperlink, I could simply use the target="_top" attribute. But
since I need a button to handle the validation code, I don't have that
available.

Has anyone had this problem before or know how to get around it?

TIA
Steve
 
Remember, when your user clicks that button, he's really submitting a
form. ASP.NET just makes it appear to you (the developer) that you
have an event hooked up to that button. You can put a
targed="whatever" into your <form> tag and it should behave as you
want.

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/
 
Back
Top