<?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>《如何在ASP.NET中获得JavaScript弹出窗口Yes/No值》的评论</title>
	<atom:link href="http://hanlei.name/2003/11/06/374/feed" rel="self" type="application/rss+xml" />
	<link>http://hanlei.name/2003/11/06/374</link>
	<description>那条漂流的社会栋梁</description>
	<lastBuildDate>Sat, 19 May 2012 04:54:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>作者：http://</title>
		<link>http://hanlei.name/2003/11/06/374/comment-page-1#comment-1931</link>
		<dc:creator>http://</dc:creator>
		<pubDate>Fri, 28 Apr 2006 16:51:00 +0000</pubDate>
		<guid isPermaLink="false">/archive/2003/11/06/147.aspx#comment-1931</guid>
		<description>
             
为什莫这个问题 没有人回答阿？
&lt;br&gt;有没有人知道啊！？请把答案发出来吧！谢了！！！！！

  
          </description>
		<content:encoded><![CDATA[<p>为什莫这个问题 没有人回答阿？<br />
<br />有没有人知道啊！？请把答案发出来吧！谢了！！！！！</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：http://</title>
		<link>http://hanlei.name/2003/11/06/374/comment-page-1#comment-1930</link>
		<dc:creator>http://</dc:creator>
		<pubDate>Wed, 25 Jan 2006 06:46:00 +0000</pubDate>
		<guid isPermaLink="false">/archive/2003/11/06/147.aspx#comment-1930</guid>
		<description>
             
我也很想知道,请教啊
&lt;br&gt;

  
          </description>
		<content:encoded><![CDATA[<p>我也很想知道,请教啊<br /></p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：http://</title>
		<link>http://hanlei.name/2003/11/06/374/comment-page-1#comment-1929</link>
		<dc:creator>http://</dc:creator>
		<pubDate>Thu, 01 Sep 2005 07:03:00 +0000</pubDate>
		<guid isPermaLink="false">/archive/2003/11/06/147.aspx#comment-1929</guid>
		<description>
             
我想请问高手:
&lt;br&gt;在c#中,用以下代码:
&lt;br&gt;Response.write(&quot;&lt;script languge=&#039;javascript&#039;&quot;);
&lt;br&gt;Response.write(&quot;confirm(&#039;Is it your confirmation.....?&#039;)&quot;);
&lt;br&gt;Response.write(&quot;&lt;/javascript&gt;&quot;);
&lt;br&gt;
&lt;br&gt;在弹出确认窗口后,如何在c#中获得确认的true or false
&lt;br&gt;

  
          </description>
		<content:encoded><![CDATA[<p>我想请问高手:<br />
<br />在c#中,用以下代码:<br />
<br />Response.write(&quot;&lt;script languge=&#8217;javascript&#8217;&quot;);<br />
<br />Response.write(&quot;confirm(&#8216;Is it your confirmation&#8230;..?&#8217;)&quot;);<br />
<br />Response.write(&quot;&lt;/javascript&gt;&quot;);</p>
<p>在弹出确认窗口后,如何在c#中获得确认的true or false<br /></p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Easy Forex</title>
		<link>http://hanlei.name/2003/11/06/374/comment-page-1#comment-1928</link>
		<dc:creator>Easy Forex</dc:creator>
		<pubDate>Thu, 14 Apr 2005 17:08:00 +0000</pubDate>
		<guid isPermaLink="false">/archive/2003/11/06/147.aspx#comment-1928</guid>
		<description>
             nice :)
  
          </description>
		<content:encoded><![CDATA[<p>             nice <img src='http://hanlei.name/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：http://</title>
		<link>http://hanlei.name/2003/11/06/374/comment-page-1#comment-1927</link>
		<dc:creator>http://</dc:creator>
		<pubDate>Tue, 29 Mar 2005 01:03:00 +0000</pubDate>
		<guid isPermaLink="false">/archive/2003/11/06/147.aspx#comment-1927</guid>
		<description>
             i know,thanks
  
          </description>
		<content:encoded><![CDATA[<p>             i know,thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：http://</title>
		<link>http://hanlei.name/2003/11/06/374/comment-page-1#comment-1926</link>
		<dc:creator>http://</dc:creator>
		<pubDate>Tue, 01 Feb 2005 04:23:00 +0000</pubDate>
		<guid isPermaLink="false">/archive/2003/11/06/147.aspx#comment-1926</guid>
		<description>
             
不好意思。
&lt;br&gt;要获得JavaScript弹出窗口Yes/No值，无非想通过JavaScript弹出窗口确认用户是否同意。
&lt;br&gt;&lt;a target=&quot;_new&quot; href=&quot;http://blog.csdn.net/ohiolee/archive/2005/01/28/CsharpDotNETButtonConfirm.aspx&quot;&gt;http://blog.csdn.net/ohiolee/archive/2005/01/28/CsharpDotNETButtonConfirm.aspx&lt;/a&gt;
&lt;br&gt;这里可以完成以上功能

  
          </description>
		<content:encoded><![CDATA[<p>不好意思。<br />
<br />要获得JavaScript弹出窗口Yes/No值，无非想通过JavaScript弹出窗口确认用户是否同意。<br />
<br /><a target="_new" href="http://blog.csdn.net/ohiolee/archive/2005/01/28/CsharpDotNETButtonConfirm.aspx">http://blog.csdn.net/ohiolee/archive/2005/01/28/CsharpDotNETButtonConfirm.aspx</a><br />
<br />这里可以完成以上功能</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：ohiolee</title>
		<link>http://hanlei.name/2003/11/06/374/comment-page-1#comment-1925</link>
		<dc:creator>ohiolee</dc:creator>
		<pubDate>Tue, 01 Feb 2005 04:15:00 +0000</pubDate>
		<guid isPermaLink="false">/archive/2003/11/06/147.aspx#comment-1925</guid>
		<description>
             我的这篇文章中有代码
  
          </description>
		<content:encoded><![CDATA[<p>             我的这篇文章中有代码</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：http://</title>
		<link>http://hanlei.name/2003/11/06/374/comment-page-1#comment-1924</link>
		<dc:creator>http://</dc:creator>
		<pubDate>Fri, 22 Oct 2004 06:31:00 +0000</pubDate>
		<guid isPermaLink="false">/archive/2003/11/06/147.aspx#comment-1924</guid>
		<description>
             我怎么获取的值为空啊
  
          </description>
		<content:encoded><![CDATA[<p>             我怎么获取的值为空啊</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：http://</title>
		<link>http://hanlei.name/2003/11/06/374/comment-page-1#comment-1923</link>
		<dc:creator>http://</dc:creator>
		<pubDate>Tue, 29 Jun 2004 04:56:00 +0000</pubDate>
		<guid isPermaLink="false">/archive/2003/11/06/147.aspx#comment-1923</guid>
		<description>
             I want know,too
  
          </description>
		<content:encoded><![CDATA[<p>             I want know,too</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：http://</title>
		<link>http://hanlei.name/2003/11/06/374/comment-page-1#comment-1922</link>
		<dc:creator>http://</dc:creator>
		<pubDate>Wed, 19 May 2004 02:58:00 +0000</pubDate>
		<guid isPermaLink="false">/archive/2003/11/06/147.aspx#comment-1922</guid>
		<description>
             
If i want to interact with C#,how to get the confirmation of Yes/No from a javascript pop up;i tried  it ever with the following code.but i failed it .When i run it ,there is one error information said document.form1.hdnbox is empity or not a object.what&#039;s wrong ?can you tell me?thank you!
&lt;br&gt;The code is as following:
&lt;br&gt;Response.write(&quot;&lt;script language=&quot;javascript&quot;&gt;var ans;
&lt;br&gt; ans=window.confirm(&#039;Is it your confirmation.....?&#039;);
&lt;br&gt; //alert (ans);                      
&lt;br&gt; if (ans==true)
&lt;br&gt;  {
&lt;br&gt;    //alert(&#039;Yes&#039;);
&lt;br&gt;    document.Form1.hdnbox.value=&#039;Yes&#039;;
&lt;br&gt;   }
&lt;br&gt; else
&lt;br&gt; {
&lt;br&gt;    //alert(&#039;No&#039;);
&lt;br&gt;    document.Form1.hdnbox.value=&#039;No&#039;;}
&lt;br&gt;
&lt;br&gt; }
&lt;br&gt;&lt;/script&gt;&quot;);

  
          </description>
		<content:encoded><![CDATA[<p>If i want to interact with C#,how to get the confirmation of Yes/No from a javascript pop up;i tried  it ever with the following code.but i failed it .When i run it ,there is one error information said document.form1.hdnbox is empity or not a object.what&#8217;s wrong ?can you tell me?thank you!<br />
<br />The code is as following:<br />
<br />Response.write(&quot;&lt;script language=&quot;javascript&quot;&gt;var ans;<br />
<br /> ans=window.confirm(&#8216;Is it your confirmation&#8230;..?&#8217;);<br />
<br /> //alert (ans);<br />
<br /> if (ans==true)<br />
<br />  {<br />
<br />    //alert(&#8216;Yes&#8217;);<br />
<br />    document.Form1.hdnbox.value=&#8217;Yes&#8217;;<br />
<br />   }<br />
<br /> else<br />
<br /> {<br />
<br />    //alert(&#8216;No&#8217;);<br />
<br />    document.Form1.hdnbox.value=&#8217;No&#8217;;}</p>
<p> }<br />
<br />&lt;/script&gt;&quot;);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

