<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Master Pages, Themes and Navigation Controls</title><link>http://forums.asp.net/139.aspx</link><description>Discussions of MasterPages, Themes, and other page-related features. &lt;A href="http://aspadvice.com/SignUp/list.aspx?l=164&amp;amp;c=30" target=_blank&gt;Email List&lt;/A&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: asp net onload event problem</title><link>http://forums.asp.net/thread/2245067.aspx</link><pubDate>Thu, 20 Mar 2008 13:19:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2245067</guid><dc:creator>motoBeast</dc:creator><author>motoBeast</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2245067.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2245067</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;koese:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;try both the onLoan events on the mater page and avoide on content page&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;BODY onLoad=&amp;quot;javascript:alert(&amp;#39;First Action&amp;#39;);alert(&amp;#39;Second Action&amp;#39;);&amp;quot;&amp;gt; &lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;i already tried that but if i do that it walways shows a javascript
error in the masterpage, i don&amp;#39;t know why...it says it has an objecto
required but i dont know what object. i can&amp;#39;t debug it. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: asp net onload event problem</title><link>http://forums.asp.net/thread/2241455.aspx</link><pubDate>Wed, 19 Mar 2008 02:22:27 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2241455</guid><dc:creator>MorningZ</dc:creator><author>MorningZ</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2241455.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2241455</wfw:commentRss><description>&lt;p&gt;That will only work is MS Ajax is installed&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;d recommend using JavaScript to attach the load events, see this excellent js function to use:&lt;/p&gt;&lt;p&gt;&lt;a href="http://simonwillison.net/2004/May/26/addLoadEvent/"&gt;http://simonwillison.net/2004/May/26/addLoadEvent/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: asp net onload event problem</title><link>http://forums.asp.net/thread/2241309.aspx</link><pubDate>Tue, 18 Mar 2008 23:20:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2241309</guid><dc:creator>koese</dc:creator><author>koese</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2241309.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2241309</wfw:commentRss><description>&lt;p&gt;try both the onLoan events on the mater page and avoide on content page&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;BODY onLoad=&amp;quot;javascript:alert(&amp;#39;First Action&amp;#39;);alert(&amp;#39;Second Action&amp;#39;);&amp;quot;&amp;gt; &lt;/p&gt;</description></item><item><title>Re: asp net onload event problem</title><link>http://forums.asp.net/thread/2241308.aspx</link><pubDate>Tue, 18 Mar 2008 23:18:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2241308</guid><dc:creator>NavaidAkhtar</dc:creator><author>NavaidAkhtar</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2241308.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2241308</wfw:commentRss><description>&lt;p&gt;Hmm&lt;/p&gt;
&lt;p&gt;You can use you Child Page onload too.&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;script&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;type&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;text/javascript&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;font size="2"&gt;Sys.Application.add_load(your function);&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;script&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#000000"&gt;You have to use this line in the content page. similarly you can also use add_UnLoad, and so on...&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>asp net onload event problem</title><link>http://forums.asp.net/thread/2241281.aspx</link><pubDate>Tue, 18 Mar 2008 22:54:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2241281</guid><dc:creator>motoBeast</dc:creator><author>motoBeast</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2241281.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2241281</wfw:commentRss><description>i don&amp;#39;t know if this problem should be here but here it is:
&lt;br /&gt; &lt;p&gt;i have a asp.net site and with a masterpage and many content pages. i
&lt;br /&gt; have a problem using Google Maps JavaScript API. in content page i use
&lt;br /&gt; &amp;lt;body onload=&amp;quot;load()&amp;quot; onunload=&amp;quot;GUnload()&amp;quot;&amp;gt; and it use to work. The
&lt;br /&gt; problem is that i had to put javascript functions in masterpage and
&lt;br /&gt; used &amp;lt;body id=&amp;quot;mBody&amp;quot; onload=&amp;quot;javascript:preloader();&amp;quot;. Now the google
&lt;br /&gt; maps API doesn&amp;#39;t work because of the 2 onload events(in masterpage and
&lt;br /&gt; contentpage). How to solve this? I looked up for solutions:
&lt;br /&gt; &lt;/p&gt;&lt;p&gt;Set your masterpage body tag to:
&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&amp;lt;body id=&amp;quot;mBody&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
&lt;br /&gt; &lt;/p&gt;&lt;p&gt;Then add this on any page that uses the master and wants to access the
&lt;br /&gt; body tag:
&lt;br /&gt; &lt;/p&gt;&lt;p&gt;public void Page_Load(Object sender, EventArgs e)
&lt;br /&gt; {
&lt;br /&gt; //Inject onload and unload
&lt;br /&gt; HtmlGenericControl body =
&lt;br /&gt; (HtmlGenericControl)Master.FindControl(&amp;quot;mBody&amp;quot;);
&lt;br /&gt; body.Attributes.Add(&amp;quot;onload&amp;quot;, &amp;quot;Function1()&amp;quot;);
&lt;br /&gt; body.Attributes.Add(&amp;quot;onunload&amp;quot;, &amp;quot;Function2()&amp;quot;);
&lt;br /&gt; &lt;/p&gt;&lt;div id="qhide_246518" style="display:block;" class="qt"&gt;}
&lt;br /&gt; &lt;br /&gt;&lt;/div&gt;&lt;p&gt;but this just work if there is any onload event already in masterpage.
&lt;/p&gt;&lt;p&gt;also tried to put onload event of google map in a table like this &amp;lt;table onload=&amp;quot;load()&amp;quot;....but doesnt work.&amp;nbsp;&lt;/p&gt;&lt;p&gt;can someone get a solution please?
&lt;br /&gt; &lt;/p&gt;&lt;p&gt;thanks in advance
  &lt;/p&gt;</description></item></channel></rss>