Frames

  • Thread starter Thread starter André Almeida Maldonado
  • Start date Start date
A

André Almeida Maldonado

Hey guys...

I have a frameset that separate my webpage in 2 parts. When the user clicks
in a button in the frame 1, I need to reload de frame 2. How can I do ti???

P.S..: I can do it with JavaScript, but if I'm using .Net, I believe that I
don't need to use JavaScript.

Thank's
 
You will still need JS in order to work with frames. .NET doesn't support
working with frames - it's more of a client side activity rather than server
side. You could do something like the code below, but it still uses
JavaScript. IMO, it's better just to use an HTML control and save the
postback:

(aspx page)
....
<asp:button id=btnSubmit/>
....

(code behind)
Sub btnSubmit_Click(...)
Response.Write("<script
language='JavaScript'>parent.frames(1).focus();</script>")
End Sub
 
Back
Top