<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.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>Steve Wellens  - All Comments</title><link>http://weblogs.asp.net/stevewellens/default.aspx</link><description>Programming in the .Net environment</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: Why goto Still Exists in C#</title><link>http://weblogs.asp.net/stevewellens/archive/2009/06/01/why-goto-still-exists-in-c.aspx#8284953</link><pubDate>Mon, 06 Feb 2012 09:51:28 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8284953</guid><dc:creator>Silvia</dc:creator><description>&lt;p&gt;I liked this article, very much actually. I&amp;#39;m always around those programmers who don&amp;#39;t like &amp;#39;goto&amp;#39;, and I&amp;#39;m a woman - nobody ever listens to my opinion :).&lt;/p&gt;
&lt;p&gt;Now I know that I&amp;#39;m not the only one for whom it doesn&amp;#39;t matter what you use - the result and understandable code is main goal. I don&amp;#39;t use &amp;#39;goto&amp;#39; much, but sometimes it&amp;#39;s really helpful.&lt;/p&gt;
&lt;p&gt;And I couldn&amp;#39;t agree more with Kevin, who wrote that assembly language uses always &amp;#39;goto&amp;#39;- I did in assembly some stuff a long time ago, and I now that for a fact. So I can&amp;#39;t understand why &amp;#39;goto&amp;#39; such a big deal (for not using it) for some of the programmers.&lt;/p&gt;
&lt;p&gt;Thank you, Steve, for such a short but great article.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8284953" width="1" height="1"&gt;</description></item><item><title>re: Automatically Generate Stored Procedures with Visual Studio</title><link>http://weblogs.asp.net/stevewellens/archive/2009/12/11/automatically-generate-stored-procedures-with-visual-studio.aspx#8276175</link><pubDate>Wed, 01 Feb 2012 20:20:13 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8276175</guid><dc:creator>Edward</dc:creator><description>&lt;p&gt;Far Out. &amp;nbsp;I was researching tools that would do just that like SQLDataLayer, and a stored procedure script listed in MSDN magazine and here it is right in Visual Studio.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8276175" width="1" height="1"&gt;</description></item><item><title>re: Log4net: Log to a JavaScript Console</title><link>http://weblogs.asp.net/stevewellens/archive/2012/01/22/log4net-log-to-a-javascript-console.aspx#8273600</link><pubDate>Tue, 31 Jan 2012 13:18:50 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8273600</guid><dc:creator>szilardd</dc:creator><description>&lt;p&gt;@Oleg: I have posted a better solution to the codeproject page: &lt;a rel="nofollow" target="_new" href="http://www.codeproject.com/Messages/4143718/Re-Does-not-work-in-MVC3.aspx"&gt;www.codeproject.com/.../Re-Does-not-work-in-MVC3.aspx&lt;/a&gt;.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8273600" width="1" height="1"&gt;</description></item><item><title>re: Log4net: Log to a JavaScript Console</title><link>http://weblogs.asp.net/stevewellens/archive/2012/01/22/log4net-log-to-a-javascript-console.aspx#8271547</link><pubDate>Sun, 29 Jan 2012 19:46:11 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8271547</guid><dc:creator>Oleg</dc:creator><description>&lt;p&gt;2 szilardd&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;I have tested, it works, but sometimes it is even dangerous.&lt;/p&gt;
&lt;p&gt;In some cases script text is visible on page. &lt;/p&gt;
&lt;p&gt;When I used it on Edit item page and then saved changes to database I detected that parts of script were written to database instead of some item parameters text.. Probably need to think how to add script to bottom of page. &lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8271547" width="1" height="1"&gt;</description></item><item><title>re: Log4net: Log to a JavaScript Console</title><link>http://weblogs.asp.net/stevewellens/archive/2012/01/22/log4net-log-to-a-javascript-console.aspx#8271428</link><pubDate>Sun, 29 Jan 2012 15:08:08 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8271428</guid><dc:creator>Oleg</dc:creator><description>&lt;p&gt;Thanks for this appender and for the MVC3 tip! &lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8271428" width="1" height="1"&gt;</description></item><item><title>re: Log4net: Log to a JavaScript Console</title><link>http://weblogs.asp.net/stevewellens/archive/2012/01/22/log4net-log-to-a-javascript-console.aspx#8269986</link><pubDate>Fri, 27 Jan 2012 13:28:55 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8269986</guid><dc:creator>SGWellens</dc:creator><description>&lt;p&gt;Thanks for the comments and tips!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8269986" width="1" height="1"&gt;</description></item><item><title>re: Log4net: Log to a JavaScript Console</title><link>http://weblogs.asp.net/stevewellens/archive/2012/01/22/log4net-log-to-a-javascript-console.aspx#8269337</link><pubDate>Thu, 26 Jan 2012 16:43:23 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8269337</guid><dc:creator>szilardd</dc:creator><description>&lt;p&gt;Found solution to make it work using ASP.NET MVC by replacing &lt;/p&gt;
&lt;p&gt;page.ClientScript.RegisterStartupScript&lt;/p&gt;
&lt;p&gt;with this:&lt;/p&gt;
&lt;p&gt;HttpContext.Current.Response.Write(&amp;quot;&amp;lt;script type=\&amp;quot;text/javascript\&amp;quot;&amp;gt;&amp;quot; + OutputScript + &amp;quot;&amp;lt;/script&amp;gt;&amp;quot;);&lt;/p&gt;
&lt;p&gt;The script is injected at the top of the page (before the DOCTYPE). &lt;/p&gt;
&lt;p&gt;This may not be the best approach, but it works. I&amp;#39;ve tested in Chrome and Firefox.&lt;/p&gt;
&lt;p&gt;Thanks for the tip.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8269337" width="1" height="1"&gt;</description></item><item><title>re: Log4net: Log to a JavaScript Console</title><link>http://weblogs.asp.net/stevewellens/archive/2012/01/22/log4net-log-to-a-javascript-console.aspx#8269332</link><pubDate>Thu, 26 Jan 2012 16:32:39 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8269332</guid><dc:creator>szilardd</dc:creator><description>&lt;p&gt;Can the same be implemented for ASP.NET MVC ?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8269332" width="1" height="1"&gt;</description></item><item><title>re: Log4net: Log to a JavaScript Console</title><link>http://weblogs.asp.net/stevewellens/archive/2012/01/22/log4net-log-to-a-javascript-console.aspx#8267254</link><pubDate>Mon, 23 Jan 2012 14:33:06 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8267254</guid><dc:creator>Hello</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the tip, though it doesn&amp;#39;t work if you have update panels...&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s what I did to make it work:&lt;/p&gt;
&lt;p&gt;I your Append-method, I added in the last line:&lt;/p&gt;
&lt;p&gt;AddToUpdatePanels(page.Controls, OutputScript, m_IDCounter);&lt;/p&gt;
&lt;p&gt;And then:&lt;/p&gt;
&lt;p&gt;private void AddToUpdatePanels(ControlCollection ctrls, string output, int m_IDCounter)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;m_IDCounter++;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;foreach (Control c in ctrls){&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (c.GetType() == typeof(UpdatePanel))&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ScriptManager.RegisterStartupScript(c, typeof(string), &amp;quot;OutputScript&amp;quot; + m_IDCounter, output, true); &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AddToUpdatePanels(c.Controls, output, m_IDCounter);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Ofcourse it may not work in all update panel scenarios. :)&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8267254" width="1" height="1"&gt;</description></item><item><title>Log4net: Log to a JavaScript Console | ASP.NET | Syngu</title><link>http://weblogs.asp.net/stevewellens/archive/2012/01/22/log4net-log-to-a-javascript-console.aspx#8266268</link><pubDate>Sun, 22 Jan 2012 06:51:20 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8266268</guid><dc:creator>Log4net: Log to a JavaScript Console | ASP.NET | Syngu</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Log4net: Log to a JavaScript Console | ASP.NET | Syngu&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8266268" width="1" height="1"&gt;</description></item></channel></rss>
