<?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: Using jQuery Modal Dialog Confirmation with an ASP.NET Server Control</title>
	<atom:link href="http://www.integratedwebsystems.com/2009/12/using-jquery-modal-dialog-confirmation-with-an-asp-net-server-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.integratedwebsystems.com/2009/12/using-jquery-modal-dialog-confirmation-with-an-asp-net-server-control/</link>
	<description>My Little .NET Sandbox</description>
	<lastBuildDate>Sat, 04 Feb 2012 23:11:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Nathan</title>
		<link>http://www.integratedwebsystems.com/2009/12/using-jquery-modal-dialog-confirmation-with-an-asp-net-server-control/comment-page-1/#comment-10109</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Thu, 22 Dec 2011 16:23:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.integratedwebsystems.com/?p=413#comment-10109</guid>
		<description>&lt;a href=&quot;#comment-10108&quot; rel=&quot;nofollow&quot;&gt;@aaron zheng &lt;/a&gt; haha thanks!</description>
		<content:encoded><![CDATA[<p><a href="#comment-10108" rel="nofollow">@aaron zheng </a> haha thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aaron zheng</title>
		<link>http://www.integratedwebsystems.com/2009/12/using-jquery-modal-dialog-confirmation-with-an-asp-net-server-control/comment-page-1/#comment-10108</link>
		<dc:creator>aaron zheng</dc:creator>
		<pubDate>Thu, 22 Dec 2011 10:23:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.integratedwebsystems.com/?p=413#comment-10108</guid>
		<description>thanks Nathan, You are me hero</description>
		<content:encoded><![CDATA[<p>thanks Nathan, You are me hero</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://www.integratedwebsystems.com/2009/12/using-jquery-modal-dialog-confirmation-with-an-asp-net-server-control/comment-page-1/#comment-7240</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Mon, 24 Oct 2011 16:11:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.integratedwebsystems.com/?p=413#comment-7240</guid>
		<description>&lt;a href=&quot;#comment-7237&quot; rel=&quot;nofollow&quot;&gt;@charan&lt;/a&gt; Thanks!</description>
		<content:encoded><![CDATA[<p><a href="#comment-7237" rel="nofollow">@charan</a> Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: charan</title>
		<link>http://www.integratedwebsystems.com/2009/12/using-jquery-modal-dialog-confirmation-with-an-asp-net-server-control/comment-page-1/#comment-7237</link>
		<dc:creator>charan</dc:creator>
		<pubDate>Mon, 24 Oct 2011 02:06:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.integratedwebsystems.com/?p=413#comment-7237</guid>
		<description>Excellent website. Very helpful.</description>
		<content:encoded><![CDATA[<p>Excellent website. Very helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://www.integratedwebsystems.com/2009/12/using-jquery-modal-dialog-confirmation-with-an-asp-net-server-control/comment-page-1/#comment-7179</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Mon, 10 Oct 2011 15:20:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.integratedwebsystems.com/?p=413#comment-7179</guid>
		<description>Hi &lt;a href=&quot;#comment-7177&quot; rel=&quot;nofollow&quot;&gt;@Shanzzzz&lt;/a&gt;! 

Well that button should behave just like any other web forms button without a dialog.  One thing I&#039;ve done to test my forms is to make your dialog div visible when you render the page and disable the dialog call to it.  Then test the markup out as-is, flat on the page.  If it all works, then it should also work within a dialog.  Remember, that the jquery dialog is part of the same DOM as the original page (usually). So the events should wire up just the same.   

I would also make sure you&#039;re nesting that dialog content in a &lt;code&gt;&lt;form runat=server&gt;&lt;/code&gt;  I think typical practice (from what I recall) is to wrap the entire page in a &lt;code&gt;&lt;form runat=server&gt;&lt;/code&gt;

One more tip. For debugging this stuff, I personally really like to use Firefox/Firebug addon combo. Their script debugger is pretty clean and easy to use.  In this case, since your button is not firing, it would tell you if there was a js error on the page, or if the event fired at all. 

Good luck!</description>
		<content:encoded><![CDATA[<p>Hi <a href="#comment-7177" rel="nofollow">@Shanzzzz</a>! </p>
<p>Well that button should behave just like any other web forms button without a dialog.  One thing I&#8217;ve done to test my forms is to make your dialog div visible when you render the page and disable the dialog call to it.  Then test the markup out as-is, flat on the page.  If it all works, then it should also work within a dialog.  Remember, that the jquery dialog is part of the same DOM as the original page (usually). So the events should wire up just the same.   </p>
<p>I would also make sure you&#8217;re nesting that dialog content in a <code>&lt;form runat=server&gt;</code>  I think typical practice (from what I recall) is to wrap the entire page in a <code>&lt;form runat=server&gt;</code></p>
<p>One more tip. For debugging this stuff, I personally really like to use Firefox/Firebug addon combo. Their script debugger is pretty clean and easy to use.  In this case, since your button is not firing, it would tell you if there was a js error on the page, or if the event fired at all. </p>
<p>Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shanzzzz</title>
		<link>http://www.integratedwebsystems.com/2009/12/using-jquery-modal-dialog-confirmation-with-an-asp-net-server-control/comment-page-1/#comment-7177</link>
		<dc:creator>Shanzzzz</dc:creator>
		<pubDate>Sun, 09 Oct 2011 10:23:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.integratedwebsystems.com/?p=413#comment-7177</guid>
		<description>Appreciate your helping mentality. I need a help from you...
I am using a jquery dialog modal to show the content in the div but I have an asp button inside that div. My concern is that the server side button &quot;btnsubmit&quot; is not firing. When I am clicking on the button, nothing happens...

Kindly help. Looking forward to your earliest and positive response...</description>
		<content:encoded><![CDATA[<p>Appreciate your helping mentality. I need a help from you&#8230;<br />
I am using a jquery dialog modal to show the content in the div but I have an asp button inside that div. My concern is that the server side button &#8220;btnsubmit&#8221; is not firing. When I am clicking on the button, nothing happens&#8230;</p>
<p>Kindly help. Looking forward to your earliest and positive response&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://www.integratedwebsystems.com/2009/12/using-jquery-modal-dialog-confirmation-with-an-asp-net-server-control/comment-page-1/#comment-7163</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Tue, 04 Oct 2011 14:11:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.integratedwebsystems.com/?p=413#comment-7163</guid>
		<description>Hi &lt;a href=&quot;#comment-7162&quot; rel=&quot;nofollow&quot;&gt;@Armin&lt;/a&gt;

This solution is specifically for web forms and definiteliy will not work for MVC. (I personally don&#039;t use web forms anymore), so using a jquery confirmation dialog in MVC is 1000x simpler. 

Basically in MVC, you&#039;re using traditional HTML/javascript. There&#039;s no server events or click handlers that you have to emulate. So really what you end up with is something like this: 

First, your initial button that causes the dialog will be either a &lt;code&gt;&lt;input type=&quot;button&quot; class=&quot;action-dosomething&quot; value=&quot;Do Something&quot;/&amp;gt&lt;/code&gt; or an &lt;code&gt;&lt;a href=&quot;#&quot; class=&quot;action-dosomething&quot;&gt;Do Something&lt;/a&amp;gt&lt;/code&gt; anchor. Then you&#039;ll use jquery to wire into that (instead of OnClientClick) with: 
&lt;code&gt;
$(document).ready(function(){
$(&#039;.action-dosomething&#039;).click(function(){
   //pop your dialog here. 
   $(&#039;.yourdialog&#039;).dialog(&#039;open&#039;);
   return false; //for &lt;a&gt; return false to prevent the hyperlink from working
});
})&lt;/code&gt;

Place an id attribute on your form &lt;code&gt;&lt;form id=&quot;formId&quot;&amp;gt&lt;/code&gt;. Make sure you remove runat=server. 
Finally, in your OK action handler for the dialog, you can then continue the submission 
&lt;code&gt;$(&#039;#formId&#039;).submit()&lt;/code&gt;  or simply close the dialog on Cancel &lt;code&gt;$(&#039;.yourdialog&#039;).dialog(&#039;close&#039;)&lt;/code&gt;. 

Hope that gets you started! Forgive any of my on-the-fly syntactical errors. ;)</description>
		<content:encoded><![CDATA[<p>Hi <a href="#comment-7162" rel="nofollow">@Armin</a></p>
<p>This solution is specifically for web forms and definiteliy will not work for MVC. (I personally don&#8217;t use web forms anymore), so using a jquery confirmation dialog in MVC is 1000x simpler. </p>
<p>Basically in MVC, you&#8217;re using traditional HTML/javascript. There&#8217;s no server events or click handlers that you have to emulate. So really what you end up with is something like this: </p>
<p>First, your initial button that causes the dialog will be either a <code>&lt;input type=&quot;button&quot; class=&quot;action-dosomething&quot; value=&quot;Do Something&quot;/&#038;gt</code> or an <code>&lt;a href=&quot;#&quot; class=&quot;action-dosomething&quot;&gt;Do Something&lt;/a&#038;gt</code> anchor. Then you&#8217;ll use jquery to wire into that (instead of OnClientClick) with:<br />
<code><br />
$(document).ready(function(){<br />
$('.action-dosomething').click(function(){<br />
   //pop your dialog here.<br />
   $('.yourdialog').dialog('open');<br />
   return false; //for &lt;a&gt; return false to prevent the hyperlink from working<br />
});<br />
})</code></p>
<p>Place an id attribute on your form <code>&lt;form id=&quot;formId&quot;&#038;gt</code>. Make sure you remove runat=server.<br />
Finally, in your OK action handler for the dialog, you can then continue the submission<br />
<code>$('#formId').submit()</code>  or simply close the dialog on Cancel <code>$('.yourdialog').dialog('close')</code>. </p>
<p>Hope that gets you started! Forgive any of my on-the-fly syntactical errors. <img src='http://www.integratedwebsystems.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Armin</title>
		<link>http://www.integratedwebsystems.com/2009/12/using-jquery-modal-dialog-confirmation-with-an-asp-net-server-control/comment-page-1/#comment-7162</link>
		<dc:creator>Armin</dc:creator>
		<pubDate>Tue, 04 Oct 2011 04:24:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.integratedwebsystems.com/?p=413#comment-7162</guid>
		<description>Hi Nathan,

Thanks for this tutorial. It works fine in an asp website project,

However I cannot get it running on an asp.net mvc page. The dialog box displays when I click the button in the dialog box nothing happens. It doesn&#039;t execute the code in the button_click event handler.

Please advise.</description>
		<content:encoded><![CDATA[<p>Hi Nathan,</p>
<p>Thanks for this tutorial. It works fine in an asp website project,</p>
<p>However I cannot get it running on an asp.net mvc page. The dialog box displays when I click the button in the dialog box nothing happens. It doesn&#8217;t execute the code in the button_click event handler.</p>
<p>Please advise.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://www.integratedwebsystems.com/2009/12/using-jquery-modal-dialog-confirmation-with-an-asp-net-server-control/comment-page-1/#comment-7088</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Wed, 24 Aug 2011 13:06:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.integratedwebsystems.com/?p=413#comment-7088</guid>
		<description>Hi &lt;a href=&quot;#comment-7087&quot; rel=&quot;nofollow&quot;&gt;@nishu &lt;/a&gt;, can you describe this in a little more detail? I&#039;m not familiar with &quot;carsouel page&quot;?  

I wrote this article quite some time ago, and my immediate disclaimer is that I used web forms since then. So I&#039;m a little rusty on web forms.  All code like this kind of goes away in MVC. Regardless, I&#039;ll still try my best to help you out. :)

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi <a href="#comment-7087" rel="nofollow">@nishu </a>, can you describe this in a little more detail? I&#8217;m not familiar with &#8220;carsouel page&#8221;?  </p>
<p>I wrote this article quite some time ago, and my immediate disclaimer is that I used web forms since then. So I&#8217;m a little rusty on web forms.  All code like this kind of goes away in MVC. Regardless, I&#8217;ll still try my best to help you out. <img src='http://www.integratedwebsystems.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nishu</title>
		<link>http://www.integratedwebsystems.com/2009/12/using-jquery-modal-dialog-confirmation-with-an-asp-net-server-control/comment-page-1/#comment-7087</link>
		<dc:creator>nishu</dc:creator>
		<pubDate>Wed, 24 Aug 2011 10:15:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.integratedwebsystems.com/?p=413#comment-7087</guid>
		<description>hi  i use the inline  modal window on page it work. but whet i applied with carsouel page it is not working</description>
		<content:encoded><![CDATA[<p>hi  i use the inline  modal window on page it work. but whet i applied with carsouel page it is not working</p>
]]></content:encoded>
	</item>
</channel>
</rss>

