G Guest Dec 12, 2004 #1 Hi to all i want to load page on iFrame when i fire some events any ideas?? thanks
K Ken Dopierala Jr. Dec 12, 2004 #2 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.
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.