Disposing "parentform"

  • Thread starter Thread starter Ger
  • Start date Start date
G

Ger

Hi,
I use vb2003 on sbs2003 with SQL2000.

I have a form with IEWebControls. Under the MultiPage I have some
aspx-files, which are selected in an iFrame.
In the codebehind I want to dispose not only this MultiPage-aspx, but the
"Parent" too? How can I accomplish this?

Any help is appreciated,

regards, Ger.
 
Ger,

There is nothing to dispose because a webpage object is stateless by
default.

It is gone as soon as it is send.

Cor
 
Cor, thank you

Your answer makes sense, but the remaining question (just interesting) is:
why Dispose is a method in Webforms anyway ?

regards and a good 2008, Ger.
 
Cor,

I was too fast with the first answer. The problem I have is as follows: when
I click a button (within the aspx in the iFrame) and set the following in
codebehind:
Response.Redirect("Main.aspx") to refresh with the Mainpage, this Mainpage
appears in the iFrame. Of course my intention is to refresh the WHOLE page
with this Redirect, so inclusive the "parentform" of the iFrame. Any solution
?

regards, Ger.
 
Ger,

Why are you redirecting the Mainpage, this means a new mainpage. However why
using a Iframe, the ASPX method starting in 2005 assumes that you are using
masterpages and normal pages, that is much easier than the often hard to
control IFrame. I advice you to have a look at the masterpage.

Cor
 
Back
Top