IFrame

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
Back
Top