<?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: Why my ASP.NET AJAX forms are never submitted twice</title>
	<atom:link href="http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/feed/" rel="self" type="application/rss+xml" />
	<link>http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/</link>
	<description>ASP.NET and AJAX code, ideas, and examples.</description>
	<lastBuildDate>Thu, 11 Mar 2010 18:05:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-35269</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Wed, 13 May 2009 00:48:27 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-35269</guid>
		<description>Thanks for pointing that out, Brian.  I updated the post.</description>
		<content:encoded><![CDATA[<p>Thanks for pointing that out, Brian.  I updated the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Arnold</title>
		<link>http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-35268</link>
		<dc:creator>Brian Arnold</dc:creator>
		<pubDate>Tue, 12 May 2009 21:57:55 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-35268</guid>
		<description>I realize this is an old post, but I found it in a search and while it was really super helpful, I thought I&#039;d offer a tip.

In jQuery 1.2 (which was current at time of this publishing) the old XPath selector syntax such as your input[@type=submit] was functional but deprecated. In jQuery 1.3, it flat-out won&#039;t work with that at-symbol in there. If you drop the at, it works as expected. Might be worth updating the post to be clear on that subtle distinction. :)</description>
		<content:encoded><![CDATA[<p>I realize this is an old post, but I found it in a search and while it was really super helpful, I thought I&#8217;d offer a tip.</p>
<p>In jQuery 1.2 (which was current at time of this publishing) the old XPath selector syntax such as your input[@type=submit] was functional but deprecated. In jQuery 1.3, it flat-out won&#8217;t work with that at-symbol in there. If you drop the at, it works as expected. Might be worth updating the post to be clear on that subtle distinction. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kirillfox</title>
		<link>http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-32788</link>
		<dc:creator>kirillfox</dc:creator>
		<pubDate>Fri, 24 Oct 2008 22:43:12 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-32788</guid>
		<description>wow you the best! thanx a lot.</description>
		<content:encoded><![CDATA[<p>wow you the best! thanx a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-32099</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Tue, 02 Sep 2008 20:28:30 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-32099</guid>
		<description>Link buttons are a completely different animal.  There&#039;s no standard &lt;em&gt;disabled&lt;/em&gt; property for &lt;a&gt; elements.

What you can do is add some logic that causes the link to add an onclick=&quot;return false;&quot; event handler to itself.

Also, while you&#039;re building your own control, make sure to do something on the server side that will double check for duplicate entries by users with JavaScript disabled (or who have purposely circumvented the client-side mechanism).</description>
		<content:encoded><![CDATA[<p>Link buttons are a completely different animal.  There&#8217;s no standard <em>disabled</em> property for &lt;a&gt; elements.</p>
<p>What you can do is add some logic that causes the link to add an onclick=&#8221;return false;&#8221; event handler to itself.</p>
<p>Also, while you&#8217;re building your own control, make sure to do something on the server side that will double check for duplicate entries by users with JavaScript disabled (or who have purposely circumvented the client-side mechanism).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Orry Rotem</title>
		<link>http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-32098</link>
		<dc:creator>Orry Rotem</dc:creator>
		<pubDate>Tue, 02 Sep 2008 19:54:49 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-32098</guid>
		<description>Hi Dave,

I have been developing a custom button (inherited from a link button) that should prevent a duplicate post back for both full or partial post backs.

Would you use the same approach for a control that is not a true button?</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>I have been developing a custom button (inherited from a link button) that should prevent a duplicate post back for both full or partial post backs.</p>
<p>Would you use the same approach for a control that is not a true button?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Walsh</title>
		<link>http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-30515</link>
		<dc:creator>Steve Walsh</dc:creator>
		<pubDate>Tue, 17 Jun 2008 13:08:42 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-30515</guid>
		<description>I had the same problem as tmc until I put the buttons inside an UpdatePanel, then it&#039;s works just fine.</description>
		<content:encoded><![CDATA[<p>I had the same problem as tmc until I put the buttons inside an UpdatePanel, then it&#8217;s works just fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tmc</title>
		<link>http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-27187</link>
		<dc:creator>tmc</dc:creator>
		<pubDate>Tue, 27 May 2008 22:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-27187</guid>
		<description>I just tried it and it didn&#039;t seem to work. I was sure that would solve it.

Oh well... maybe I&#039;ll just redesign my page to only have one button. I might be able to get away with that.

Thanks for your help though.

This is a GREAT site and I absolutely LUV PostBackRitalin.

Maybe you can include this set of functionality in there soon.

Thanks again.</description>
		<content:encoded><![CDATA[<p>I just tried it and it didn&#8217;t seem to work. I was sure that would solve it.</p>
<p>Oh well&#8230; maybe I&#8217;ll just redesign my page to only have one button. I might be able to get away with that.</p>
<p>Thanks for your help though.</p>
<p>This is a GREAT site and I absolutely LUV PostBackRitalin.</p>
<p>Maybe you can include this set of functionality in there soon.</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-27181</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Tue, 27 May 2008 22:08:08 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-27181</guid>
		<description>I would have expected it to work that way.

Try using a ScriptManagerProxy on the content page, and include the ScriptReference there instead of on the master page.</description>
		<content:encoded><![CDATA[<p>I would have expected it to work that way.</p>
<p>Try using a ScriptManagerProxy on the content page, and include the ScriptReference there instead of on the master page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tmc</title>
		<link>http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-27179</link>
		<dc:creator>tmc</dc:creator>
		<pubDate>Tue, 27 May 2008 21:57:36 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-27179</guid>
		<description>I downloaded the sample for this and it ran great.

The only difference between the sample and my project is that I use a master page.

In the script manager (which must appear on the master page), I added the 
&lt;pre lang=&quot;asp&quot;&gt;    &lt;Scripts&gt;
      &lt;asp:ScriptReference Path=&quot;defaultBehaviors.js&quot; /&gt;
    &lt;/Scripts&gt;
&lt;/pre&gt;

section to the script manager, but the code still doesn&#039;t work.

What else am I missing?</description>
		<content:encoded><![CDATA[<p>I downloaded the sample for this and it ran great.</p>
<p>The only difference between the sample and my project is that I use a master page.</p>
<p>In the script manager (which must appear on the master page), I added the</p>

<div class="wp_syntax"><div class="code"><pre class="asp" style="font-family:monospace;">    <span style="color: #060; font-weight: bold;">&lt;</span>Scripts<span style="color: #060; font-weight: bold;">&gt;</span>
      <span style="color: #060; font-weight: bold;">&lt;</span>asp<span style="color: #060; font-weight: bold;">:</span>ScriptReference Path<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;defaultBehaviors.js&quot;</span> <span style="color: #060; font-weight: bold;">/&gt;</span>
    <span style="color: #060; font-weight: bold;">&lt;/</span>Scripts<span style="color: #060; font-weight: bold;">&gt;</span></pre></div></div>

<p>section to the script manager, but the code still doesn&#8217;t work.</p>
<p>What else am I missing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shane</title>
		<link>http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-19957</link>
		<dc:creator>shane</dc:creator>
		<pubDate>Mon, 21 Apr 2008 11:13:57 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-19957</guid>
		<description>But this method will not work, the update panel trigger is outside the update panel.</description>
		<content:encoded><![CDATA[<p>But this method will not work, the update panel trigger is outside the update panel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-15271</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Wed, 26 Mar 2008 15:30:41 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-15271</guid>
		<description>In your jQuery example, panelID returns an ID that looks like &quot;ctl00$cphMain$upWhatever&quot; in my site using Master Pages, even though the outputted ID on the page is &quot;ctl100_cphMain_upWhatever&quot;. So, I have to add .replace(/\$/g, &#039;_&#039;) to the end of the panelID assignment in order to replace all of the $s with _s and have jQuery be able to find it. I feel like I&#039;ve run across this issue before...</description>
		<content:encoded><![CDATA[<p>In your jQuery example, panelID returns an ID that looks like &#8220;ctl00$cphMain$upWhatever&#8221; in my site using Master Pages, even though the outputted ID on the page is &#8220;ctl100_cphMain_upWhatever&#8221;. So, I have to add .replace(/\$/g, &#8216;_&#8217;) to the end of the panelID assignment in order to replace all of the $s with _s and have jQuery be able to find it. I feel like I&#8217;ve run across this issue before&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-12844</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Wed, 12 Mar 2008 19:16:16 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-12844</guid>
		<description>Agreed.</description>
		<content:encoded><![CDATA[<p>Agreed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: W&#246;chentliche Rundablage: ASP.NET MVC, Silverlight 2, APIs, C#&#8230; &#124; Code-Inside Blog</title>
		<link>http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-12511</link>
		<dc:creator>W&#246;chentliche Rundablage: ASP.NET MVC, Silverlight 2, APIs, C#&#8230; &#124; Code-Inside Blog</dc:creator>
		<pubDate>Mon, 10 Mar 2008 19:29:49 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-12511</guid>
		<description>[...] Why my ASP.NET AJAX forms are never submitted twice [...]</description>
		<content:encoded><![CDATA[<p>[...] Why my ASP.NET AJAX forms are never submitted twice [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-12486</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Mon, 10 Mar 2008 16:46:35 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-12486</guid>
		<description>I generally try to avoid complicating my examples with too much extraneous code, so that the central topic is as clear as possible.</description>
		<content:encoded><![CDATA[<p>I generally try to avoid complicating my examples with too much extraneous code, so that the central topic is as clear as possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Prohaska</title>
		<link>http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-12481</link>
		<dc:creator>Aaron Prohaska</dc:creator>
		<pubDate>Mon, 10 Mar 2008 16:29:33 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2008/03/04/why-my-aspnet-ajax-forms-are-never-submitted-twice/#comment-12481</guid>
		<description>I&#039;ve been looking over all your examples of using buttons with ajax. I wonder why all of them leave out how to use them in combination with the validation controls.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been looking over all your examples of using buttons with ajax. I wonder why all of them leave out how to use them in combination with the validation controls.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
