[help]change content in another frame

G

Guest

I build a webpage with two frames(contents and main), I build a aspx in main
frame, which has a Button webcontrol,
the problem is that :how can I change webpage in contents frame when the
Button_click event is active?
thanks
 
G

Guest

I did something similar recently with Ifame, but this should not matter here.

try the following:

declare the fame as running at server:
<frame ... runat="Server" id="contentsFrame">



//in code behind declare
protected System.Web.UI.HtmlControls.HtmlGenericControl contentsFrame;


//button click event handler
Button_Click_Handler(Object sender,...)
{
contentsFrame.Attributes["src"] = "....some url....";
}


HTH
Michał
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top