<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Adding a Javascript Confirm Alert to a .NET Checkbox control in a GridView</title>
	<link>http://www.techtoolblog.com/archives/adding-a-javascript-confirm-alert-to-a-net-checkbox-control-in-a-gridview</link>
	<description></description>
	<pubDate>Wed, 08 Feb 2012 12:05:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: cool Jean Paul Gaultier eyeglasses</title>
		<link>http://www.techtoolblog.com/archives/adding-a-javascript-confirm-alert-to-a-net-checkbox-control-in-a-gridview#comment-95710</link>
		<dc:creator>cool Jean Paul Gaultier eyeglasses</dc:creator>
		<pubDate>Wed, 25 May 2011 07:42:15 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/adding-a-javascript-confirm-alert-to-a-net-checkbox-control-in-a-gridview#comment-95710</guid>
		<description>thanks for the information , Now I know about foursquare, your blog is good, I like it</description>
		<content:encoded><![CDATA[<p>thanks for the information , Now I know about foursquare, your blog is good, I like it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viagra online</title>
		<link>http://www.techtoolblog.com/archives/adding-a-javascript-confirm-alert-to-a-net-checkbox-control-in-a-gridview#comment-72838</link>
		<dc:creator>Viagra online</dc:creator>
		<pubDate>Thu, 05 Aug 2010 18:16:19 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/adding-a-javascript-confirm-alert-to-a-net-checkbox-control-in-a-gridview#comment-72838</guid>
		<description>Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fallenrogue</title>
		<link>http://www.techtoolblog.com/archives/adding-a-javascript-confirm-alert-to-a-net-checkbox-control-in-a-gridview#comment-4050</link>
		<dc:creator>fallenrogue</dc:creator>
		<pubDate>Thu, 30 Nov 2006 22:28:19 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/adding-a-javascript-confirm-alert-to-a-net-checkbox-control-in-a-gridview#comment-4050</guid>
		<description>I think I've got an easier way! Don't validate the checkbox at all. Instead, validate the form submission, which is what you're wanting to validate, right? So, just drop the following on your form tag...

onsubmit="return confirm('are you sure you want to delete this item?');"

and you're in business. Of couse, you could use a function to look and see if it's coming from the right control and all that jazz, this is just to illustrate my point. If you're using a master page, then just use addEventListener or attachEvent on the form. I think that would be a lot cleaner and easier to troubleshoot than manually calling postbacks. That's just my two cents. :) Thanks!</description>
		<content:encoded><![CDATA[<p>I think I&#8217;ve got an easier way! Don&#8217;t validate the checkbox at all. Instead, validate the form submission, which is what you&#8217;re wanting to validate, right? So, just drop the following on your form tag&#8230;</p>
<p>onsubmit=&#8221;return confirm(&#8217;are you sure you want to delete this item?&#8217;);&#8221;</p>
<p>and you&#8217;re in business. Of couse, you could use a function to look and see if it&#8217;s coming from the right control and all that jazz, this is just to illustrate my point. If you&#8217;re using a master page, then just use addEventListener or attachEvent on the form. I think that would be a lot cleaner and easier to troubleshoot than manually calling postbacks. That&#8217;s just my two cents. <img src='http://www.techtoolblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pierres Service &#187; Blog Archive &#187; Adding a Javascript Confirm Alert to a .NET Checkbox control in a &#8230;</title>
		<link>http://www.techtoolblog.com/archives/adding-a-javascript-confirm-alert-to-a-net-checkbox-control-in-a-gridview#comment-3957</link>
		<dc:creator>Pierres Service &#187; Blog Archive &#187; Adding a Javascript Confirm Alert to a .NET Checkbox control in a &#8230;</dc:creator>
		<pubDate>Wed, 29 Nov 2006 09:48:17 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/adding-a-javascript-confirm-alert-to-a-net-checkbox-control-in-a-gridview#comment-3957</guid>
		<description>[...] Adding a Javascript Confirm Alert to a .NET Checkbox control in a &#8230;    NET is adding a javascript confirm box when a user selects a checkbox control and have a postback event fired. The dopostback event is tied to the &#8230; var agree=confirm(Â“Are you sure you want to delete this quote?Â”); if (agree) { &#8230;Read more: here [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Adding a Javascript Confirm Alert to a .NET Checkbox control in a &#8230;    NET is adding a javascript confirm box when a user selects a checkbox control and have a postback event fired. The dopostback event is tied to the &#8230; var agree=confirm(Â“Are you sure you want to delete this quote?Â”); if (agree) { &#8230;Read more: here [&#8230;]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

