I am new to .net and have tried to use a MasterPage with a new project.
I have this code in the content asp page.... NOT the masterpage.
body onload='<%= (panel_to_show == "panel1")?"document.formc.pA5D.focus();":"" %>'>
I display links at the top of the content page that will allow you to switch between DIV tag.
With out using the Masterpage, the code works great.
Using the masterpage...the code does not run.
How can I get this onload even to fire?
Thanks
Bil
From http://www.developmentnow.com/g/8_0_0_0_0_0/dotnet-framework-aspnet.ht
Patrice - 16 May 2008 16:29 GMT
Where in the content page ? The content page is not supposed to contains
this tag as this is part of the master page.
Try to use view source and see if the HTML rendered code is correct but it
lloks like to me you are rendering a body tag inside another bodt tag (and
the inner body tag is likely ignored)...
--
Patrice
"bill" <stock16@hotmail.com> a écrit dans le message de groupe de discussion
: ada6f04d-ea2c-4c21-b394-376109e78247@developmentnow.com...
> I am new to .net and have tried to use a MasterPage with a new project.
[quoted text clipped - 20 lines]
> Posted via DevelopmentNow.com Groups
> http://www.developmentnow.com