<?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>Infinities Loop - All Comments</title><link>http://weblogs.asp.net/infinitiesloop/default.aspx</link><description>ASP.NET and .NET from a new perspective</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Wahm com the online magazine for work at home moms.</title><link>http://weblogs.asp.net/infinitiesloop/archive/2006/10/16/TRULY-Understanding-Dynamic-Controls-_2800_Part-3_2900_.aspx#6190576</link><pubDate>Thu, 15 May 2008 02:13:03 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6190576</guid><dc:creator>Work from home moms.</dc:creator><description>&lt;p&gt;Work at home moms. Work from home moms. Soy tarts work at home moms. Voyforums work at home moms. Kevin thompson work at home moms. Moms work at home. Ideas for work at home moms.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6190576" width="1" height="1"&gt;</description></item><item><title>re: TRULY Understanding Dynamic Controls (Part 4)</title><link>http://weblogs.asp.net/infinitiesloop/archive/2007/09/04/TRULY-Understanding-Dynamic-Controls-_2800_Part-4_2900_.aspx#6188460</link><pubDate>Wed, 14 May 2008 10:14:06 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6188460</guid><dc:creator>dani</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Your articles are so in-depth and have really pulled through for me, great work.&lt;/p&gt;
&lt;p&gt;Could I get some pointers on using OnLoad and OnInit, I&amp;#39;ve read your onload-vs-page-load-vs-load-event article.&lt;/p&gt;
&lt;p&gt;My Server Control consists of a GridView which is built in the OnInit() method. &amp;nbsp;However the databinding for the gridview is called from the OnLoad() method which in turn calls a method RunQuery();&lt;/p&gt;
&lt;p&gt;RunQuery() returns a DataTable which is used by a method named BindData() to bind the gridview but also create a Table using the DataTable column names for the headings and a TextBox control for each gridview column.&lt;/p&gt;
&lt;p&gt;As RunQuery() will need to be called multiple times, it will return different sets of data, I&amp;#39;m clearing the Table and recreating the Table Header and Rows. &amp;nbsp;However this occurs on every postback due to the RunQuery method being called from OnLoad()&lt;/p&gt;
&lt;p&gt;Sorry if this seems a bit incoherent, I&amp;#39;ve probably confused my self ;-)&lt;/p&gt;
&lt;p&gt;Just read your comment about having a baby, all the best and take care.&lt;/p&gt;
&lt;p&gt;Regards, &lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6188460" width="1" height="1"&gt;</description></item><item><title>re: The CodeExpressionBuilder</title><link>http://weblogs.asp.net/infinitiesloop/archive/2006/08/09/The-CodeExpressionBuilder.aspx#6187137</link><pubDate>Tue, 13 May 2008 20:03:05 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6187137</guid><dc:creator>scubaSteve</dc:creator><description>&lt;p&gt;figured it out...&lt;/p&gt;
&lt;p&gt;needed:&lt;/p&gt;
&lt;p&gt;Imports System.CodeDom&lt;/p&gt;
&lt;p&gt;Imports System.Web&lt;/p&gt;
&lt;p&gt;&amp;lt;Compilation.ExpressionPrefix(&amp;quot;Code&amp;quot;)&amp;gt; _&lt;/p&gt;
&lt;p&gt;Public Class CodeExpressionBuilder&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Inherits Compilation.ExpressionBuilder&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Public Overloads Overrides Function GetCodeExpression(ByVal entry As BoundPropertyEntry, ByVal parsedData As Object, ByVal context As Compilation.ExpressionBuilderContext) As CodeExpression&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Return New CodeSnippetExpression(entry.Expression)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End Function&lt;/p&gt;
&lt;p&gt;End Class&lt;/p&gt;
&lt;p&gt;in web.config:&lt;/p&gt;
&lt;p&gt;&amp;lt;compilation debug=&amp;quot;true&amp;quot; strict=&amp;quot;false&amp;quot; explicit=&amp;quot;true&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;		&amp;lt;expressionBuilders&amp;gt;&lt;/p&gt;
&lt;p&gt;			&amp;lt;add expressionPrefix=&amp;quot;Code&amp;quot; type=&amp;quot;eCGP.CodeExpressionBuilder&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;		&amp;lt;/expressionBuilders&amp;gt;&lt;/p&gt;
&lt;p&gt;		&amp;lt;/compilation&amp;gt;&lt;/p&gt;
&lt;p&gt;Thanks for the cool code!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6187137" width="1" height="1"&gt;</description></item><item><title>re: The CodeExpressionBuilder</title><link>http://weblogs.asp.net/infinitiesloop/archive/2006/08/09/The-CodeExpressionBuilder.aspx#6187069</link><pubDate>Tue, 13 May 2008 19:33:48 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6187069</guid><dc:creator>Dave</dc:creator><description>&lt;p&gt;k, i found the answer to my previous post! I had ViewStateEnabled=true on the top repeater. I turned it off and everything works great!&lt;/p&gt;
&lt;p&gt;Argggh ViewState!!!!&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6187069" width="1" height="1"&gt;</description></item><item><title>re: The CodeExpressionBuilder</title><link>http://weblogs.asp.net/infinitiesloop/archive/2006/08/09/The-CodeExpressionBuilder.aspx#6186906</link><pubDate>Tue, 13 May 2008 18:26:24 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6186906</guid><dc:creator>Dave</dc:creator><description>&lt;p&gt;I&amp;#39;ve run into a situation that seems very related to this article, but ultimately I can&amp;#39;t find a solution. I&amp;#39;m using ASP.NET 2.0 w/ c#.&lt;/p&gt;
&lt;p&gt;I have 2 repeaters. A top repeater and a bottom one. The bottom one contains buttons and textboxes. In my app, if one of those buttons is clicked or the textbox is changed, content in both the top and bottom repeater is supposed to change. &amp;nbsp;The button fires the OnCommand event and the textbox fires the TextChanged event. I&amp;#39;ve noticed the following behavior:&lt;/p&gt;
&lt;p&gt;1) If you use &amp;lt;%= to dynamically display information in the top repeater, the content in the top repeater updates.&lt;/p&gt;
&lt;p&gt;2) If you use &amp;lt;%# to dynamically display information in the top repeater, the content in the top repeater does NOT update! This is a killer for my app! &amp;nbsp;I&amp;#39;m about to to move this to the Page_Load event.&lt;/p&gt;
&lt;p&gt;To be more specific (and maybe this is the bug), I&amp;#39;m actually calling a method in my code behind (I have to) in both #1 and #2. I&amp;#39;d love to use ExpressionBuilder, but I need some data from the Container.DataItem object (the local variable created only for &amp;lt;%# syntax).&lt;/p&gt;
&lt;p&gt;To me, this is a shortcoming of .NET and I&amp;#39;ve been trying to research it and haven&amp;#39;t heard anyone else getting this issue. This is the closest article I&amp;#39;ve found.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6186906" width="1" height="1"&gt;</description></item><item><title>re: Dealing with IE "Operation Aborted". Or, how to Crash IE</title><link>http://weblogs.asp.net/infinitiesloop/archive/2006/11/02/Dealing-with-IE-_2600_quot_3B00_Operation-Aborted_2600_quot_3B002E00_-Or_2C00_-how-to-Crash-IE.aspx#6186122</link><pubDate>Tue, 13 May 2008 10:26:26 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6186122</guid><dc:creator>tbela99</dc:creator><description>&lt;p&gt;I&amp;#39;ve got this error, I used something like $(object).innerHTML = &amp;#39;...&amp;#39; that caused IE crashed.&lt;/p&gt;
&lt;p&gt;to fix this (I was using mootools), I had to use domready event.&lt;/p&gt;
&lt;p&gt;window.addevent(&amp;#39;domready&amp;#39;, function () {$(object).innerHTML = &amp;#39;...&amp;#39;; }) and there were no more crashed.&lt;/p&gt;
&lt;p&gt;- regards&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6186122" width="1" height="1"&gt;</description></item><item><title>re: The CodeExpressionBuilder</title><link>http://weblogs.asp.net/infinitiesloop/archive/2006/08/09/The-CodeExpressionBuilder.aspx#6183916</link><pubDate>Mon, 12 May 2008 20:27:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6183916</guid><dc:creator>scubaSteve</dc:creator><description>&lt;p&gt;Do you have a VB.NET example. &amp;nbsp;I&amp;#39;ve been trying to translate your example without success. &amp;nbsp;Also, &amp;lt;expressionbuilders&amp;gt; is not valid in my web.config file. &amp;nbsp;Should the class below be in a specific folder?&lt;/p&gt;
&lt;p&gt;Thx!&lt;/p&gt;
&lt;p&gt;&amp;lt;Compilation.ExpressionPrefix(&amp;quot;Code&amp;quot;)&amp;gt; _&lt;/p&gt;
&lt;p&gt;Public Class CodeExpressionBuilder&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Inherits System.Web.Compilation.ExpressionBuilder&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Public Overrides Function ParseExpression(ByVal expression As String, ByVal propertyType As Type, ByVal context As System.Web.Compilation.ExpressionBuilderContext) As Object&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Return expression&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End Function &amp;#39;ParseExpression&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Public Overrides Function GetCodeExpression(ByVal entry As BoundPropertyEntry, ByVal parsedData As Object, ByVal context As System.Web.Compilation.ExpressionBuilderContext) As CodeExpression&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Return New CodeSnippetExpression(parsedData.ToString())&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End Function &amp;#39;GetCodeExpression&lt;/p&gt;
&lt;p&gt;End Class &amp;#39;CodeExpressionBuilder&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6183916" width="1" height="1"&gt;</description></item><item><title>re: TRULY Understanding Dynamic Controls (Part 4)</title><link>http://weblogs.asp.net/infinitiesloop/archive/2007/09/04/TRULY-Understanding-Dynamic-Controls-_2800_Part-4_2900_.aspx#6183132</link><pubDate>Mon, 12 May 2008 16:59:19 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6183132</guid><dc:creator>InfinitiesLoop</dc:creator><description>&lt;p&gt;Fire -- the control is kind of confusing! The format text is set in so many different places. If you format the text once, then submit again, you're going to end up trying to format it twice. I'm not sure if the Parsing will work or not. Ideally you'd just output the formatted text from Render or AddAttributesToRender instead of actually CHANGING the text value. I wish I could help more than that at the moment but I gotta go! We might be having a baby today...&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6183132" width="1" height="1"&gt;</description></item><item><title>re: TRULY Understanding Dynamic Controls (Part 4)</title><link>http://weblogs.asp.net/infinitiesloop/archive/2007/09/04/TRULY-Understanding-Dynamic-Controls-_2800_Part-4_2900_.aspx#6181786</link><pubDate>Mon, 12 May 2008 09:12:04 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6181786</guid><dc:creator>Fire</dc:creator><description>&lt;p&gt;hi infinities,&lt;/p&gt;
&lt;p&gt;no answer for the 1st question yet ?&lt;/p&gt;
&lt;p&gt;as for the 2nd question, sorry, again, it&amp;#39;s part of my fault of my (still) misunderstanding of viewstate ordering process.&lt;/p&gt;
&lt;p&gt;thx&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Fire.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6181786" width="1" height="1"&gt;</description></item><item><title>re: Dealing with IE "Operation Aborted". Or, how to Crash IE</title><link>http://weblogs.asp.net/infinitiesloop/archive/2006/11/02/Dealing-with-IE-_2600_quot_3B00_Operation-Aborted_2600_quot_3B002E00_-Or_2C00_-how-to-Crash-IE.aspx#6176808</link><pubDate>Sat, 10 May 2008 21:04:01 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6176808</guid><dc:creator>InfinitiesLoop</dc:creator><description>&lt;p&gt;Lubos -- I don't get the error. I notice though that your page takes a pretty long time to load, and it seems to be due to the large number of 'widgets' you have on the right column. Its likely one of those causing the error, they are certainly causing slowness.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6176808" width="1" height="1"&gt;</description></item></channel></rss>