<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Buddhika's Weblog</title>
	<atom:link href="http://buddhikas.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://buddhikas.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 19 May 2011 11:09:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='buddhikas.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Buddhika's Weblog</title>
		<link>http://buddhikas.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://buddhikas.wordpress.com/osd.xml" title="Buddhika&#039;s Weblog" />
	<atom:link rel='hub' href='http://buddhikas.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Read Only Components Get Cleared up on Postback</title>
		<link>http://buddhikas.wordpress.com/2011/03/10/read-only-components-get-cleared-up-on-postback/</link>
		<comments>http://buddhikas.wordpress.com/2011/03/10/read-only-components-get-cleared-up-on-postback/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 05:23:22 +0000</pubDate>
		<dc:creator>buddhikas</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://buddhikas.wordpress.com/?p=43</guid>
		<description><![CDATA[I found a problem on ASP.net web Applications with read only text boxes not responding to the &#8216;viewsate&#8217; property set, If you set the &#8216;readonly&#8217; attribute to true. It will clear the readonly text box text up on postback. &#60;asp:TextBox ID=&#8221;companyTextBox&#8221; runat=&#8221;server&#8221; InvalidColor=&#8221;#ff0000&#8243; MinimumPrefixLength=&#8221;3&#8243; EnableViewState=&#8221;true&#8221; ReadOnly=&#8221;true&#8221;/&#62; The solution for avoiding clearance was to add the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=buddhikas.wordpress.com&amp;blog=1986728&amp;post=43&amp;subd=buddhikas&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I found a problem on ASP.net web Applications with read only text boxes not responding to the &#8216;viewsate&#8217; property set, If you set the &#8216;readonly&#8217; attribute to true. It will clear the readonly text box text up on postback.</p>
<p>&lt;asp:TextBox ID=&#8221;companyTextBox&#8221; runat=&#8221;server&#8221; InvalidColor=&#8221;#ff0000&#8243;<br />
MinimumPrefixLength=&#8221;3&#8243; EnableViewState=&#8221;true&#8221; ReadOnly=&#8221;true&#8221;/&gt;</p>
<p>The solution for avoiding clearance was to add the &#8216;readonly&#8217; property at the run time on the event of each page load.</p>
<p>protected void Page_Load(object sender, EventArgs e)<br />
{</p>
<p>this.companyTextBox.Attributes.Add(&#8220;ReadOnly&#8221;, &#8220;true&#8221;);</p>
<p>}</p>
<p>At the moment  I cannot understand how this happens. But will find out soon.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/buddhikas.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/buddhikas.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/buddhikas.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/buddhikas.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/buddhikas.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/buddhikas.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/buddhikas.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/buddhikas.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/buddhikas.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/buddhikas.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/buddhikas.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/buddhikas.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/buddhikas.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/buddhikas.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=buddhikas.wordpress.com&amp;blog=1986728&amp;post=43&amp;subd=buddhikas&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://buddhikas.wordpress.com/2011/03/10/read-only-components-get-cleared-up-on-postback/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6067d9259c03e033e205d689ae3803a3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">buddhikas</media:title>
		</media:content>
	</item>
		<item>
		<title>LINQ Does Not Support Date Comparison</title>
		<link>http://buddhikas.wordpress.com/2011/01/27/linq-does-not-support-date-comparison/</link>
		<comments>http://buddhikas.wordpress.com/2011/01/27/linq-does-not-support-date-comparison/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 11:07:57 +0000</pubDate>
		<dc:creator>buddhikas</dc:creator>
				<category><![CDATA[LINQ]]></category>

		<guid isPermaLink="false">http://buddhikas.wordpress.com/?p=40</guid>
		<description><![CDATA[.net 3.5 Linq queries does not seem to support date comparison. For example following code did not support. entities.Object.Where(p =&#62; p.ToDateTime.Date&#62;=DateTime.Now.Date &#38;&#38; p.FromDateTime.Date&#60;= DateTime.Now.Date) But it supported comparison of date time. entities.Object.Where(p =&#62; p.ToDateTime&#62;=DateTime.Now &#38;&#38; p.FromDateTime&#60;= DateTime.Now) Finally found a solution to compare the Date only trough linq query entities.Object.Where(p =&#62; p.ToDateTime&#62;=DateTime.Today &#38;&#38; p.FromDateTime&#60;= DateTime.Today) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=buddhikas.wordpress.com&amp;blog=1986728&amp;post=40&amp;subd=buddhikas&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>.net 3.5 Linq queries does not seem to support date comparison. For example following code did not support.</p>
<p>entities.Object.Where(p =&gt; p.ToDateTime.Date&gt;=DateTime.Now.Date<br />
&amp;&amp; p.FromDateTime.Date&lt;= DateTime.Now.Date)</p>
<p>But it supported comparison of date time.</p>
<p>entities.Object.Where(p =&gt; p.ToDateTime&gt;=DateTime.Now<br />
&amp;&amp; p.FromDateTime&lt;= DateTime.Now)</p>
<p>Finally found a solution to compare the Date only trough linq query</p>
<p>entities.Object.Where(p =&gt; p.ToDateTime&gt;=DateTime.Today<br />
&amp;&amp; p.FromDateTime&lt;= DateTime.Today)</p>
<p>Note:In my case the date object stored in the database recorded 00:00 as its time. In C# with the  DateTime.Today it sets the time to 12:00AM which is 00:00 in SQL.</p>
<p>This worked for me. Hope it&#8217;s helpful to you as well</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/buddhikas.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/buddhikas.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/buddhikas.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/buddhikas.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/buddhikas.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/buddhikas.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/buddhikas.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/buddhikas.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/buddhikas.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/buddhikas.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/buddhikas.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/buddhikas.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/buddhikas.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/buddhikas.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=buddhikas.wordpress.com&amp;blog=1986728&amp;post=40&amp;subd=buddhikas&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://buddhikas.wordpress.com/2011/01/27/linq-does-not-support-date-comparison/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6067d9259c03e033e205d689ae3803a3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">buddhikas</media:title>
		</media:content>
	</item>
		<item>
		<title>PLINQ &#8211; .Net 4.0</title>
		<link>http://buddhikas.wordpress.com/2010/04/06/plinq-net-4-0/</link>
		<comments>http://buddhikas.wordpress.com/2010/04/06/plinq-net-4-0/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 06:19:48 +0000</pubDate>
		<dc:creator>buddhikas</dc:creator>
				<category><![CDATA[.Net 4.0]]></category>

		<guid isPermaLink="false">http://buddhikas.wordpress.com/?p=36</guid>
		<description><![CDATA[.net 4.0 has some cool features that will enable me to utilize all the hardware resources. The main candidate for this operation is called PLINQ which enables you to execute your LINQ quires in parallel in a Core 2 Duo environment. As my experiment reviled if you use PLINQ it will utilize maximum CPU capability [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=buddhikas.wordpress.com&amp;blog=1986728&amp;post=36&amp;subd=buddhikas&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>.net 4.0 has some cool features that will enable me to utilize all the hardware resources. The main candidate for this operation is called PLINQ which enables you to execute your LINQ quires in parallel in a Core 2 Duo environment. As my experiment reviled if you use PLINQ it will utilize maximum CPU capability in both processors. where as normal C# or LINQ qury utilized only 50% of the CPU capacity. This made the PLINQ query to execute in double quick time com paired to the normal query.</p>
<p><span style="text-decoration:underline;">Normal Query </span></p>
<p>for (int i = 0; i &lt; 10000000; i++)<br />
{<br />
DoSomethingReallyComplicated(i);<br />
}</p>
<p><span style="text-decoration:underline;">PLINQ</span></p>
<p>Parallel.For(0, 10000000, i =&gt; { DoSomethingReallyComplicated(i); });</p>
<div id="attachment_37" class="wp-caption alignleft" style="width: 1034px"><a href="http://buddhikas.files.wordpress.com/2010/04/cpuusage1.jpg"><img class="aligncenter size-large wp-image-38" title="CPUUsage" src="http://buddhikas.files.wordpress.com/2010/04/cpuusage1.jpg?w=1024&#038;h=219" alt="" width="1024" height="219" /></a><p class="wp-caption-text">CPU Usage of PLINQ vs Normal Query</p></div>
<p>PLINQ used 100% of the CPU and did the work in 23.56 seconds</p>
<p>Normal Query used about 85% form CPU1 and 15% form CPU 2 did the work in 42.86seconds.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/buddhikas.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/buddhikas.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/buddhikas.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/buddhikas.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/buddhikas.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/buddhikas.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/buddhikas.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/buddhikas.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/buddhikas.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/buddhikas.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/buddhikas.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/buddhikas.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/buddhikas.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/buddhikas.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=buddhikas.wordpress.com&amp;blog=1986728&amp;post=36&amp;subd=buddhikas&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://buddhikas.wordpress.com/2010/04/06/plinq-net-4-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6067d9259c03e033e205d689ae3803a3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">buddhikas</media:title>
		</media:content>

		<media:content url="http://buddhikas.files.wordpress.com/2010/04/cpuusage1.jpg?w=1024" medium="image">
			<media:title type="html">CPUUsage</media:title>
		</media:content>
	</item>
		<item>
		<title>Ajax Control toolkit Auto Complete Extender Flexibility Issue</title>
		<link>http://buddhikas.wordpress.com/2010/03/08/ajax-control-toolkit-auto-complete-extender-flexibility-issue/</link>
		<comments>http://buddhikas.wordpress.com/2010/03/08/ajax-control-toolkit-auto-complete-extender-flexibility-issue/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 09:06:08 +0000</pubDate>
		<dc:creator>buddhikas</dc:creator>
				<category><![CDATA[AJAX]]></category>

		<guid isPermaLink="false">http://buddhikas.wordpress.com/?p=32</guid>
		<description><![CDATA[Hi All, I just ran in to a situation where I could not increase the width of the Auto Complete extender with out extending the width of the associated control.Could not find workaround with the DLL it self and had to dig deep and found out a solution  with the editing the following java scrip [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=buddhikas.wordpress.com&amp;blog=1986728&amp;post=32&amp;subd=buddhikas&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi All,</p>
<p>I just ran in to a situation where I could not increase the width of the Auto Complete extender with out extending the width of the associated control.Could not find workaround with the DLL it self and had to dig deep and found out a solution  with the editing the following java scrip with in the source code in the file &#8216;AutoCompleteBehavior.js&#8217; in Auto complete folder.</p>
<p>this._completionListElement.style.width = Math.max(1, elementBounds.width &#8211; 2) + &#8216;px&#8217;;</p>
<p>no matter if you manually set the width form the out side this line of code will set the width to bound element -2px so the solution was to either put a solid value to this</p>
<p>this._completionListElement.style.width = &#8220;400px&#8221;;</p>
<p>This is of couse if you are using it one size all the time</p>
<p>find a solution Here <a href="http://www.codeplex.com/AjaxControlToolkit/WorkItem/View.aspx?WorkItemId=13605" target="_self">http://www.codeplex.com/AjaxControlToolkit/WorkItem/View.aspx?WorkItemId=13605</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/buddhikas.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/buddhikas.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/buddhikas.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/buddhikas.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/buddhikas.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/buddhikas.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/buddhikas.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/buddhikas.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/buddhikas.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/buddhikas.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/buddhikas.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/buddhikas.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/buddhikas.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/buddhikas.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=buddhikas.wordpress.com&amp;blog=1986728&amp;post=32&amp;subd=buddhikas&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://buddhikas.wordpress.com/2010/03/08/ajax-control-toolkit-auto-complete-extender-flexibility-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6067d9259c03e033e205d689ae3803a3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">buddhikas</media:title>
		</media:content>
	</item>
		<item>
		<title>Bug In the AJAX Control tool kit AutoComplete Extender.</title>
		<link>http://buddhikas.wordpress.com/2010/02/26/bug-in-the-ajax-control-tool-kit-autocomplete-extender/</link>
		<comments>http://buddhikas.wordpress.com/2010/02/26/bug-in-the-ajax-control-tool-kit-autocomplete-extender/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 11:14:09 +0000</pubDate>
		<dc:creator>buddhikas</dc:creator>
				<category><![CDATA[AJAX]]></category>

		<guid isPermaLink="false">http://buddhikas.wordpress.com/?p=28</guid>
		<description><![CDATA[I just found a bug in the ajax auto complete extender.  This does not allow multiple instances of the control to appear in the same web page. If you have it with animation Like the element below.It should have a unique name per control. Otherwise you will lose control. When one of the controls is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=buddhikas.wordpress.com&amp;blog=1986728&amp;post=28&amp;subd=buddhikas&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I just found a bug in the ajax auto complete extender.  This does not allow multiple instances of the control to appear in the same web page. If you have it with animation Like the element below.It should have a unique name per control. Otherwise you will lose control. When one of the controls is selected it will ends up firing the same event for both the controls.</p>
<p>&#8220;CompletionListElementID&#8221;</p>
<p>Solution: You can avoid using animation or css elements form the extenders or use different names for css classes used by them.</p>
<p>found a good work around here :<a href="http://forums.asp.net/t/1362679.aspx" target="_blank">http://forums.asp.net/t/1362679.aspx</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/buddhikas.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/buddhikas.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/buddhikas.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/buddhikas.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/buddhikas.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/buddhikas.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/buddhikas.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/buddhikas.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/buddhikas.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/buddhikas.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/buddhikas.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/buddhikas.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/buddhikas.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/buddhikas.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=buddhikas.wordpress.com&amp;blog=1986728&amp;post=28&amp;subd=buddhikas&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://buddhikas.wordpress.com/2010/02/26/bug-in-the-ajax-control-tool-kit-autocomplete-extender/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6067d9259c03e033e205d689ae3803a3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">buddhikas</media:title>
		</media:content>
	</item>
		<item>
		<title>Page Life Cycle Events</title>
		<link>http://buddhikas.wordpress.com/2009/01/23/page-life-cycle-events/</link>
		<comments>http://buddhikas.wordpress.com/2009/01/23/page-life-cycle-events/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 07:37:20 +0000</pubDate>
		<dc:creator>buddhikas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://buddhikas.wordpress.com/2009/01/23/page-life-cycle-events/</guid>
		<description><![CDATA[Asp.net supports the automatic event fire up. This will raise the relevant methods in the code behind to execute automatically since by default the auto event fire up is true. Preinit: · Checks whether the page is a post back · Create or recreate the web controls dynamically · Set the theme and the master [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=buddhikas.wordpress.com&amp;blog=1986728&amp;post=25&amp;subd=buddhikas&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="Publishwithline">
<div style="border:medium medium 1pt none none solid 0 0 #4f81bd;padding:0 0 2pt;">
<p class="underline">
</div>
<p class="PadderBetweenControlandBody">
<p class="MsoNormal">Asp.net supports the automatic event fire up. This will raise the relevant methods in<span> </span>the code behind to execute automatically since by default the auto event fire up is true. <span> </span></p>
<table class="MsoTableGrid" style="border:medium none;border-collapse:collapse;height:399px;" border="1" cellspacing="0" cellpadding="0" width="732">
<tbody>
<tr>
<td style="border:1pt solid black;width:131.4pt;padding:0 5.4pt;" width="175" valign="top">
<p class="MsoNormal" style="margin-bottom:.0001pt;"><span>Preinit:</span></p>
</td>
<td style="width:347.4pt;padding:0 5.4pt;" width="463" valign="top">
<p class="MsoListParagraphCxSpFirst" style="margin-bottom:.0001pt;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span> Checks whether the page is a post back </span></p>
<p class="MsoListParagraphCxSpMiddle" style="margin-bottom:.0001pt;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span>Create or recreate the web controls dynamically</span></p>
<p class="MsoListParagraphCxSpMiddle" style="margin-bottom:.0001pt;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span> Set the theme and the master page.</span></p>
<p class="MsoListParagraphCxSpLast" style="margin-bottom:.0001pt;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span>Set profile property values</span></p>
</td>
</tr>
<tr>
<td style="width:131.4pt;padding:0 5.4pt;" width="175" valign="top">
<p class="MsoNormal" style="margin-bottom:.0001pt;"><span><a href="http://msdn.microsoft.com/en-us/library/system.web.ui.control.init.aspx"><span style="color:windowtext;text-decoration:none;">Init</span></a></span></p>
</td>
<td style="width:347.4pt;padding:0 5.4pt;" width="463" valign="top">
<p class="MsoListParagraph" style="margin-bottom:.0001pt;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span>Read and initialize the control   properties.</span></p>
</td>
</tr>
<tr>
<td style="width:131.4pt;padding:0 5.4pt;" width="175" valign="top">
<p class="MsoNormal" style="margin-bottom:.0001pt;"><span><a href="http://msdn.microsoft.com/en-us/library/system.web.ui.page.initcomplete.aspx"><span style="color:windowtext;text-decoration:none;">InitComplete</span></a></span></p>
</td>
<td style="width:347.4pt;padding:0 5.4pt;" width="463" valign="top">
<p class="MsoListParagraph" style="margin-bottom:.0001pt;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span>processing tasks that require all   initialization be complete</span></p>
</td>
</tr>
<tr>
<td style="width:131.4pt;padding:0 5.4pt;" width="175" valign="top">
<p class="MsoNormal" style="margin-bottom:.0001pt;"><span><a href="http://msdn.microsoft.com/en-us/library/system.web.ui.page.preload.aspx"><span style="color:windowtext;text-decoration:none;">PreLoad</span></a>(before   the <a id="ctl00_rs1_mainContentContainer_ctl90" href="http://msdn.microsoft.com/en-us/library/system.web.ui.control.load.aspx"><span style="color:windowtext;text-decoration:none;">Load</span></a>)</span></p>
</td>
<td style="width:347.4pt;padding:0 5.4pt;" width="463" valign="top">
<p class="MsoListParagraphCxSpFirst" style="margin-bottom:.0001pt;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span> loads view state for itself and all   controls</span></p>
<p class="MsoListParagraphCxSpLast" style="margin-bottom:.0001pt;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span> processes any postback data </span></p>
</td>
</tr>
<tr>
<td style="width:131.4pt;padding:0 5.4pt;" width="175" valign="top">
<p class="MsoNormal" style="margin-bottom:.0001pt;"><span><a href="http://msdn.microsoft.com/en-us/library/system.web.ui.control.load.aspx"><span style="color:windowtext;text-decoration:none;">Load</span></a></span></p>
</td>
<td style="width:347.4pt;padding:0 5.4pt;" width="463" valign="top">
<p class="MsoListParagraphCxSpFirst" style="margin-bottom:.0001pt;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span>Raise <a href="http://msdn.microsoft.com/en-us/library/system.web.ui.control.onload.aspx"><span style="color:windowtext;text-decoration:none;">OnLoad</span></a> event method and all the on load events for all the child controls with in   the page.</span></p>
<p class="MsoListParagraphCxSpMiddle" style="margin-bottom:.0001pt;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span>set properties in controls</span></p>
<p class="MsoListParagraphCxSpLast" style="margin-bottom:.0001pt;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span> establish database connections (if any)</span></p>
</td>
</tr>
<tr>
<td style="width:131.4pt;padding:0 5.4pt;" width="175" valign="top">
<p class="MsoNormal" style="margin-bottom:.0001pt;"><span><a href="http://msdn.microsoft.com/en-us/library/system.web.ui.page.loadcomplete.aspx"><span style="color:windowtext;text-decoration:none;">LoadComplete</span></a></span></p>
</td>
<td style="width:347.4pt;padding:0 5.4pt;" width="463" valign="top">
<p class="MsoListParagraph" style="margin-bottom:.0001pt;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span> Loads other controls on the page</span></p>
</td>
</tr>
<tr>
<td style="width:131.4pt;padding:0 5.4pt;" width="175" valign="top">
<p class="MsoNormal" style="margin-bottom:.0001pt;"><span><a href="http://msdn.microsoft.com/en-us/library/system.web.ui.control.prerender.aspx"><span style="color:windowtext;text-decoration:none;">PreRender</span></a></span></p>
</td>
<td style="width:347.4pt;padding:0 5.4pt;" width="463" valign="top">
<p class="MsoListParagraph" style="margin-bottom:.0001pt;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span>make final changes to the contents of the   page or its controls</span></p>
</td>
</tr>
<tr>
<td style="width:131.4pt;padding:0 5.4pt;" width="175" valign="top">
<p class="MsoNormal" style="margin-bottom:.0001pt;"><span><a href="http://msdn.microsoft.com/en-us/library/system.web.ui.page.savestatecomplete.aspx"><span style="color:windowtext;text-decoration:none;">SaveStateComplete</span></a></span></p>
</td>
<td style="width:347.4pt;padding:0 5.4pt;" width="463" valign="top">
<p class="MsoListParagraphCxSpFirst" style="margin-bottom:.0001pt;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span>changes to the page or controls at this   point will be ignored</span></p>
<p class="MsoListParagraphCxSpLast" style="margin-bottom:.0001pt;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span> perform tasks to save the view state</span></p>
</td>
</tr>
<tr>
<td style="width:131.4pt;padding:0 5.4pt;" width="175" valign="top">
<p class="MsoNormal" style="margin-bottom:.0001pt;"><span><a href="http://msdn.microsoft.com/en-us/library/system.web.ui.control.render.aspx"><span style="color:windowtext;text-decoration:none;">Render</span></a></span></p>
</td>
<td style="width:347.4pt;padding:0 5.4pt;" width="463" valign="top">
<p class="MsoListParagraphCxSpFirst" style="margin-bottom:.0001pt;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span><span style="text-decoration:underline;"><a href="http://msdn.microsoft.com/en-us/library/system.web.ui.page.aspx"><span style="color:windowtext;text-decoration:none;"> Page</span></a></span> object calls this method on each control</span></p>
<p class="MsoListParagraphCxSpLast" style="margin-bottom:.0001pt;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span>User control automatically incorporates   rendering</span></p>
</td>
</tr>
<tr>
<td style="width:131.4pt;padding:0 5.4pt;" width="175" valign="top">
<p class="MsoNormal" style="margin-bottom:.0001pt;"><span><a href="http://msdn.microsoft.com/en-us/library/system.web.ui.control.unload.aspx"><span style="color:windowtext;text-decoration:none;">Unload</span></a></span></p>
</td>
<td style="width:347.4pt;padding:0 5.4pt;" width="463" valign="top">
<p class="MsoListParagraph" style="margin-bottom:.0001pt;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span> Do final cleanup for specific controls and   the page(Close control specific DB connections, closing open files, finishing   up logging)</span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal">
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/buddhikas.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/buddhikas.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/buddhikas.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/buddhikas.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/buddhikas.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/buddhikas.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/buddhikas.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/buddhikas.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/buddhikas.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/buddhikas.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/buddhikas.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/buddhikas.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/buddhikas.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/buddhikas.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=buddhikas.wordpress.com&amp;blog=1986728&amp;post=25&amp;subd=buddhikas&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://buddhikas.wordpress.com/2009/01/23/page-life-cycle-events/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6067d9259c03e033e205d689ae3803a3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">buddhikas</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP.net Page life Cycle</title>
		<link>http://buddhikas.wordpress.com/2009/01/08/aspnet-page-life-cycle/</link>
		<comments>http://buddhikas.wordpress.com/2009/01/08/aspnet-page-life-cycle/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 10:09:44 +0000</pubDate>
		<dc:creator>buddhikas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://buddhikas.wordpress.com/2009/01/08/aspnet-page-life-cycle/</guid>
		<description><![CDATA[In a page life cycle it is important to understand the stages of the life cycle in order to write the proper coding at the proper stage of the page life cycle. It performs a series of processing steps · Initialization · Initiating controls · Restoring · Maintain state · Running event handlers · Rendering. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=buddhikas.wordpress.com&amp;blog=1986728&amp;post=23&amp;subd=buddhikas&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><!--[if gte mso 9]&gt;  Normal 0     false false false  EN-US X-NONE X-NONE              MicrosoftInternetExplorer4              &lt;![endif]--><!--[if gte mso 9]&gt;                                                                                                                                            &lt;![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:Wingdings; 	panose-1:5 0 0 0 0 0 0 0 0 0; 	mso-font-charset:2; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:0 268435456 0 0 -2147483648 0;} @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:1; 	mso-generic-font-family:roman; 	mso-font-format:other; 	mso-font-pitch:variable; 	mso-font-signature:0 0 0 0 0 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph 	{mso-style-priority:34; 	mso-style-unhide:no; 	mso-style-qformat:yes; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:.5in; 	mso-add-space:auto; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst 	{mso-style-priority:34; 	mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-type:export-only; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:0in; 	margin-left:.5in; 	margin-bottom:.0001pt; 	mso-add-space:auto; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle 	{mso-style-priority:34; 	mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-type:export-only; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:0in; 	margin-left:.5in; 	margin-bottom:.0001pt; 	mso-add-space:auto; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast 	{mso-style-priority:34; 	mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-type:export-only; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:.5in; 	mso-add-space:auto; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoPapDefault 	{mso-style-type:export-only; 	margin-bottom:10.0pt; 	line-height:115%;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.0in 1.0in 1.0in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;}  /* List Definitions */  @list l0 	{mso-list-id:1644194859; 	mso-list-type:hybrid; 	mso-list-template-ids:-308233278 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;} @list l0:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:none; 	mso-level-number-position:left; 	text-indent:-.25in; 	font-family:Symbol;} @list l0:level2 	{mso-level-number-format:bullet; 	mso-level-text:o; 	mso-level-tab-stop:none; 	mso-level-number-position:left; 	text-indent:-.25in; 	font-family:"Courier New";} @list l1 	{mso-list-id:1650863523; 	mso-list-type:hybrid; 	mso-list-template-ids:709548834 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;} @list l1:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:none; 	mso-level-number-position:left; 	margin-left:1.75in; 	text-indent:-.25in; 	font-family:Symbol;} ol 	{margin-bottom:0in;} ul 	{margin-bottom:0in;} --><!--[if gte mso 10]&gt; &lt;!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin-top:0in; 	mso-para-margin-right:0in; 	mso-para-margin-bottom:10.0pt; 	mso-para-margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin;} --> <!--[endif]--></p>
<p class="MsoNormal">In a page life cycle it is important to understand the stages of the life cycle in order to write the proper coding at the proper stage of the page life cycle.</p>
<p class="MsoNormal">It performs a series of processing steps</p>
<ul>
<li><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]-->Initialization</li>
<li><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]-->Initiating controls</li>
<li><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]-->Restoring</li>
<li><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]-->Maintain state</li>
<li><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]-->Running event handlers</li>
<li><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]-->Rendering.</li>
</ul>
<p class="MsoListParagraphCxSpMiddle" style="margin-left:0;">
<p class="MsoListParagraphCxSpMiddle" style="margin-left:0;">Stages of the page life cycle:-</p>
<p class="MsoListParagraphCxSpMiddle" style="margin-left:67.5pt;text-indent:-67.5pt;"><strong><span style="text-decoration:underline;">Page request</span></strong> <span> </span>– User request a web page and it passed to the server and the server determines whether the page need to be compiled and send or cached version can be invoked instead compilation.</p>
<p class="MsoListParagraphCxSpMiddle" style="margin-left:67.5pt;text-indent:-67.5pt;"><strong><span style="text-decoration:underline;">Start</span></strong><span> </span>- Page properties are set and determine whether it is a post back or not. Some of the properties are as follows</p>
<p class="MsoListParagraphCxSpMiddle" style="margin-left:1.75in;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span> </span>Request</p>
<p class="MsoListParagraphCxSpMiddle" style="margin-left:1.75in;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span> </span><a href="http://msdn.microsoft.com/en-us/library/system.web.ui.page.response.aspx"><span style="color:windowtext;text-decoration:none;">Response</span></a></p>
<p class="MsoListParagraphCxSpMiddle" style="margin-left:1.75in;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span> </span><a href="http://msdn.microsoft.com/en-us/library/system.web.ui.page.ispostback.aspx"><span style="color:windowtext;text-decoration:none;">IsPostBack</span></a></p>
<p class="MsoListParagraphCxSpLast" style="margin-left:1.75in;text-indent:-.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span>·<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><!--[endif]--><span> </span><a href="http://msdn.microsoft.com/en-us/library/system.web.ui.page.uiculture.aspx"><span style="color:windowtext;text-decoration:none;">UICulture</span></a></p>
<p class="MsoNormal" style="margin-left:67.5pt;text-indent:-67.5pt;"><strong><span style="text-decoration:underline;">Page initialization</span></strong>- All the controls are available to and the unique id property is also set during this stage. All the themes are applied here; View state values will be yet to be loaded by this stage. So there will be no data on the page.</p>
<p class="MsoNormal" style="margin-left:67.5pt;text-indent:-67.5pt;"><strong><span style="text-decoration:underline;">Load </span><span> </span></strong>-Properties of all the controls and the data from the view state are being loaded during this stage. This stage can be used for the data binding of the page.</p>
<p class="MsoNormal" style="margin-left:67.5pt;text-indent:-67.5pt;"><strong><span style="text-decoration:underline;">Validation</span></strong> <span> </span>-The validate methods of the validater controls are being called and all the validation are checked, while the isvalid property is being set.</p>
<p class="MsoNormal" style="margin-left:67.5pt;text-indent:-67.5pt;"><strong><span style="text-decoration:underline;">Postback event handling </span></strong>– any the event handlers are being called.</p>
<p class="MsoNormal" style="margin-left:67.5pt;text-indent:-67.5pt;"><strong><span style="text-decoration:underline;">Rendering</span></strong> -<span> </span>Page render method for each of the controls are being called, which provides a text writer to the output stream of the page in response.</p>
<p class="MsoNormal" style="margin-left:67.5pt;text-indent:-67.5pt;"><strong><span style="text-decoration:underline;">Unload </span></strong>-<span> </span>This is called after the page if being rendered and all the writers are sent to the client. All The response and request are unloaded and the cleanup is performed.</p>
<p class="MsoNormal" style="margin-left:67.5pt;text-indent:-67.5pt;">
<p class="MsoNormal" style="margin-left:67.5pt;text-indent:-67.5pt;">refernce:-<a href="http://msdn.microsoft.com/en-us/library/ms178472.aspx" target="_blank">msdn</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/buddhikas.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/buddhikas.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/buddhikas.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/buddhikas.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/buddhikas.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/buddhikas.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/buddhikas.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/buddhikas.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/buddhikas.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/buddhikas.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/buddhikas.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/buddhikas.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/buddhikas.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/buddhikas.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=buddhikas.wordpress.com&amp;blog=1986728&amp;post=23&amp;subd=buddhikas&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://buddhikas.wordpress.com/2009/01/08/aspnet-page-life-cycle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6067d9259c03e033e205d689ae3803a3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">buddhikas</media:title>
		</media:content>
	</item>
		<item>
		<title>Unexpected error 0x8ffe2740 occurred(IIS)</title>
		<link>http://buddhikas.wordpress.com/2008/07/09/unexpected-error-0x8ffe2740-occurrediis/</link>
		<comments>http://buddhikas.wordpress.com/2008/07/09/unexpected-error-0x8ffe2740-occurrediis/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 09:49:06 +0000</pubDate>
		<dc:creator>buddhikas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://buddhikas.wordpress.com/?p=21</guid>
		<description><![CDATA[I got this error once try to run IIS on my machine.There were couple of causes  that it meant to be. The most probable cause was that I was having some other application running on port  80  which IIS was supposed to run. So the solution was to change the IIS&#8217;s port<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=buddhikas.wordpress.com&amp;blog=1986728&amp;post=21&amp;subd=buddhikas&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I got this error once try to run IIS on my machine.There were couple of causes  that it meant to be. The most probable cause was that I was having some other application running on port  80  which IIS was supposed to run.</p>
<p>So the solution was to change the IIS&#8217;s port</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/buddhikas.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/buddhikas.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/buddhikas.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/buddhikas.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/buddhikas.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/buddhikas.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/buddhikas.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/buddhikas.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/buddhikas.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/buddhikas.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/buddhikas.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/buddhikas.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/buddhikas.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/buddhikas.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/buddhikas.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/buddhikas.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=buddhikas.wordpress.com&amp;blog=1986728&amp;post=21&amp;subd=buddhikas&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://buddhikas.wordpress.com/2008/07/09/unexpected-error-0x8ffe2740-occurrediis/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6067d9259c03e033e205d689ae3803a3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">buddhikas</media:title>
		</media:content>
	</item>
		<item>
		<title>How to create a tool tip using CSS</title>
		<link>http://buddhikas.wordpress.com/2008/04/29/how-to-create-a-tool-tip-using-css/</link>
		<comments>http://buddhikas.wordpress.com/2008/04/29/how-to-create-a-tool-tip-using-css/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 08:29:46 +0000</pubDate>
		<dc:creator>buddhikas</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://buddhikas.wordpress.com/?p=19</guid>
		<description><![CDATA[This is the CSS code for creating a simple tool tip in the web page design. The CSS: &#60;style=text/CSS&#62; a {position: relative;} a:hover span { position: absolute; top: 5px; left: 30px; display: block; background: #fdc; border: 1px solid red; } &#60;Style&#62; This can be used in with in style tags with in the HTML page [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=buddhikas.wordpress.com&amp;blog=1986728&amp;post=19&amp;subd=buddhikas&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">This is the CSS code for creating a simple tool tip in the web page design.</p>
<p class="MsoNormal"><strong><span style="font-family:&quot;">The CSS:<span> </span></span></strong></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;">&lt;style=text/CSS&gt;</span></p>
<p class="MsoNormal">
a {position: relative;}</p>
<p>a:hover span {<br />
position: absolute;<br />
top: 5px;<br />
left: 30px;<br />
display: block;<br />
background: #fdc;<br />
border: 1px solid red;<br />
}<strong> </strong></p>
<p class="MsoNormal">&lt;Style&gt;</p>
<p class="MsoNormal">This can be used in with in style tags with in the HTML page or store in a separate CSS file and called as a class at the required link.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/buddhikas.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/buddhikas.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/buddhikas.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/buddhikas.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/buddhikas.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/buddhikas.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/buddhikas.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/buddhikas.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/buddhikas.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/buddhikas.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/buddhikas.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/buddhikas.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/buddhikas.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/buddhikas.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/buddhikas.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/buddhikas.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=buddhikas.wordpress.com&amp;blog=1986728&amp;post=19&amp;subd=buddhikas&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://buddhikas.wordpress.com/2008/04/29/how-to-create-a-tool-tip-using-css/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6067d9259c03e033e205d689ae3803a3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">buddhikas</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Date Time Convertion</title>
		<link>http://buddhikas.wordpress.com/2007/11/14/sql-date-time-convertion/</link>
		<comments>http://buddhikas.wordpress.com/2007/11/14/sql-date-time-convertion/#comments</comments>
		<pubDate>Wed, 14 Nov 2007 10:37:13 +0000</pubDate>
		<dc:creator>buddhikas</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://buddhikas.wordpress.com/2007/11/14/sql-date-time-convertion/</guid>
		<description><![CDATA[Syntax for CAST: CAST ( expression AS data_type [ (length ) ]) Syntax for CONVERT: CONVERT ( data_type [ ( length ) ] , expression [ , style ] ) http://msdn2.microsoft.com/en-us/library/ms187928.aspx<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=buddhikas.wordpress.com&amp;blog=1986728&amp;post=18&amp;subd=buddhikas&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre><a title="syntaxToggle" name="syntaxToggle"></a>Syntax for CAST:
CAST ( expression AS data_type [ (length ) ])

Syntax for CONVERT:
CONVERT ( data_type [ ( length ) ] , expression [ , style ] )</pre>
<pre><a href="http://msdn2.microsoft.com/en-us/library/ms187928.aspx">http://msdn2.microsoft.com/en-us/library/ms187928.aspx </a></pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/buddhikas.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/buddhikas.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/buddhikas.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/buddhikas.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/buddhikas.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/buddhikas.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/buddhikas.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/buddhikas.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/buddhikas.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/buddhikas.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/buddhikas.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/buddhikas.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/buddhikas.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/buddhikas.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/buddhikas.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/buddhikas.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=buddhikas.wordpress.com&amp;blog=1986728&amp;post=18&amp;subd=buddhikas&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://buddhikas.wordpress.com/2007/11/14/sql-date-time-convertion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6067d9259c03e033e205d689ae3803a3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">buddhikas</media:title>
		</media:content>
	</item>
	</channel>
</rss>
