<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Master Pages, AJAX, and Javascript</title>
	<atom:link href="http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-10292/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-10292/</link>
	<description>The Enterprise Application Platform</description>
	<lastBuildDate>Mon, 25 Jan 2010 17:00:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: David</title>
		<link>http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-10292/comment-page-1/#comment-1938</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 25 Jan 2010 17:00:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-2-10292/#comment-1938</guid>
		<description>In the following scenario with your TemplateMaster &quot;fix&quot; the &quot;BtnLogin_Click&quot; event does NOT get fired and EmailAddress.Text always equals String.Empty on PostBack.

MasterPage:


 





    
            
    



ContentPage:






</description>
		<content:encoded><![CDATA[<p>In the following scenario with your TemplateMaster &#8220;fix&#8221; the &#8220;BtnLogin_Click&#8221; event does NOT get fired and EmailAddress.Text always equals String.Empty on PostBack.</p>
<p>MasterPage:</p>
<p>ContentPage:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cam</title>
		<link>http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-10292/comment-page-1/#comment-1937</link>
		<dc:creator>Cam</dc:creator>
		<pubDate>Fri, 20 Nov 2009 17:10:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-2-10292/#comment-1937</guid>
		<description>You might consider explicitly setting the ID&#039;s on those checkboxes.  If you did that I think things would work as desired even with the AssignIDs call.  However, removing the AssignIDs call should be fine as long as you don&#039;t turn on Trace.</description>
		<content:encoded><![CDATA[<p>You might consider explicitly setting the ID&#8217;s on those checkboxes.  If you did that I think things would work as desired even with the AssignIDs call.  However, removing the AssignIDs call should be fine as long as you don&#8217;t turn on Trace.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yauhen</title>
		<link>http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-10292/comment-page-1/#comment-1936</link>
		<dc:creator>Yauhen</dc:creator>
		<pubDate>Fri, 20 Nov 2009 12:31:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-2-10292/#comment-1936</guid>
		<description>Good work. I have a lot of pages from old project copy pasted without master pages. When I have tried to extract common part of course all failed. Then I hae added you solution. Mostly works good. But some heavy control (based on datagrid) that have dynamic check box colums have problems. Generated Client Ids in browser differs from values that check boxes have on server side. So on post back checked values set incorrectly (because check boxes try to extract it from view state). May be thes check boxes are created in incorrect place (I have no time to investigate because as I asiad this control is very heavy with a lot of code). I have found that removing AssignIDs call fix this problem..</description>
		<content:encoded><![CDATA[<p>Good work. I have a lot of pages from old project copy pasted without master pages. When I have tried to extract common part of course all failed. Then I hae added you solution. Mostly works good. But some heavy control (based on datagrid) that have dynamic check box colums have problems. Generated Client Ids in browser differs from values that check boxes have on server side. So on post back checked values set incorrectly (because check boxes try to extract it from view state). May be thes check boxes are created in incorrect place (I have no time to investigate because as I asiad this control is very heavy with a lot of code). I have found that removing AssignIDs call fix this problem..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lewis</title>
		<link>http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-10292/comment-page-1/#comment-1933</link>
		<dc:creator>Lewis</dc:creator>
		<pubDate>Wed, 05 Aug 2009 19:02:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-2-10292/#comment-1933</guid>
		<description>Somehow VS messed up everything. I recreate the file and everything is fine now. However I ran into two new problems. One is that button event won&#039;t be fired if the button is on the master page. The second one is that a dropdownlist with 50 items will always return selectedindex=1 somehow in my projects. I have 3 other dropdownlist without any problem. I have to change the type to htmlselect in order for it to work right. It is a great control. Thanks.</description>
		<content:encoded><![CDATA[<p>Somehow VS messed up everything. I recreate the file and everything is fine now. However I ran into two new problems. One is that button event won&#8217;t be fired if the button is on the master page. The second one is that a dropdownlist with 50 items will always return selectedindex=1 somehow in my projects. I have 3 other dropdownlist without any problem. I have to change the type to htmlselect in order for it to work right. It is a great control. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cam</title>
		<link>http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-10292/comment-page-1/#comment-1931</link>
		<dc:creator>Cam</dc:creator>
		<pubDate>Sat, 18 Jul 2009 03:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-2-10292/#comment-1931</guid>
		<description>Are you using TemplateMaster directly without deriving your own class from it?  Also a typo could easily cause that problem.</description>
		<content:encoded><![CDATA[<p>Are you using TemplateMaster directly without deriving your own class from it?  Also a typo could easily cause that problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lewis</title>
		<link>http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-10292/comment-page-1/#comment-1930</link>
		<dc:creator>Lewis</dc:creator>
		<pubDate>Fri, 17 Jul 2009 17:22:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-2-10292/#comment-1930</guid>
		<description>Do you know why I get  &quot;is not allowed here because it does not extend class &#039;System.Web.UI.MasterPage&#039;.&quot; when I try to use the derived MasterPage? I am using VS2008+sp1.

Thanks,
Lewis</description>
		<content:encoded><![CDATA[<p>Do you know why I get  &#8220;is not allowed here because it does not extend class &#8216;System.Web.UI.MasterPage&#8217;.&#8221; when I try to use the derived MasterPage? I am using VS2008+sp1.</p>
<p>Thanks,<br />
Lewis</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cam</title>
		<link>http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-10292/comment-page-1/#comment-1857</link>
		<dc:creator>Cam</dc:creator>
		<pubDate>Thu, 21 May 2009 05:18:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-2-10292/#comment-1857</guid>
		<description>Thanks Ritchie, I finally got the code updated using this great code formatter: http://www.manoli.net/csharpformat/

The code now works with very late dynamic rendering with .Net tracing enabled.  However, under certain circumstances I still get tracing errors when pageOutput is enabled.  Again, I suspect that this will only happen with dynamic rendering very late in the page life-cycle.

Cam</description>
		<content:encoded><![CDATA[<p>Thanks Ritchie, I finally got the code updated using this great code formatter: <a href="http://www.manoli.net/csharpformat/" rel="nofollow">http://www.manoli.net/csharpformat/</a></p>
<p>The code now works with very late dynamic rendering with .Net tracing enabled.  However, under certain circumstances I still get tracing errors when pageOutput is enabled.  Again, I suspect that this will only happen with dynamic rendering very late in the page life-cycle.</p>
<p>Cam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ritchie Annand</title>
		<link>http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-10292/comment-page-1/#comment-1856</link>
		<dc:creator>Ritchie Annand</dc:creator>
		<pubDate>Mon, 11 May 2009 16:58:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-2-10292/#comment-1856</guid>
		<description>We do generate some controls dynamically, but definitely early on in the process. If it still behaves well assigning the IDs later in the process, then props to you :)</description>
		<content:encoded><![CDATA[<p>We do generate some controls dynamically, but definitely early on in the process. If it still behaves well assigning the IDs later in the process, then props to you <img src='http://www.netquarry.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cam</title>
		<link>http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-10292/comment-page-1/#comment-1855</link>
		<dc:creator>Cam</dc:creator>
		<pubDate>Thu, 07 May 2009 20:57:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-2-10292/#comment-1855</guid>
		<description>Sorry for the delay.  I&#039;ve got it working in production now on a couple of sites.  Your solution was definitely in the right direction, but I found that for our platform I needed to modify it so that the id&#039;s are assigned later in the page life-cycle.  Our platform does a lot of dynamic generation of controls so that&#039;s probably why I found I needed to do that and you didn&#039;t.  

I&#039;ll try to post the updated source today or tomorrow.</description>
		<content:encoded><![CDATA[<p>Sorry for the delay.  I&#8217;ve got it working in production now on a couple of sites.  Your solution was definitely in the right direction, but I found that for our platform I needed to modify it so that the id&#8217;s are assigned later in the page life-cycle.  Our platform does a lot of dynamic generation of controls so that&#8217;s probably why I found I needed to do that and you didn&#8217;t.  </p>
<p>I&#8217;ll try to post the updated source today or tomorrow.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ritchie Annand</title>
		<link>http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-10292/comment-page-1/#comment-1854</link>
		<dc:creator>Ritchie Annand</dc:creator>
		<pubDate>Mon, 04 May 2009 20:04:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-2-10292/#comment-1854</guid>
		<description>Glad to hear it could apply to a .NET 2.0 issue as well.

Let me know if the changes work, or if you find an even better way to accomplish it than my stubbly hack.

Thanks, Cam, and thanks for the trick in the first place :)</description>
		<content:encoded><![CDATA[<p>Glad to hear it could apply to a .NET 2.0 issue as well.</p>
<p>Let me know if the changes work, or if you find an even better way to accomplish it than my stubbly hack.</p>
<p>Thanks, Cam, and thanks for the trick in the first place <img src='http://www.netquarry.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
