<?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>Tue, 06 Jan 2009 20:33:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Dinesh Verma</title>
		<link>http://www.techtoolblog.com/archives/adding-a-javascript-confirm-alert-to-a-net-checkbox-control-in-a-gridview#comment-90165</link>
		<dc:creator>Dinesh Verma</dc:creator>
		<pubDate>Wed, 19 Nov 2008 05:14:49 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/adding-a-javascript-confirm-alert-to-a-net-checkbox-control-in-a-gridview#comment-90165</guid>
		<description>Same problem is facing .....
If anyone have solution then give me response.</description>
		<content:encoded><![CDATA[<p>Same problem is facing &#8230;..<br />
If anyone have solution then give me response.</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>
