<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Web Forms</title><link>http://forums.asp.net/18.aspx</link><description>All about building ASP.NET Pages - server controls, events, validation, etc.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: confirm message using "Alert"</title><link>http://forums.asp.net/thread/3274713.aspx</link><pubDate>Sat, 04 Jul 2009 13:55:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274713</guid><dc:creator>Beaudeep</dc:creator><author>Beaudeep</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274713.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=3274713</wfw:commentRss><description>&lt;p&gt;Thank you it works good &lt;img src="http://forums.asp.net/tiny_mce/jscripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif" alt="Laughing" title="Laughing" border="0" /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: confirm message using "Alert"</title><link>http://forums.asp.net/thread/3274704.aspx</link><pubDate>Sat, 04 Jul 2009 13:38:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274704</guid><dc:creator>Ram Reddy Mekha</dc:creator><author>Ram Reddy Mekha</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274704.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=3274704</wfw:commentRss><description>&lt;p&gt;To display normal alert pop up in the code behind:&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;
&lt;p&gt;ClientScript.RegisterStartupScript(Page.GetType(), &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Alert&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;alert(&amp;#39;Done perfectly.&amp;#39;);&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;To call a java script function in the code behind:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;
&lt;p&gt;ClientScript.RegisterStartupScript(Page.GetType(), &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;confirmation&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;javascript:return confirmation();&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;(Ths is to call the confirmation&amp;nbsp;java script function I wrote in my previous post.)&lt;/font&gt;&lt;/p&gt;&lt;/p&gt;</description></item><item><title>Re: confirm message using "Alert"</title><link>http://forums.asp.net/thread/3274682.aspx</link><pubDate>Sat, 04 Jul 2009 13:13:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274682</guid><dc:creator>mudassarkhan</dc:creator><author>mudassarkhan</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274682.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=3274682</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Refer here&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.aspsnippets.com/post/2009/06/24/Display-MessageBox-in-ASPNet-using-JavaScript.aspx"&gt;http://www.aspsnippets.com/post/2009/06/24/Display-MessageBox-in-ASPNet-using-JavaScript.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: confirm message using "Alert"</title><link>http://forums.asp.net/thread/3274665.aspx</link><pubDate>Sat, 04 Jul 2009 12:56:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274665</guid><dc:creator>Beaudeep</dc:creator><author>Beaudeep</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274665.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=3274665</wfw:commentRss><description>&lt;p&gt;thanks guys...&lt;/p&gt;&lt;p&gt;How if I want to use alert after condition ...like:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Protected Sub DeleteButton_Click(ByVal sender As Object, ByVal e......&lt;/p&gt;&lt;p&gt;..&lt;/p&gt;&lt;p&gt;..&lt;/p&gt;&lt;p&gt;if textbox1.text = 1 then&lt;/p&gt;&lt;p&gt;here put alret message&lt;/p&gt;&lt;p&gt;..&lt;/p&gt;&lt;p&gt;..&lt;/p&gt;&lt;p&gt;else &lt;/p&gt;&lt;p&gt;exit sub&lt;/p&gt;&lt;p&gt;end if&lt;/p&gt;&lt;p&gt;End Sub&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;thank u again&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: confirm message using "Alert"</title><link>http://forums.asp.net/thread/3274243.aspx</link><pubDate>Sat, 04 Jul 2009 04:43:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274243</guid><dc:creator>Ram Reddy Mekha</dc:creator><author>Ram Reddy Mekha</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274243.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=3274243</wfw:commentRss><description>&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;&amp;lt;&lt;font color="#a31515" size="2"&gt;asp&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;Button&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;btnDelete&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;Text&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;Delete&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;OnClientClick&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;javascript:return confirmation();&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;script&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;type&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;function&lt;/font&gt;&lt;font size="2"&gt; confirmation() &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;confirm(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;#39;Are you aure want to delete?&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;#39;yes&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;) &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;font size="2"&gt;; &lt;/font&gt;&lt;font color="#008000" size="2"&gt;// postback occures here&lt;/font&gt;&lt;font size="2"&gt; &lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;font color="#0000ff" size="2"&gt;else&lt;/font&gt;&lt;font size="2"&gt; {&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;false&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&amp;nbsp;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;script&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: confirm message using "Alert"</title><link>http://forums.asp.net/thread/3274203.aspx</link><pubDate>Sat, 04 Jul 2009 04:11:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274203</guid><dc:creator>venkatu2005</dc:creator><author>venkatu2005</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274203.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=3274203</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;Beaudeep:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;I want to know how can I use confirm message &amp;quot;Yes - No&amp;quot;&amp;nbsp; for example &amp;quot;when I want to delete&amp;quot; by using Alert &lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;code id="code3"&gt;&amp;lt;asp:Button runat=&amp;quot;server&amp;quot; ID=&amp;quot;DeleteButton&amp;quot; CommandName=&amp;quot;Delete&amp;quot; Text=&amp;quot;Delete&amp;quot;
   OnClientClick=&amp;quot;return confirm(&amp;#39;Are you sure you want to delete this record?&amp;#39;);&amp;quot; /&amp;gt;&lt;/code&gt;&lt;/p&gt;</description></item><item><title>Re: confirm message using "Alert"</title><link>http://forums.asp.net/thread/3274155.aspx</link><pubDate>Sat, 04 Jul 2009 02:24:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274155</guid><dc:creator>PeteNet</dc:creator><author>PeteNet</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274155.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=3274155</wfw:commentRss><description>&lt;p&gt;there are multiple ways to do it, also depends on where and which control will fire it...take a look here for your options: &lt;a href="http://forums.asp.net/p/1433767/3223533.aspx#3223533"&gt;http://forums.asp.net/p/1433767/3223533.aspx#3223533&lt;/a&gt;&lt;/p&gt;&lt;p&gt;basically, the javascript &amp;quot;return confirm(&amp;#39;Are you sure you want to delete?&amp;#39;)&amp;quot; will do it ...you can use it inline or do a .Attributes.Add in the codebehind&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: confirm message using "Alert"</title><link>http://forums.asp.net/thread/3274154.aspx</link><pubDate>Sat, 04 Jul 2009 02:23:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274154</guid><dc:creator>jewelhere</dc:creator><author>jewelhere</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274154.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=3274154</wfw:commentRss><description>&lt;p&gt;use OnClientClick=&amp;quot;return fnConfirm()&amp;quot; in button.&lt;/p&gt;&lt;p&gt;write a function name:&lt;/p&gt;&lt;p&gt;and write this:&lt;/p&gt;&lt;p&gt;&amp;lt;script language=&amp;quot;javascript&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function fnConfirm()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return confirm(&amp;quot;Are you sure?&amp;quot;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;please mark as answer if this helps u&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>confirm message using "Alert"</title><link>http://forums.asp.net/thread/3274110.aspx</link><pubDate>Sat, 04 Jul 2009 00:22:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274110</guid><dc:creator>Beaudeep</dc:creator><author>Beaudeep</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274110.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=3274110</wfw:commentRss><description>&lt;p&gt;Hi everyone..&lt;/p&gt;&lt;p&gt;&amp;nbsp;I want to know how can I use confirm message &amp;quot;Yes - No&amp;quot;&amp;nbsp; for example &amp;quot;when I want to delete&amp;quot; by using Alert &lt;br /&gt;&lt;/p&gt;&lt;p&gt;cause with MsgBox it needs to install framework in client ...&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;thank you&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>