Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / May 2008

Tip: Looking for answers? Try searching our database.

Body Onload will not work with MasterPages

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bill - 16 May 2008 15:45 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.