IFrame

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi to all
i want to load page on iFrame when i fire some events
any ideas??
thanks
 
Hi,

Here is how I do it. In my HTML I have a javascript function for each
button in my nav menu:

function LoadNewPage() {
parent.document.getElementById("ifMain").src = "NewPage.aspx";
}

"ifMain" is the name of the frame where I'm loading the new page. Then in
the code behind of my nav IFrame aspx page I have this:

Button1.Attributes.Add("onclick", "LoadNewPage(); return false;")

Now when the user clicks Button1 in my nav IFrame the page in my main IFrame
will load the NewPage.aspx file. Good luck! Ken.
 

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

Back
Top