in short, you can't.... you're trying to do something that's client side,
and the code behind is server side. To develop the application these two
concepts need to remain clear, even though .net tries to blur them a bit by
making all the controls it creates on the design view server side.

The easist way to do it from say, an even handler is to have something like
this:

Dim someEventHandler (....) handles ....

Dim szScript as String
szString = "<SCRIPT language=javascript>" & vbNewLine
szString = "
parent.YourTargetFrameName.location.href=YourNewLo cation.aspx" & vbNewLine
szString = "</SCRIPT>"
RegisterStartupScript ("SomeScriptName", szScript)

End Dim

What the code does is take the string, szString, that's compiled and inserts
that into client side script so that the page can access cross frames when
the page is sent from the server to the client for client execution.

Remember that the client knows what frames exist and any one time, the
server does not, hence the need to step over to javascript.

"MSalhi" <moez_salhi@yahoo.fr> wrote in message
news:053f01c349dd$e4dd8a30$a501280a@phx.gbl...
> I'm developping a WebForms application in Visual
> Studio .Net. This application is based on a frameset and
> I'd like to know how to access another frame and load
> a .aspx page in it using code behind (vb .net) but not
> using javascript nor html code. I found that
> using 'Response.Redirect("page.aspx")' didn't satisfy my
> need because it loads the page on it self frame. I'll be
> thankful if you tell me how to solve this problem using
> code behind with vb .net.