<?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>Client Side Web Development</title><link>http://forums.asp.net/130.aspx</link><description>Client-side programming discussions, including CSS, DHTML, JScript/Javascript, etc. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=18&amp;c=16" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: JavaScript Error</title><link>http://forums.asp.net/thread/2470741.aspx</link><pubDate>Mon, 07 Jul 2008 07:18:02 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2470741</guid><dc:creator>Maulik Patel</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2470741.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2470741</wfw:commentRss><description>&lt;p&gt;If you are using AJAX timer than&lt;/p&gt;&lt;p&gt;ScriptManager.RegisterStartupScript(Page, Page.GetType, &amp;quot;unique_key&amp;quot;, &amp;quot;window.open(&amp;#39;&amp;#39;,&amp;#39;_parent&amp;#39;,&amp;#39;&amp;#39;);window.close();&amp;quot;, True)&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: JavaScript Error</title><link>http://forums.asp.net/thread/2470457.aspx</link><pubDate>Mon, 07 Jul 2008 04:13:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2470457</guid><dc:creator>xzin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2470457.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2470457</wfw:commentRss><description>&lt;p&gt;the error is no longer there .&lt;/p&gt;
&lt;p&gt;the timer fires but it does not execute my script&amp;nbsp;window.open(&amp;#39; &amp;#39;,&amp;#39;_parent&amp;#39;,&amp;#39; &amp;#39;); which is supposed to close the parent winodw without the prompt message.&lt;/p&gt;
&lt;p&gt;here&amp;#39;s what i wrote:&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;ClientScript.RegisterClientScriptBlock(Page.GetType, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;unique_key&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;window.open(&amp;#39;&amp;#39;, &amp;#39;_parent&amp;#39;, &amp;#39;&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;font size="2"&gt;any help would be appreciated my friends :)&lt;/p&gt;&lt;/font&gt;&lt;font color="#800000"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: JavaScript Error</title><link>http://forums.asp.net/thread/2470340.aspx</link><pubDate>Mon, 07 Jul 2008 02:59:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2470340</guid><dc:creator>HeartattacK</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2470340.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2470340</wfw:commentRss><description>&lt;p&gt;Ok...you&amp;#39;re using the timer and thus asp.net AJAX. You can&amp;#39;t (and&lt;strong&gt; NEVER&lt;/strong&gt; should for registering js) use Response.Write. Do this:&lt;/p&gt;
&lt;p&gt;ClientScript.RegisterClientScriptBlock(TypeOf(Page), &amp;quot;unique_key&amp;quot; &amp;amp; DateTime.Now, &amp;quot;window.open(&amp;#39;&amp;#39;, &amp;#39;_parent&amp;#39;, &amp;#39;&amp;#39;);&amp;quot;, True)&lt;/p&gt;
&lt;p&gt;If you wish to have the script loaded only once, make the second param constant (that is, remove the DateTime.Now). &lt;/p&gt;</description></item><item><title>Re: JavaScript Error</title><link>http://forums.asp.net/thread/2470064.aspx</link><pubDate>Sun, 06 Jul 2008 20:01:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2470064</guid><dc:creator>xzin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2470064.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2470064</wfw:commentRss><description>&lt;p&gt;am still having the same error!! &lt;/p&gt;
&lt;p&gt;plz notice that am writing my code in the Source area .. not the ( .VB) area &lt;/p&gt;
&lt;p&gt;i wish i can write this code in the VB area .. but there i only see the PageEvents .. i can&amp;#39;t see any other event of my controls like the Timer in this case..is there anyway that i can get the Timer event in .vb area .. ?&lt;/p&gt;</description></item><item><title>Re: JavaScript Error</title><link>http://forums.asp.net/thread/2470050.aspx</link><pubDate>Sun, 06 Jul 2008 19:27:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2470050</guid><dc:creator>gunteman</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2470050.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2470050</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You should not use Response.Write at all. If you&amp;#39;re using ASP.NET AJAX, then ScriptManager.RegisterClientScriptBlock is what you should use. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: JavaScript Error</title><link>http://forums.asp.net/thread/2470023.aspx</link><pubDate>Sun, 06 Jul 2008 18:50:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2470023</guid><dc:creator>pradeep7n</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2470023.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2470023</wfw:commentRss><description>&lt;font face="courier new,courier"&gt;Response.Write(&amp;quot;&amp;lt;Script language=&amp;#39;javascript&amp;#39;
type=&amp;#39;text/javascript&amp;#39;&amp;gt;window.open(&amp;#39;&amp;#39;,&amp;#39;_parent&amp;#39;,&amp;#39;&amp;#39;);window.close();&amp;lt;/script&amp;gt;&amp;quot;)&lt;/font&gt;&lt;br /&gt;&amp;nbsp;</description></item><item><title>Re: JavaScript Error</title><link>http://forums.asp.net/thread/2469975.aspx</link><pubDate>Sun, 06 Jul 2008 17:33:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2469975</guid><dc:creator>HeartattacK</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2469975.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2469975</wfw:commentRss><description>&lt;p&gt;&lt;font face="Courier New"&gt;Response.Write&lt;strong&gt;(&amp;quot;&amp;lt;Script language=&lt;u&gt;&amp;#39;javaScript&amp;#39;&lt;/u&gt;&amp;gt;&lt;/strong&gt; window.open(&amp;#39;&amp;#39;,&amp;#39;_parent&amp;#39;,&amp;#39;&amp;#39;);window.close();&amp;lt;/script&amp;gt;&amp;quot;)&lt;/font&gt;&lt;/p&gt;</description></item><item><title>JavaScript Error</title><link>http://forums.asp.net/thread/2469894.aspx</link><pubDate>Sun, 06 Jul 2008 16:01:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2469894</guid><dc:creator>xzin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2469894.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2469894</wfw:commentRss><description>&lt;span style="FONT-SIZE:9pt;COLOR:#111111;FONT-FAMILY:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;strong&gt;Hi guys .. It&amp;#39;s me again&lt;span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;strong&gt;! &lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;I know my problem may seem to some of you a&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt; &lt;/span&gt;peice of cake .. but not for Begginers like myself&lt;span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;strong&gt;!&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;I&amp;#39;m having an error when&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt; &lt;/span&gt;writing this code in my web application&lt;/strong&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;BACKGROUND:yellow;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-highlight:yellow;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;BACKGROUND:yellow;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-highlight:yellow;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;BACKGROUND:yellow;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-highlight:yellow;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;BACKGROUND:yellow;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-highlight:yellow;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;BACKGROUND:yellow;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-highlight:yellow;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;BACKGROUND:yellow;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-highlight:yellow;mso-no-proof:yes;"&gt;&amp;lt;%&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;@ Page Language=&amp;quot;VB&amp;quot; Title=&amp;quot;Start&amp;quot; Theme=&amp;quot;Silver&amp;quot; &lt;span style="BACKGROUND:yellow;mso-highlight:yellow;"&gt;%&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;BACKGROUND:yellow;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-highlight:yellow;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;BACKGROUND:yellow;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-highlight:yellow;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&amp;lt;script runat=&amp;quot;server&amp;quot;&amp;gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;Protected Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs)&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt; 
&lt;p&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;Response.Write(&amp;quot;&amp;lt;Script language=&amp;quot;&amp;quot;javaScript&amp;quot;&amp;quot;&amp;gt; window.open(&amp;#39;&amp;#39;,&amp;#39;_parent&amp;#39;,&amp;#39;&amp;#39;);window.close();&amp;lt;/script&amp;gt;&amp;quot;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;End Sub&lt;/span&gt;&lt;/p&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;b&gt;&lt;span style="FONT-SIZE:9pt;COLOR:#111111;LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="FONT-SIZE:9pt;COLOR:#111111;LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;In the Timer1_Tick, four errors showing (1. Cannot switch&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt; &lt;/span&gt;views , 2.Statement Cannot appear within a&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt; &lt;span&gt;&lt;u&gt;&lt;span style="mso-field-code:&amp;#39; HYPERLINK &amp;#39;&amp;#39;&amp;#39;;"&gt;&lt;span class="MsoHyperlink"&gt;&lt;span style="COLOR:#bb66ff;"&gt;Method&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/u&gt; &lt;/span&gt;&lt;/span&gt;body End&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt; &lt;/span&gt;of&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt; &lt;span&gt;&lt;u&gt;&lt;span style="mso-field-code:&amp;#39; HYPERLINK &amp;#39;&amp;#39;&amp;#39;;"&gt;&lt;span class="MsoHyperlink"&gt;&lt;span style="COLOR:#bb66ff;"&gt;Method&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/u&gt; &lt;/span&gt;&lt;/span&gt;assumed.3.String Constants must end with double quote.4.Statement Cannot appear&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt; ...&lt;/span&gt;etc&lt;span&gt;&lt;br /&gt;&lt;/span&gt;I&amp;#39;ve been searching for a solution for this error the whole day ! i&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt; &lt;/span&gt;wasn&amp;#39;t lucky&lt;span&gt;&lt;br /&gt;&lt;/span&gt;Any Help my friends would be apperciated&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;span style="mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;</description></item></channel></rss>