<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Marker Studio - Full Service Digital Agency &#187; jquery</title>
	<atom:link href="http://www.markerstudio.com/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markerstudio.com</link>
	<description>Full Service Digital Agency</description>
	<lastBuildDate>Tue, 17 Jan 2012 19:05:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Submit once asp.net buttons with validation group support</title>
		<link>http://www.markerstudio.com/technical/2009/11/submit-once-asp-net-buttons-with-validation-group-support/</link>
		<comments>http://www.markerstudio.com/technical/2009/11/submit-once-asp-net-buttons-with-validation-group-support/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 08:19:07 +0000</pubDate>
		<dc:creator>Marker</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.markerstudio.com/?p=2112</guid>
		<description><![CDATA[Got buttons you don’t want the user to click twice, want to disable them site-wide and have support for .net validation groups? Here’s the code, we use a class to do the selection and the rel attribute to help define the validation group so we can only hide the button if the form has been [...]]]></description>
			<content:encoded><![CDATA[<p>Got buttons you don’t want the user to click twice, want to disable them site-wide and have support for .net validation groups?</p>
<p>Here’s the code, we use a class to do the selection and the rel attribute to help define the validation group so we can only hide the button if the form has been validated successfully.</p>
<p>&lt;asp:Button ID=&#8221;btnProceed&#8221; runat=&#8221;server&#8221; <strong>CssClass=&#8221;submit-once&#8221;</strong> rel=&#8221;UserProfile&#8221; ValidationGroup=&#8221;UserProfile&#8221;  Text=&#8221;Proceed&#8221; OnClick=&#8221;btnProceed_Click&#8221;  /&gt;</p>
<p>And here&#8217;s the sprinkling of jquery you will need (stick it in you base master page for example).</p>
<p>$(document).ready(function() {</p>
<p>// ensure that buttons are only clicked once with this class</p>
<p>$(&#8220;.submit-once&#8221;).click(function() {</p>
<p>if (Page_ClientValidate($(this).attr(&#8220;rel&#8221;))) {</p>
<p>$(this).after(&#8220;Please wait..&#8221;).hide();</p>
<p>}</p>
<p>});</p>
<p>});</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markerstudio.com/technical/2009/11/submit-once-asp-net-buttons-with-validation-group-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

