Ask a Question related to ASP.NET General, Design and Development.
-
dj Bass #1
Re: Using frameset : how to access another frame with .Net
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.
dj Bass Guest
-
cannot access frame
Dear Common Wisdom: I have a web page with three frames <http://www.imml.gr/webpages/homeall.htm>, but when I try to edit in Contribute it only... -
linking on non frame page to a frame in a frame p
Hello all, I'm doing a job for a friend. Is there a way to load a link from a non-frame page into a frame in a frame based page? Go to:... -
file to frame access
hi friend i have some problem in flash i have 2 flash file both are publish to html file, one file having 8 buttons 2nd file have 8... -
"<table></table>" and "<frameset><frame></frame></frameset>" in perl/tk
Dear my friends... Anybody would be so kind telling me what is similar in perl/tk to arrange the location of a form written in perl/tk? I want a... -
Frame Set Problem: Cannot Resize Frame Rows with Mouse
Hi, I cannot resize my frame borders with the mouse. I created a Fixed Top, Nested Left Frame set. I added my assets into the top frame, and...



Reply With Quote

