<?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/"
	>

<channel>
	<title>I Learnt Today... &#187; Menol</title>
	<atom:link href="http://www.ilearnttoday.com/category/menol/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ilearnttoday.com</link>
	<description>This is where I share what I learn day by day...</description>
	<lastBuildDate>Tue, 17 Jan 2012 12:44:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>A stored procedure that can auto-genarate SQL queries using exec method</title>
		<link>http://www.ilearnttoday.com/dynamic-stored-procedure</link>
		<comments>http://www.ilearnttoday.com/dynamic-stored-procedure#comments</comments>
		<pubDate>Thu, 06 Oct 2011 13:11:45 +0000</pubDate>
		<dc:creator>Menol</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Menol]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[exec]]></category>
		<category><![CDATA[execute]]></category>
		<category><![CDATA[flexible dynamic stored procedure]]></category>
		<category><![CDATA[parameterize]]></category>

		<guid isPermaLink="false">http://www.ilearnttoday.com/?p=513</guid>
		<description><![CDATA[06-10-2011 Have you ever wanted to write a flexible and dynamic stored procedure that would allow you to send the table<a href="http://www.ilearnttoday.com/dynamic-stored-procedure" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p><span style="color: #c0c0c0;">06-10-2011</span><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-5478118713208336";
/* LeadIn */
google_ad_slot = "2638602320";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Have you ever wanted to write a flexible and dynamic stored procedure that would allow you to send the table name as a parameter?</p>
<p>Have you ever wanted to write a flexible and dynamic stored procedure that would allow you to send only the condition but also the column name you want to include in the where clause?</p>
<p>Well I did. I wanted to create a stored procedure that would take Table name, Criteria column name  and the Target criteria value as parameters and create the SQL query dynamically.</p>
<p>Usually, we have to write our SQL code in the stored procedure body where we cannot treat our sql statement as a string.</p>
<p>The way to achieve this, however, is by using the Exec method provided in SQL.</p>
<p>Exec (execute) allows you to execute a command or a character string that contains Transact-SQL command(s).</p>
<p>Without wasting more time, following is the code I used to achieve my goal:</p>
<pre class="brush: sql; title: ; notranslate">
CREATE PROCEDURE GetRowCountByStringColumn

@TableName nvarchar(50),
@CriteriaColumnName nvarchar(50),
@CriteriaValue nvarchar(150)
AS
BEGIN

EXEC('SELECT  Count(*) FROM ' + @TableName
+ ' WHERE ' + @CriteriaColumnName + ' = ''' + @CriteriaValue + '''')

END
GO
</pre>
<p>As you can see the procedure takes three arguments:</p>
<p>TableName<br />
CriteriaColumnName &#8211; the name of the column that should be checked in the where clause<br />
CriteriaValue &#8211; the value the Criteria Column Name should be checked against</p>
<p>The exec command creates the SQL command (at run time) and executes it.</p>
<p>This helped me to create many dynamic stored procedures for my current project and saved me from having to create stored procedures for each table.</p>
<p><span style="color: #008000;">Was this post helpful to you? How can I improve? – Your comment is highly appreciated!</span></p>
<p><span style="color: #c0c0c0;">Cassian Menol Razeek</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ilearnttoday.com/dynamic-stored-procedure/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Structure-Conduct-Performance Model</title>
		<link>http://www.ilearnttoday.com/the-structure-conduct-performance-model</link>
		<comments>http://www.ilearnttoday.com/the-structure-conduct-performance-model#comments</comments>
		<pubDate>Sat, 28 May 2011 08:21:30 +0000</pubDate>
		<dc:creator>Menol</dc:creator>
				<category><![CDATA[Management]]></category>
		<category><![CDATA[Menol]]></category>
		<category><![CDATA[Strategic Management]]></category>
		<category><![CDATA[Evaluating Performance of Firms]]></category>
		<category><![CDATA[Managing Strategy]]></category>
		<category><![CDATA[MBA]]></category>
		<category><![CDATA[S-C-P Model]]></category>
		<category><![CDATA[strategy]]></category>
		<category><![CDATA[The Structure-Conduct-Performance Model]]></category>

		<guid isPermaLink="false">http://www.ilearnttoday.com/?p=465</guid>
		<description><![CDATA[2010-04-01 In 1930s, a group of economists developed an approach to understand relationship among a firm’s environment, behaviour and performance.<a href="http://www.ilearnttoday.com/the-structure-conduct-performance-model" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p><span style="color: #c0c0c0;">2010-04-01</span></p>
<p>In 1930s, a group of economists  developed an approach to understand relationship among a firm’s  environment, behaviour and performance. This theoretical framework,  since then, is known as the <strong>Structure</strong>-<strong>Conduct</strong>-Performance (S-C-P) Model.</p>
<p><img class="alignleft size-full wp-image-466" title="Structure-Conduct-Performance model" src="http://www.ilearnttoday.com/wp-content/uploads/2011/05/Structure-Conduct-Performance.bmp" alt="Structure-Conduct-Performance model" width="577" height="498" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong><strong>Structure</strong>,</strong> in this model refers to the <strong>structure</strong> of the industry in which the firm is operating. According to their  findings, following factors could be used by a firm to measure the  industry <strong>structure</strong> it’s operating in.</p>
<ul>
<li>Number of Competing Firms</li>
<li>Homogeneity of Products</li>
<li>Cost of Entry and Exit</li>
</ul>
<p><strong><strong>Conduct</strong></strong> refers to the set of strategies that the firm implement to gain competitive advantage over its rivals.</p>
<p><strong>Performance</strong> in the s-c-p model has two meanings:</p>
<ol>
<li>Performance of the individual firm</li>
<li>Performance of the economy as a whole</li>
</ol>
<p><strong>The Link Among <strong>Structure</strong>, <strong>Conduct</strong> and Performance</strong></p>
<p>Attributes of the industry <strong>structure</strong> define the range of options and constraints a firm has to face. In  highly competitive industries, firms have a very limited motion space as  they are only let with a very few options too many constraints when  compared to options. In such setting, both firm’s <strong>conduct</strong> and long term performance are determined by the industry <strong>structure</strong> making (in general) firms only able to gain competitive (not competitive advantage).</p>
<p>On the other hand, in less competitive industries, firms have the liberty of large ranges of <strong>conduct</strong> options and fewer constraints, enabling capable firms to gain  competitive advantages. However, even at this type of setting, the  industry <strong>structure</strong> can impact on firms critically such as deciding how long a firm can maintain its competitive advantage.</p>
<p><span style="color: #008000;">Was this post helpful to you? How can I improve? – Your comment is highly appreciated!</span></p>
<p><span style="color: #c0c0c0;">Cassian Menol Razeek</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ilearnttoday.com/the-structure-conduct-performance-model/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A Simple JavaScript To Get English Language Definition From A Dictionary</title>
		<link>http://www.ilearnttoday.com/a-simple-javascript-to-get-english-language-definition-from-a-dictionary</link>
		<comments>http://www.ilearnttoday.com/a-simple-javascript-to-get-english-language-definition-from-a-dictionary#comments</comments>
		<pubDate>Tue, 19 May 2009 17:56:31 +0000</pubDate>
		<dc:creator>Menol</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Menol]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Dictionary]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[javascript:(function(){varword=prompt(Enter Word:);if(word!=null){window.open(http://dictionary.reference.com/browse/+word);}})();]]></category>
		<category><![CDATA[Simple Dictionary]]></category>

		<guid isPermaLink="false">http://www.ilearnttoday.com/?p=414</guid>
		<description><![CDATA[2009-05-19 English is not my first language so I use online dictionaries frequently as a part of my daily routine<a href="http://www.ilearnttoday.com/a-simple-javascript-to-get-english-language-definition-from-a-dictionary" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="color: #c0c0c0;">2009-05-19</span></p>
<p class="MsoNormal" style="text-align: justify;">English is not my first language so I use online dictionaries frequently as a part of my daily routine to clarify and learn unfamiliar words as I read through articles in the Internet.</p>
<p class="MsoNormal" style="text-align: justify;">I have been using www.ditionary.com for a long time and I had the plan to make this work easy by creating a small application to retrieve the definition with support of a web service. This morning suddenly a new idea hit me to use JavaScript to get the word in the first place and load the appropriate URL.</p>
<p class="MsoNormal" style="text-align: justify;"><strong> How Does This Work?</strong></p>
<p class="MsoNormal" style="text-align: justify;">When a user enters a word in the www.dictionary.com interface it redirects the user to the following dynamic URL.</p>
<p class="MsoNormal" style="text-align: justify;"><strong>http://dictionary.reference.com/browse/</strong><strong><em>Target-Word</em></strong></p>
<p class="MsoNormal" style="text-align: justify;"><em><strong>Target-Word</strong></em> is The word we are seeking the definition for</p>
<p class="MsoNormal" style="text-align: justify;">What this JavaScript does is it retrieves the desired word from the user via a prompt, generate the appropriate URL according to the above format and open the new URL in a new window or tab so the time taken (under normal circumstance) to, load the web site, type-in the word, wait till the site redirects you, is saved. Now time is only taken for a single server request/response.</p>
<p class="MsoNormal" style="text-align: justify;"><strong> How To Set This Up?</strong></p>
<p class="MsoNormal" style="text-align: justify;">It’s simple, just <span style="font-size: 10pt; font-family: Arial;">add a new favorite (for IE) or bookmark (for FireFox) in your browser and paste following code as the URL (for IE) or Location (for FireFox):</span></p>
<p class="MsoNormal" style="text-align: justify;"><strong><em><span style="font-size: 10pt; font-family: Verdana;">javascript:(function(){var%20word=prompt(%22Enter Word:%22);if(word!=null){window.open(%22http://dictionary.reference.com/browse/%22+word);}})();</span></em></strong></p>
<div id="attachment_529" class="wp-caption alignleft" style="width: 310px"><a href="http://www.ilearnttoday.com/a-simple-javascript-to-get-english-language-definition-from-a-dictionary/addbookmark-fox" rel="attachment wp-att-529"><img class="size-medium wp-image-529" title="Add bookmark dialog box in firefox" src="http://www.ilearnttoday.com/wp-content/uploads/2009/05/AddBookmark-Fox-300x224.png" alt="Add bookmark dialog box in firefox" width="300" height="224" /></a><p class="wp-caption-text">Add bookmark dialog box in firefox</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="font-family: Arial; font-size: x-small;"><span style="font-size: 10pt; font-family: Arial;">Now, when you open the favorite/bookmark, it will ask you for the word you want to look for and open the definition in a new window/tab.</span></span></p>
<p>&nbsp;</p>
<div id="attachment_530" class="wp-caption alignleft" style="width: 310px"><a href="http://www.ilearnttoday.com/wp-content/uploads/2009/05/dic-input.png"><img class="size-medium wp-image-530" title="Sample use of the script" src="http://www.ilearnttoday.com/wp-content/uploads/2009/05/dic-input-300x97.png" alt="Sample use of the script" width="300" height="97" /></a><p class="wp-caption-text">Sample use of the script</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="font-family: Arial; font-size: x-small;"><span style="font-size: 10pt; font-family: Arial;">It’s easier to use if you add the bookmark/favorite as a button into your bookmark/links toolbar</span></span></p>
<p class="MsoNormal">
<div id="attachment_531" class="wp-caption alignleft" style="width: 100px"><a href="http://www.ilearnttoday.com/wp-content/uploads/2009/05/Button.png"><img class="size-full wp-image-531" title="Bookmark button" src="http://www.ilearnttoday.com/wp-content/uploads/2009/05/Button.png" alt="Bookmark button" width="90" height="39" /></a><p class="wp-caption-text">Bookmark button</p></div>
<p class="MsoNormal"><span style="font-family: Arial; font-size: x-small;"><span style="font-family: Arial; font-size: 10pt;"><br />
</span></span></p>
<p style="text-align: justify;">
<p style="text-align: justify;">This small script helps me a lot daily so I hope this would help you too!</p>
<p style="text-align: justify;"><span style="color: #008000;">Was this post helpful to you? How can I improve? &#8211; </span><span style="color: #008000;">Your comment is highly appreciated!</span></p>
<p style="text-align: justify;"><span style="color: #c0c0c0;">Cassian Menol Razeek</span></p>
<p class="MsoNormal" style="text-align: justify;">
<input id="gwProxy" type="hidden" /><!--Session data--><br />
<input id="jsProxy" onclick="jsCall();" type="hidden" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ilearnttoday.com/a-simple-javascript-to-get-english-language-definition-from-a-dictionary/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>D LINQ : How to Map Columns Which Auto Generate Values At the Database</title>
		<link>http://www.ilearnttoday.com/d-linq-how-to-map-columns-which-auto-generate-values-at-the-database</link>
		<comments>http://www.ilearnttoday.com/d-linq-how-to-map-columns-which-auto-generate-values-at-the-database#comments</comments>
		<pubDate>Mon, 11 May 2009 17:37:17 +0000</pubDate>
		<dc:creator>Menol</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Menol]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[.NET exception]]></category>
		<category><![CDATA[annotation]]></category>
		<category><![CDATA[auto-generate]]></category>
		<category><![CDATA[Cannot insert explicit value for identity column in table 'tbl_Process' when IDENTITY_INSERT is set to OFF]]></category>
		<category><![CDATA[DLINQ]]></category>
		<category><![CDATA[IDENTITY_INSERT]]></category>
		<category><![CDATA[IsDbGenerated]]></category>
		<category><![CDATA[IsDbGenerated:=True]]></category>
		<category><![CDATA[LINQ]]></category>
		<category><![CDATA[primary key]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server exception]]></category>
		<category><![CDATA[Windows Application]]></category>

		<guid isPermaLink="false">http://www.ilearnttoday.com/?p=390</guid>
		<description><![CDATA[2009-05-11 I have being working on a software application made on .Net and recently my client asked me to use<a href="http://www.ilearnttoday.com/d-linq-how-to-map-columns-which-auto-generate-values-at-the-database" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><!--[endif]--><span style="color: silver;">2009-05-11</span></p>
<p><script type="text/javascript"><!--
google_ad_client = "ca-pub-5478118713208336";
/* LeadIn */
google_ad_slot = "2638602320";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p style="text-align: justify;">I have being working on a software application made on .Net and recently my client asked me to use D LINQ instead of SQL.</p>
<p style="text-align: justify;">D LINQ has great benefits loaded! As I started working with DLINQ I started to know that preventing SQL injection is not a headache anymore and misspelled SQL queries will not trouble agian at run time because DLINQ generates all necessary SQL inside the framework!</p>
<p style="text-align: justify;">I chose to use annotations inside the class instead of using separate xml file. Following is a part of the first class I ported to D LINQ.</p>
<p style="text-align: justify;">
<pre class="brush: vb; title: ; notranslate">&lt;/p&gt;
_
Public Class Process
_
Public ProcessID As Integer
_
Public BusinessProcessID As String
_
Public ProcessText As String
...
...
</pre>
<p style="text-align: justify;">ProcessID column is the primary key of my database table tbl_Process.</p>
<p style="text-align: justify;">Important Point: I use database to auto-generate values for the primary key column (integer value incremented by one).</p>
<p style="text-align: justify;">So when I run the application, It gave me this unexpected error:</p>
<p style="text-align: justify;"><strong><em>Cannot insert explicit value for identity column in table &#8216;tbl_Process&#8217; when IDENTITY_INSERT is set to OFF.</em></strong></p>
<p style="text-align: justify;">Basically, the <strong><em>IDENTITY_INSERT</em></strong> when using the database to auto generate value for a field but when I ran a SQL insert statement at the database end it worked fine!</p>
<p style="text-align: justify;">After some tough time I found out the solution for this problem!</p>
<p style="text-align: justify;">When we use an auto-generate field in a data table we have to specifically mention it in the matching field in the appropriate class.</p>
<p style="text-align: justify;">The code to state this is:</p>
<p style="text-align: justify;"><em>Syntax:</em></p>
<p style="text-align: justify;"><strong><em>IsDbGenerated:=True</em></strong></p>
<p style="text-align: justify;">This has to be added to the annotation added for the specific column like:</p>
<p style="text-align: justify;">
<pre class="brush: vb; title: ; notranslate">&lt;/p&gt;
_
Public ProcessID As Integer
</pre>
<p style="text-align: justify;">Now D LINQ can understand that the field value is auto-generated by the database!</p>
<p style="text-align: justify;"><span style="color: green;">Was this post helpful to you? How can I improve? &#8211; Your comment is highly appreciated!</span></p>
<p style="text-align: justify;"><span style="color: silver;">Cassian Menol Razeek</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ilearnttoday.com/d-linq-how-to-map-columns-which-auto-generate-values-at-the-database/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Six Advices to Succeed in Online Paid Surveys</title>
		<link>http://www.ilearnttoday.com/six-advices-to-succeed-in-online-paid-surveys</link>
		<comments>http://www.ilearnttoday.com/six-advices-to-succeed-in-online-paid-surveys#comments</comments>
		<pubDate>Sat, 14 Mar 2009 18:30:59 +0000</pubDate>
		<dc:creator>Menol</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Earn Online]]></category>
		<category><![CDATA[Finance]]></category>
		<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Menol]]></category>
		<category><![CDATA[Money]]></category>
		<category><![CDATA[Online Paid Surveys]]></category>
		<category><![CDATA[Surveys]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[advice]]></category>
		<category><![CDATA[affiliate marketing]]></category>
		<category><![CDATA[bank account]]></category>
		<category><![CDATA[be your own boss]]></category>
		<category><![CDATA[boost survey income]]></category>
		<category><![CDATA[cash]]></category>
		<category><![CDATA[coupon codes]]></category>
		<category><![CDATA[Don't Go After Fortunes]]></category>
		<category><![CDATA[don't lose your money]]></category>
		<category><![CDATA[earn]]></category>
		<category><![CDATA[earn by online surveys]]></category>
		<category><![CDATA[earn survey money]]></category>
		<category><![CDATA[earnings]]></category>
		<category><![CDATA[how to boost income]]></category>
		<category><![CDATA[how to earn money online]]></category>
		<category><![CDATA[how to Select Survey Sites]]></category>
		<category><![CDATA[Internet money]]></category>
		<category><![CDATA[lose money]]></category>
		<category><![CDATA[millions of people]]></category>
		<category><![CDATA[online surveys]]></category>
		<category><![CDATA[Paid]]></category>
		<category><![CDATA[paid surveys]]></category>
		<category><![CDATA[payment limitations]]></category>
		<category><![CDATA[payment options]]></category>
		<category><![CDATA[Paypal]]></category>
		<category><![CDATA[secrets of online surveys]]></category>
		<category><![CDATA[Select Survey Sites]]></category>
		<category><![CDATA[Six Advices to Succeed in Online Paid Surveys]]></category>
		<category><![CDATA[survey]]></category>
		<category><![CDATA[surveying]]></category>
		<category><![CDATA[well paid survey sites]]></category>
		<category><![CDATA[What Do I Get For Responding To Surveys]]></category>

		<guid isPermaLink="false">http://www.ilearnttoday.com/?p=372</guid>
		<description><![CDATA[2009-03-14 I have been working with many survey sites in the Internet and I have learnt a lot of lessons.<a href="http://www.ilearnttoday.com/six-advices-to-succeed-in-online-paid-surveys" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="color: silver;">2009-03-14</span></p>
<p style="text-align: justify;">I have been working with many survey sites in the Internet and I have learnt a lot of lessons. I learnt some of these when I was researching about online survey sites and most of these lessons are learnt by experience. So I thought to share my knowledge with the rest of the world hoping it would help someone out there.</p>
<p>So in this article, I will give a set of advices that I have learnt in the hard way&#8230;</p>
<p style="text-align: left;"><strong>Rule 1 &#8211; Don&#8217;t Select Survey Sites From Lists Rated By Other People</strong></p>
<p style="text-align: justify;">Many people in the Internet are involved in <strong>affiliate </strong>marketing. Many surveying sites pay bloggers when they refer a new person to their site. So don&#8217;t believe in those lists such as &#8220;Top 10 Most Paid Survey Sites&#8221;, &#8220;Top 5 Survey Companies&#8221;, etc. because the TOP site of those lists is the site that pays the blogger most! So my advice is not to believe in those ranked lists.</p>
<p style="text-align: left;"><strong>Rule 2 &#8211; Ask the site this question: &#8221; What Do I Get For Responding To Surveys? &#8220;</strong></p>
<p style="text-align: justify;">The answer depends on the site you are going to work with. Some sites pay money and some sites pay by other means such as coupon codes and sweepstakes entries while some sites are charity sites where you get non-paid public service surveys.</p>
<p style="text-align: left;"><strong>Rule 3 &#8211; Work </strong><strong>Only </strong><strong>For Cash</strong></p>
<p style="text-align: justify;">As I mentioned there are many sites which pays you in indirect methods such as coupon codes. My advice is never work on surveys unless they pay you by money because there is no way to measure the value of your work. They will give you a coupon code or sweepstakes entry at the end of your days work and you still have to go around the corner to get your own earnings. Since most of the times these are given as discounts, you have to spend more money and buy something to apply those discounts. In simple words, you only feel you earn but you never get your earnings into your hands.</p>
<p style="text-align: justify;">The worst problem is some coupon codes may not be useful for you at the moment and some discounts may not be available in your region. You have to take this very seriously if you are not living in the same country or region as the origin of the site where it is operational.</p>
<p style="text-align: left;"><strong>Rule 4 &#8211; Check Available Payment Methods</strong></p>
<p style="text-align: justify;">Your computer may simply get surveys through the site without any problems or delays but it doesn&#8217;t mean your payment gets to your bank account in the same speed. Go and check the payment options supported by the site. Some sites support various payment methods while some sites only have one or two methods.</p>
<p style="text-align: justify;">For most payment methods there are limitations across countries. This isn&#8217;t a problem if you are located in the same country where the site is operational but if you are living in a different region or a country you have to be more concerned about this matter.<br />
For an example, you may be able to create a Paypal account from your country but you may not be able to accept payments to that account because Paypal doesn&#8217;t support that service in your country. In such situations if your site does not have suitable options you may lose your money.</p>
<p style="text-align: left;"><strong>Rule 5 &#8211; Don&#8217;t Go After Fortunes</strong></p>
<p style="text-align: justify;">There&#8217;s no such thing as easy money! Remember this as you go on finding for survey sites because you will face sites that say they would pay bulks of money for each survey. My advice according to what I have learnt so far is don&#8217;t go for those sites because the more money they promise, the more chances for that site to be a scam. Unfortunately, many people around the world get into these scams everyday. The best thing is to find a site that pays a reasonable and especially practical price for your work.</p>
<p style="text-align: left;"><strong>Rule 6 &#8211; Work Hard! There&#8217;s No Boss To Push You Forward!</strong></p>
<p style="text-align: justify;">If you are working in a company then you have a boss looking at you to make sure you meet company expectations and to kick you off if you lose performance. In this case, you are your own boss. The good news is there&#8217;s no one to kick you off and you own everything you earn. The bad news is you have to take care of everything. Especially you have to keep your motivation up. It&#8217;s not easy to do something of your own without postponing. You must dedicate yourself to the work at least till you reach a solid level of ground to stand on.</p>
<p style="text-align: justify;">In this new office you don&#8217;t have office times. You have your freedom and at the same time you have all responsibilities on your shoulders. In simple words, It&#8217;s your baby go ahead and grow it!</p>
<p style="text-align: justify;"><strong>Don&#8217;t look for fortunes, Work hard and make your own fortune!</strong></p>
<p style="text-align: justify;"><span style="color: #008000;">Was this post helpful to you? How can I improve? &#8211; </span><span style="color: #008000;">Your comment is highly appreciated!</span></p>
<p style="text-align: justify;"><span style="color: #c0c0c0;">Cassian Menol Razeek</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ilearnttoday.com/six-advices-to-succeed-in-online-paid-surveys/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Blood Brain Barrier</title>
		<link>http://www.ilearnttoday.com/the-blood-brain-barrier</link>
		<comments>http://www.ilearnttoday.com/the-blood-brain-barrier#comments</comments>
		<pubDate>Thu, 08 Jan 2009 13:47:14 +0000</pubDate>
		<dc:creator>Menol</dc:creator>
				<category><![CDATA[Health]]></category>
		<category><![CDATA[Living]]></category>
		<category><![CDATA[Menol]]></category>
		<category><![CDATA['end-feet']]></category>
		<category><![CDATA[AIDS]]></category>
		<category><![CDATA[alcohol]]></category>
		<category><![CDATA[amino]]></category>
		<category><![CDATA[amino acid]]></category>
		<category><![CDATA[anesthetics]]></category>
		<category><![CDATA[B-B-B]]></category>
		<category><![CDATA[BBB]]></category>
		<category><![CDATA[blood]]></category>
		<category><![CDATA[blood and brain]]></category>
		<category><![CDATA[Blood Brain Barrier]]></category>
		<category><![CDATA[Blood Brain Barrier Diagram]]></category>
		<category><![CDATA[Blood Brain Barrier illustration]]></category>
		<category><![CDATA[blood capillaries]]></category>
		<category><![CDATA[body defense mechanisms]]></category>
		<category><![CDATA[brain]]></category>
		<category><![CDATA[brain fluid]]></category>
		<category><![CDATA[capillaries]]></category>
		<category><![CDATA[carbon dioxide]]></category>
		<category><![CDATA[Carriers]]></category>
		<category><![CDATA[compounds]]></category>
		<category><![CDATA[compounds of blood]]></category>
		<category><![CDATA[critical organ]]></category>
		<category><![CDATA[efflux pumps]]></category>
		<category><![CDATA[electric signals]]></category>
		<category><![CDATA[fat-soluble]]></category>
		<category><![CDATA[fat-soluble medicine]]></category>
		<category><![CDATA[Glucose]]></category>
		<category><![CDATA[human blood]]></category>
		<category><![CDATA[important orga]]></category>
		<category><![CDATA[ingredients of blood]]></category>
		<category><![CDATA[lipid]]></category>
		<category><![CDATA[manage memory]]></category>
		<category><![CDATA[membranes]]></category>
		<category><![CDATA[molecule]]></category>
		<category><![CDATA[neuron mesh]]></category>
		<category><![CDATA[neurons]]></category>
		<category><![CDATA[operations inside our body]]></category>
		<category><![CDATA[oxygen]]></category>
		<category><![CDATA[Problems of BBB]]></category>
		<category><![CDATA[protect the brain]]></category>
		<category><![CDATA[protecting the brain]]></category>
		<category><![CDATA[protein]]></category>
		<category><![CDATA[protein synthesis]]></category>
		<category><![CDATA[send electric signals]]></category>
		<category><![CDATA[The Blood Brain Barrier]]></category>
		<category><![CDATA[tight junctions]]></category>
		<category><![CDATA[unusual capillaries]]></category>
		<category><![CDATA[volume of the brain]]></category>
		<category><![CDATA[walls of capillaries]]></category>
		<category><![CDATA[water soluble medicine]]></category>
		<category><![CDATA[water soluble substances in the blood]]></category>
		<category><![CDATA[water-soluble]]></category>
		<category><![CDATA[what is blood made of]]></category>
		<category><![CDATA[what is Blood-Brain Barrier made of]]></category>
		<category><![CDATA[Where AIDS virus live]]></category>
		<category><![CDATA[Where is Blood-Brain Barrier Located]]></category>
		<category><![CDATA[‘efflux pumps’]]></category>

		<guid isPermaLink="false">http://ilearnttoday.wordpress.com/?p=283</guid>
		<description><![CDATA[2009-01-08 I wouldn&#8217;t be wrong if I say the Brain is the most vital organ in the human body. As<a href="http://www.ilearnttoday.com/the-blood-brain-barrier" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><span style="color:silver;">2009-01-08</span></p>
<p><script type="text/javascript"><!--
google_ad_client = "ca-pub-5478118713208336";
/* LeadIn */
google_ad_slot = "2638602320";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p style="text-align:justify;">I wouldn&#8217;t be wrong if I say the Brain is the most vital organ in the human body. As we all know brain handles most of critical operations inside our body such as keeping and managing memories, organizing our activities, keep other organs perform, and so much more.</p>
<p style="text-align:justify;">The Brain, as most of us already know, works by sending electric signals through complex meshes of neurons so the brain has to maintain a good environment around to keep the accuracy of this electrical signal flow.</p>
<p style="text-align:justify;">The environment inside the brain is the brain fluid so the ingredients or components of the brain fluids are very critical to the functionalities of brain.</p>
<p style="text-align:justify;">Any organ of the body gets the supplies it needs through blood and so does the brain. Ingredients of human blood vary depending on the situation, food, problems of other organs, etc. so it is obvious that the blood is not the same all the time.</p>
<p style="text-align:justify;">Not like other organs, the brain has to think a lot before extracting anything from blood because if the chemical levels of brain fluid vary it directly affects the signals passed through neurons. If the brain fluid is not maintained in an optimum level, the environment will become too noisy for neurons and sending signals would become like talking in the middle of a party.</p>
<p style="text-align:justify;">So there is this Blood-Brain Barrier (which is also referred to as BBB) which extracts the necessary ingredients such as Oxygen and Glucose and make sure nothing else is taken in.</p>
<p style="text-align:justify;"><strong>Blood-Brain Barrier Diagram</strong></p>
<p style="text-align:justify;"><a href="http://ilearnttoday.files.wordpress.com/2009/01/blood-brain-barrier.jpg"><img class="alignnone size-full wp-image-287" title="blood-brain-barrier" src="http://ilearnttoday.files.wordpress.com/2009/01/blood-brain-barrier.jpg" alt="blood-brain-barrier" width="507" height="444" /></a></p>
<p style="text-align:justify;">Photo courtesy:  Malcolm Segal</p>
<p style="text-align:justify;"><strong><br />
Where is Blood-Brain Barrier Located?</strong></p>
<p style="text-align:justify;">BBB is located at the brain blood capillaries. These capillaries are unusual in several aspects from capillaries in other organs. Those aspects are briefly described below:</p>
<ul style="text-align:justify;" type="disc">
<li class="MsoNormal">The end-points of cells which      make up the walls of these capillaries are sealed together at their edges      by tight junctions which are a key component in the barrier. These      junctions make sure that water soluble substances in the blood don&#8217;t pass      between the edges of cells.</li>
<li class="MsoNormal">These capillaries are      enclosed by flattened cells which altogether called the &#8216;end-feet&#8217; which      also work as a (partial and active) barrier.</li>
<li class="MsoNormal">The only way for water      soluble substances in the blood is through the walls of capillaries. These      walls plays the other role in the barrier because their cell membranes are      made up of a lipid/protein belayed only allowing flat-soluble molecules      including those of oxygen and carbon dioxide, anesthetics and alcohol to      pass through the walls of capillaries.</li>
<li class="MsoNormal">In the capillary wall there      are three classes of ‘efflux pumps’ which pumps various lipid-soluble      molecules back in to the blood out of the brain.</li>
</ul>
<p style="text-align:justify;">However, the brain needs water soluble compounds such as Glucose for energy production and amino acids for protein synthesis so there are these <em>Carriers </em>in the walls of capillaries which allow those compounds to go through the wall and move waste products and unwanted molecules in the opposite direction.</p>
<p style="text-align:justify;">The blood-brain barrier plays another key role in keeping the volume of the brain at a constant level. Since the brain is contained inside a rigid skull it is important to keep the fluid from free movement thus keeping volume of the brain static.</p>
<p style="text-align:justify;"><strong>Problems Related to BBB</strong></p>
<p style="text-align:justify;">Even though BBB is made in the sole purpose of protecting the brain, it has become a barrier to medicine to access the brain. Since many medicines are water soluble, they are barricaded at the BBB. This process has made it very hard to treat brain tumors and infections such as AIDS virus.</p>
<p style="text-align:justify;">In fact, AIDS virus uses BBB as a shield by hiding behind the BBB from body defense mechanisms.</p>
<p style="text-align:justify;">Due to such reasons medicine has to be made as fat-soluble but then a new problem arises because then the medicine will be absorbed by most cells of the body which may be toxic.</p>
<p style="text-align:justify;">The alternatives are making drug molecules that can ride on natural transporter proteins or use drugs that can open the Blood-Brain-Barrier.</p>
<p style="text-align:justify;"><span style="color:#008000;">Was this post helpful to you? How can I improve? &#8211; </span><span style="color:#008000;">Your comment is highly appreciated!</span></p>
<p style="text-align:justify;"><span style="color:#c0c0c0;">Cassian Menol Razeek</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ilearnttoday.com/the-blood-brain-barrier/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What is a Permalink</title>
		<link>http://www.ilearnttoday.com/what-is-a-permalink</link>
		<comments>http://www.ilearnttoday.com/what-is-a-permalink#comments</comments>
		<pubDate>Wed, 07 Jan 2009 00:01:25 +0000</pubDate>
		<dc:creator>Menol</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Menol]]></category>
		<category><![CDATA[Permalink]]></category>
		<category><![CDATA[access archived posts]]></category>
		<category><![CDATA[archived posts]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[blog address]]></category>
		<category><![CDATA[blog posts]]></category>
		<category><![CDATA[blog uri]]></category>
		<category><![CDATA[blog url]]></category>
		<category><![CDATA[database driven]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[maintain blog]]></category>
		<category><![CDATA[maintain blog post]]></category>
		<category><![CDATA[maintain post]]></category>
		<category><![CDATA[non permanent link]]></category>
		<category><![CDATA[readable URL]]></category>
		<category><![CDATA[static url]]></category>
		<category><![CDATA[static web address]]></category>
		<category><![CDATA[unique url]]></category>
		<category><![CDATA[What is a Permalink]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ilearnttoday.wordpress.com/?p=245</guid>
		<description><![CDATA[2009-01-07 If you maintain or work around blogs then the word &#8220;Permalink&#8221; should be familiar to you. In early stages<a href="http://www.ilearnttoday.com/what-is-a-permalink" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><span style="color:#c0c0c0;">2009-01-07</span></p>
<p style="text-align:justify;">If you maintain or work around blogs then the word &#8220;Permalink&#8221; should be familiar to you.</p>
<p style="text-align:justify;">In early stages of the Internet all web addresses or URLs were static or permanent but as the web became more complex where large volumes of content is added daily, it became hard to handle in the usual way.</p>
<p style="text-align:justify;">The involvement of database driven systems was necessary to manage large volumes of web content.</p>
<p style="text-align:justify;">The URLs used with these systems were not human readable and each URL is only brings a main or central page and loads the requested page from their.</p>
<p style="text-align:justify;">Ex/ Non-Permanent  (Old) link for the Wikipedia page for Albert Einstein</p>
<p style="text-align:justify;">http://en.wikipedia.org/w/index.php?title=Albert_Einstein</p>
<p style="text-align:justify;">As you can see, these dynamic URLs do not provide a permanent link to the relevant page. The part &#8220;Albert_Einstein&#8221; is only a parameter sent to the internal CGI of Wikipedia.</p>
<p style="text-align:justify;">A Permalink is a permanent link for each item in the web site or domain. With this concept each page of a domain gets a unique permanent URL.</p>
<p style="text-align:justify;">Ex/ Permalink for  the Wikipedia page for Albert Einstein</p>
<p style="text-align:justify;">http://en.wikipedia.org/wiki/Albert_Einstein</p>
<p style="text-align:justify;"><strong>Why Permalinks are Helpful for Bloggers&#8230;?</strong></p>
<p style="text-align:justify;">In blogs, post goes down the stack as new posts arrive. So when permalink is enabled, each of your post gets an individual URL so that anyone on the Internet can link to your post from their site or blog without depending on what happens at your blog.</p>
<p style="text-align:justify;"><span style="color:#008000;">Was this post helpful to you? How can I improve? &#8211; </span><span style="color:#008000;">Your comment is highly appreciated!</span></p>
<p style="text-align:justify;"><span style="color:#c0c0c0;">Cassian Menol Razeek</span></p>
<p><strong>Recommended Books:</strong></p>
<ul>
<li>
<a href="http://www.amazon.com/gp/product/0061709719?ie=UTF8&amp;tag=ileto-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0061709719">What Would Google Do?</a><img src="http://www.assoc-amazon.com/e/ir?t=ileto-20&amp;l=as2&amp;o=1&amp;a=0061709719" width="1" height="1" border="0" alt="" style="border:none!important;margin:0!important;" />
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.ilearnttoday.com/what-is-a-permalink/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# ASP.NET &#8211; GridView : How to Use Checkbox in Gridview to Select Multiple Rows</title>
		<link>http://www.ilearnttoday.com/c-aspnet-gridview-select-multiple-rows-in-a-grid-view-using-check-boxes</link>
		<comments>http://www.ilearnttoday.com/c-aspnet-gridview-select-multiple-rows-in-a-grid-view-using-check-boxes#comments</comments>
		<pubDate>Tue, 06 Jan 2009 00:38:39 +0000</pubDate>
		<dc:creator>Menol</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#.NET]]></category>
		<category><![CDATA[GridView]]></category>
		<category><![CDATA[Menol]]></category>
		<category><![CDATA[Select Multiple Rows]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[add a template field to a gridview]]></category>
		<category><![CDATA[Add button]]></category>
		<category><![CDATA[Add New Column...]]></category>
		<category><![CDATA[Adding a Checkbox to the Template Column]]></category>
		<category><![CDATA[Adding a Template Column]]></category>
		<category><![CDATA[Adding a Template Column to gridview]]></category>
		<category><![CDATA[ArrayList]]></category>
		<category><![CDATA[Available fields]]></category>
		<category><![CDATA[BoundField]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Checkbox Tasks]]></category>
		<category><![CDATA[checked property of checkbox]]></category>
		<category><![CDATA[columns]]></category>
		<category><![CDATA[Control Control.FindControl(string controlID)]]></category>
		<category><![CDATA[Control Control.FindControl(string id)]]></category>
		<category><![CDATA[data table]]></category>
		<category><![CDATA[DataBinder]]></category>
		<category><![CDATA[DataBinder.Eval]]></category>
		<category><![CDATA[datagrid]]></category>
		<category><![CDATA[datatable]]></category>
		<category><![CDATA[dummy data]]></category>
		<category><![CDATA[Edit Columns...]]></category>
		<category><![CDATA[Edit Templates]]></category>
		<category><![CDATA[Eval]]></category>
		<category><![CDATA[explicit cast]]></category>
		<category><![CDATA[explicitly cast]]></category>
		<category><![CDATA[FindControl(controlID)]]></category>
		<category><![CDATA[for each loop]]></category>
		<category><![CDATA[get value of templatefield from datagrid]]></category>
		<category><![CDATA[get value of templatefield from gridview]]></category>
		<category><![CDATA[Grid View]]></category>
		<category><![CDATA[Grid View Row]]></category>
		<category><![CDATA[GridView Tasks]]></category>
		<category><![CDATA[GridViewRow]]></category>
		<category><![CDATA[GridViewRow class]]></category>
		<category><![CDATA[header text]]></category>
		<category><![CDATA[How to Databind a Template column]]></category>
		<category><![CDATA[How to Databind a Template Field]]></category>
		<category><![CDATA[How to Use Checkbox in Gridview to Select Multiple Rows]]></category>
		<category><![CDATA[Insert Check boxes in grid view]]></category>
		<category><![CDATA[Insert Checkboxes in datagrid]]></category>
		<category><![CDATA[Insert Checkboxes in gridview]]></category>
		<category><![CDATA[Item Template]]></category>
		<category><![CDATA[Populating the GridView]]></category>
		<category><![CDATA[postback]]></category>
		<category><![CDATA[refresh grid]]></category>
		<category><![CDATA[Retrieving the Status of Checkboxes]]></category>
		<category><![CDATA[Select Multiple Rows in a Grid View]]></category>
		<category><![CDATA[Select Multiple Rows in a Grid View Using Check Boxes]]></category>
		<category><![CDATA[Select Multiple Rows in a GridView]]></category>
		<category><![CDATA[Select Multiple Rows in a GridView Using CheckBoxes]]></category>
		<category><![CDATA[template column]]></category>
		<category><![CDATA[template field]]></category>
		<category><![CDATA[templatefield]]></category>
		<category><![CDATA[TemplateField properties]]></category>

		<guid isPermaLink="false">http://ilearnttoday.wordpress.com/?p=221</guid>
		<description><![CDATA[2009-01-06 I wanted to select multiple rows of the grid view using check boxes to select each row. In this<a href="http://www.ilearnttoday.com/c-aspnet-gridview-select-multiple-rows-in-a-grid-view-using-check-boxes" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p><span style="color: #c0c0c0;">2009-01-06</span><br />
<script type="text/javascript">// <![CDATA[
    google_ad_client = "ca-pub-5478118713208336"; /* LeadIn */ google_ad_slot = "2638602320"; google_ad_width = 468; google_ad_height = 15;
// ]]&gt;</script><br />
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>I wanted to select multiple rows of the grid view using check boxes to select each row.</p>
<p>In this post I will discus how and what I did to achieve this goal&#8230;</p>
<p>I used a template column which holds a check box to select or de-select a row in the grid view.</p>
<p><strong>Adding a Template Column:</strong></p>
<p>There are several simple ways to add a template column/field to your grid view:</p>
<ol type="1">
<li class="MsoNormal">Select your grid view and then click on the small task button (the small square button located to the top right corner of the grid view control) and select &#8220;Add New Column&#8230;&#8221; from the &#8220;GridView Tasks&#8221; box.
<ol type="1">
<li class="MsoNormal">Use &#8220;TemplateField&#8221; as the field type</li>
<li class="MsoNormal">Provide a header text</li>
<li class="MsoNormal">click ok</li>
</ol>
</li>
<li class="MsoNormal">Or&#8230; Select &#8220;Edit Columns&#8230;&#8221; from the &#8220;GridView Tasks&#8221; box and
<ol type="1">
<li class="MsoNormal">Select &#8220;TemplateField&#8221; from the &#8220;Available fields: &#8221; section</li>
<li class="MsoNormal">Click &#8220;Add&#8221; button</li>
<li class="MsoNormal">Provide a header text in the &#8220;TemplateField properties: &#8221; section</li>
<li class="MsoNormal">click ok</li>
</ol>
</li>
<li class="MsoNormal">Or&#8230; Select &#8220;Columns&#8221; from the grid view properties and follow the steps described in the earlier method (2<sup>nd </sup>one)</li>
</ol>
<p><strong>Adding a Checkbox to the Template Column:</strong></p>
<ol type="1">
<li class="MsoNormal">Select &#8220;Edit Templates&#8221; from the &#8220;GridView Tasks&#8221; box. Then it will show you the inside of the template.</li>
<li class="MsoNormal">Select &#8220;Item Template&#8221; from the &#8220;Display: &#8221; drop down list.</li>
<li class="MsoNormal">Drag and drop a check box in the item template area.</li>
<li class="MsoNormal">Give an id as &#8220;chkid&#8221; for the check box &#8211; You can use a different name if you want but make sure you don&#8217;t confuse when I use this name in later parts of this article.</li>
<li class="MsoNormal">Click &#8220;End Template Editing&#8221; from the &#8220;GridView Tasks&#8221; box.</li>
</ol>
<p>If you have completed the above steps correctly, you should see the expected checkbox column added in to the grid view.</p>
<p><img class="alignnone size-full wp-image-223" title="Design View" src="http://ilearnttoday.files.wordpress.com/2009/01/11.jpg" alt="Design View" width="378" height="265" /><br />
As you can see in the image above, in my example I use a Name column along with the check box column to make this clearer.</p>
<p><strong>How to Databind the Template Field:</strong></p>
<p>I use a datatable to populate the gridview so we have to databind our two columns.</p>
<p>The second column name is a &#8220;BoundField&#8221; so to databind it simply specify the name of the data table column you want to bind to this column in &#8220;DataField&#8221; property under &#8220;Data&#8221; property set in the fields dialog box you get when adding the second column (use one of the ways I described above to add a column).</p>
<p>Databinding the template field is a bit tricky, but not hard.</p>
<ol type="1">
<li class="MsoNormal">Click &#8220;Edit Templates&#8221; from the &#8220;GridView Tasks&#8221; box so that you will see the check box.</li>
<li class="MsoNormal">Click on the small button with a triangle in the upper right corner of the check box which is similar to the one we clicked on the grid view to get the &#8220;Checkbox Tasks&#8221; box and then click on the &#8220;Edit Databindings&#8230;&#8221; link inside that box.</li>
</ol>
<p>You can use this dialog box to bind any property of the control to a data source column</p>
<p>In this example we will bind the &#8220;Checked&#8221; property of our check box to a Boolean column called &#8220;Selected&#8221; of the data source.</p>
<p>For that:</p>
<ul type="disc">
<li class="MsoNormal">Select &#8220;Checked&#8221; from the Bindable Properties section and enter following in the Custom Binding section:
<ul type="circle">
<li class="MsoNormal">DataBinder.Eval(Container, &#8220;DataItem.<span style="color: #ff0000;"><span style="color: red;">Selected</span></span>&#8220;)</li>
</ul>
</li>
<li class="MsoNormal">Note: the word &#8220;Selected&#8221; (in red color) refers to the &#8220;Selected&#8221; field of the data source.</li>
</ul>
<p><strong>Populating the GridView:</strong></p>
<p>As I described earlier I create a simple data table in the page load, populate it with some dummy data and then bind the grid view with it.</p>
<p>Note: I have used several methods to add data to a table to illustrate those to you.</p>
<p>The Code:</p>
<pre class="brush: csharp; title: ; notranslate">
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DataTable dt = new DataTable();
dt.Columns.Add(new DataColumn(&quot;Selected&quot;, System.Type.GetType(&quot;System.Boolean&quot;)));
dt.Columns.Add(new DataColumn(&quot;Name&quot;, System.Type.GetType(&quot;System.String&quot;)));

DataRow dr = dt.NewRow();
dr.ItemArray = new object[] { false, &quot;Cassian&quot; };
dt.Rows.Add(dr);
dt.Rows.Add(new object[] { false, &quot;Menol&quot; });
dt.Rows.Add(new object[] { false, &quot;Razeek&quot; });

this.GridView1.DataSource = dt;
this.GridView1.DataBind();
}
}
</pre>
<p>There are several things that I&#8217;d like to bring to your notice:</p>
<ul type="disc">
<li class="MsoNormal">I have checked for postback to make sure this data population is not occurred in general post backs. The reason is the framework refreshes when the grid view is re-bound.</li>
<li class="MsoNormal">So if we don&#8217;t do this check, whenever we click on a check box, a postback occurs, the grid gets refreshed, the check boxes get cleared, we cannot keep track of what check boxes are selected&#8230;!</li>
<li class="MsoNormal">As illustrate in my code, you can either first populate a datarow and then add it to the datatable</li>
<li class="MsoNormal">Or you can directly add the items using only one line of code.</li>
</ul>
<p><strong>Retrieving the Status of Checkboxes:</strong></p>
<p>Now we have completed the interface and the user now can select several rows of the grid view using the appropriate check box.</p>
<p>The next step is to capture the rows that the user has selected.</p>
<p>In my example, I have used a button, once clicked; it will display the list of names of the selected people.</p>
<p>I will introduce the code first and then explain it to you.</p>
<pre class="brush: csharp; title: ; notranslate">
protected void Button1_Click(object sender, EventArgs e)
{
ArrayList names = new ArrayList();
foreach (GridViewRow gvr in this.GridView1.Rows)
{
if (((CheckBox)gvr.FindControl(&quot;chkid&quot;)).Checked == true)
{
names.Add(gvr.Cells[1].Text);
}
}

this.Label1.Text = string.Empty;
foreach (object itm in names)
{
this.Label1.Text += &quot; &quot; + itm.ToString();
}
}
</pre>
<p>Note following:</p>
<ul type="disc">
<li class="MsoNormal">The code iterates through each row of the grid view using a for each loop, takes the Name field from the selected rows and then adds those names into a arraylist</li>
<li class="MsoNormal">The GridViewRow refers to a single row in a grid view</li>
<li class="MsoNormal"><strong><em>Control Control.FindControl(string controlID)</em></strong> &#8211; GridViewRow class provides this method to find a specific control within a grid view row. This method becomes very handy in situations like this where we cannot directly access the control from the code because those are generated at run time</li>
<li class="MsoNormal">FindControl returns a control so you have to explicitly cast the returned control to the type of it</li>
</ul>
<p><strong> Screen Shot:</strong></p>
<p><strong><a href="http://ilearnttoday.files.wordpress.com/2009/01/21.jpg"><img class="alignnone size-full wp-image-234" title="21" src="http://ilearnttoday.files.wordpress.com/2009/01/21.jpg" alt="21" width="367" height="213" /></a><br />
</strong></p>
<p><strong>Conclusion:</strong></p>
<p>We can use a template field with a checkbox to allow user to select multiple rows using checkboxes associated to each row. When the button is clicked, checkbox of each row is checked for its status and the row is selected if the user has chosen it.</p>
<p><script type="text/javascript">// <![CDATA[
   google_ad_client = "pub-5478118713208336"; /* BelowPost_BlendIn */ google_ad_slot = "0823141458"; google_ad_width = 468; google_ad_height = 60;
// ]]&gt;</script><br />
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p style="text-align: justify;"><span style="color: #008000;">Was this post helpful to you? How can I improve? &#8211; </span><span style="color: #008000;">Your comment is highly appreciated!</span></p>
<p style="text-align: justify;"><span style="color: #c0c0c0;">Cassian Menol Razeek</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ilearnttoday.com/c-aspnet-gridview-select-multiple-rows-in-a-grid-view-using-check-boxes/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>How Fibonacci Sequence Relates to Nature</title>
		<link>http://www.ilearnttoday.com/how-fibonacci-sequence-relates-to-nature</link>
		<comments>http://www.ilearnttoday.com/how-fibonacci-sequence-relates-to-nature#comments</comments>
		<pubDate>Mon, 05 Jan 2009 08:50:50 +0000</pubDate>
		<dc:creator>Menol</dc:creator>
				<category><![CDATA[Fibonacci Sequence]]></category>
		<category><![CDATA[Mathematics]]></category>
		<category><![CDATA[Menol]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[baby rabbits]]></category>
		<category><![CDATA[Fibonacci]]></category>
		<category><![CDATA[How Fibonacci Sequence Relates to Nature]]></category>
		<category><![CDATA[how many pairs of rabbits can be produced from a single pair of rabbits in one year]]></category>
		<category><![CDATA[Italian mathematician]]></category>
		<category><![CDATA[Leonardo Pisano]]></category>
		<category><![CDATA[Leonardo Pisano was also knows as Fibonacci]]></category>
		<category><![CDATA[mathematical pattern]]></category>
		<category><![CDATA[meaning "son of Bonacci"]]></category>
		<category><![CDATA[pineapple scales]]></category>
		<category><![CDATA[rabbit reproduction]]></category>
		<category><![CDATA[spiral patterns]]></category>
		<category><![CDATA[The Golden number]]></category>
		<category><![CDATA[The Golden Ratio]]></category>
		<category><![CDATA[value of golden ratio]]></category>
		<category><![CDATA[what is The Golden Ratio]]></category>
		<category><![CDATA[X Fibonacci Numbers]]></category>

		<guid isPermaLink="false">http://ilearnttoday.wordpress.com/?p=256</guid>
		<description><![CDATA[2009-01-05 Italian mathematician Leonardo Pisano had a problem worked on to find a mathematical pattern to answer the question: how<a href="http://www.ilearnttoday.com/how-fibonacci-sequence-relates-to-nature" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><span style="color:#c0c0c0;">2009-01-05</span></p>
<p style="text-align:justify;">Italian mathematician <strong>Leonardo Pisano </strong>had a problem worked on to find a mathematical pattern to answer the question: how many pairs of rabbits can be produced from a single pair of rabbits in one year?</p>
<p style="text-align:justify;">He carried out his work on following assumptions:</p>
<ol style="text-align:justify;">
<li>Rabbits are kept under optimal conditions</li>
<li>Female rabbits always give birth to pairs</li>
<li>Each pair consists of one male and one female</li>
</ol>
<p style="text-align:justify;">If we start with a pair of new born rabbits and monitor the population monthly&#8230;</p>
<p style="text-align:justify;">Rabbits cannot reproduce until they are at least one month old. So in the first month there will only be one pair and at the end of the second month the pair is able to reproduce so the female rabbit will give birth to a new pair.</p>
<p style="text-align:justify;">In month three the original pair gives birth to yet another pair while their first pair of baby rabbits grows to the adulthood.</p>
<p style="text-align:justify;">In the beginning of month four there are two pairs of adult rabbits and one pair growing so both of these adult pairs give birth to two new pairs. So the total number of pairs in the end of the fourth month:</p>
<p style="padding-left:60px;text-align:justify;">Adult pairs : 2<br />
Growing pairs : 3<br />
Total : 5</p>
<p style="text-align:justify;">Like wise the pattern goes on as follows:</p>
<p style="text-align:justify;">1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, &#8230; on to the infinity. Each number is the sum of the previous two.</p>
<p style="text-align:justify;"><strong><strong>Leonardo Pisano </strong>found this interesting pattern on 1202. How come the pattern is named Fibonacci Sequence? </strong></p>
<p style="text-align:justify;"><strong>Leonardo Pisano </strong>was also knows as  <strong><strong>Fibonacci</strong>, </strong>meaning &#8220;son of Bonacci&#8221; giving this name to his finding.</p>
<p style="text-align:justify;"><strong>Are rabbits the only species having relevance to Fibonacci Sequence?</strong></p>
<p style="text-align:justify;">Many natural entities such as Fruits, Vegetables and Seed Heads show spiral patterns which follows Fibonacci Sequence.</p>
<p style="text-align:justify;"><strong>Some examples:</strong></p>
<p style="text-align:justify;">If you look at the array of seeds in a center of a sunflower you should notice that those seeds are arranged in spiral patterns curving left and right. And the amazing thing is if you count the number of these spirals you will get a Fibonacci number. The most amazing thing is if you divide the spirals pointed to left and right and count those separately you will get two consecutive Fibonacci numbers!</p>
<p style="text-align:justify;"><img class="alignnone" title="Flower follwing fibonacci sequence" src="http://britton.disted.camosun.bc.ca/fibslide/fibanim6.gif" alt="" width="480" height="360" /></p>
<p style="text-align:justify;">If you look at a pineapple you can notice that its scales make a spiral pattern and if you look closer and count those scales in each spiral you will notice that those numbers reflect Fibonacci Sequence.</p>
<p style="text-align:justify;"><img class="alignnone" title="Pineapple follwing fibonacci sequence" src="http://britton.disted.camosun.bc.ca/fibslide/fibanim7.gif" alt="" width="238" height="360" /></p>
<p style="text-align:justify;">Same thing can be noticed in pinecones, cauliflower and many more natural things we live with.</p>
<p style="text-align:justify;">This sequence has an amazing link with the nature and that&#8217;s may be why the ratio between two of these numbers is called <strong>The Golden Ratio</strong>.</p>
<p style="text-align:justify;"><strong>The Golden Ratio</strong>:</p>
<p style="text-align:justify;">Two numbers are considered as in The Golden Ratio if the ratio between the sum of two numbers and the larger one is equal to the ratio between the larger one and the smaller.</p>
<p style="text-align:justify;">In mathematics the golden ratio is often denoted by the Greek letter <em>ϕ (phi).</em></p>
<p style="text-align:justify;"><em>The value of the golden ratio: </em><em>ϕ</em><em> = 1.6180339887&#8230;</em></p>
<p style="text-align:justify;"><span style="color:#008000;">Was this post helpful to you? How can I improve? &#8211; </span><span style="color:#008000;">Your comment is highly appreciated!</span></p>
<p style="text-align:justify;"><span style="color:#c0c0c0;">Cassian Menol Razeek</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ilearnttoday.com/how-fibonacci-sequence-relates-to-nature/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My Goals for the New Year 2009!</title>
		<link>http://www.ilearnttoday.com/my-goals-for-the-new-year-2009</link>
		<comments>http://www.ilearnttoday.com/my-goals-for-the-new-year-2009#comments</comments>
		<pubDate>Thu, 01 Jan 2009 17:43:55 +0000</pubDate>
		<dc:creator>Menol</dc:creator>
				<category><![CDATA[Menol]]></category>
		<category><![CDATA[Setting Goals]]></category>
		<category><![CDATA[Goals for the new year]]></category>
		<category><![CDATA[happy new year]]></category>
		<category><![CDATA[My Goals for the New Year 2009]]></category>
		<category><![CDATA[new year goals]]></category>
		<category><![CDATA[Set goals]]></category>
		<category><![CDATA[setting goals for the new year]]></category>

		<guid isPermaLink="false">http://ilearnttoday.wordpress.com/?p=213</guid>
		<description><![CDATA[2009-01-01 It&#8217;s a New Year&#8230;! I want to be much more improved in both my personal and professional lives when<a href="http://www.ilearnttoday.com/my-goals-for-the-new-year-2009" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><span style="color:#c0c0c0;">2009-01-01</span></p>
<p style="text-align:justify;">It&#8217;s a New Year&#8230;!</p>
<p style="text-align:justify;">I want to be much more improved in both my personal and professional lives when I look back at the end of this New Year!</p>
<p style="text-align:justify;">So I decided to make a list of goals I want to achieve in this year. And I will make sure that I achieve my goals as I go on living this New Year.</p>
<p style="text-align:justify;"><strong>Goals for My Professional Life:</strong></p>
<p style="text-align:justify;">I have a set of goals which will improve the quality of my professional life and will increase the value of me in the profession. If I directly go to the list&#8230;</p>
<ol style="text-align:justify;">
<li>Obtain MCTS Certification</li>
<li>Obtain SCJP Certification</li>
<li>Be More Competent on My Work at My Office</li>
<li>Make My Clients Happy</li>
<li>Find More Freelance Work</li>
<li>Create Several Methods to Earn Some Money Online</li>
</ol>
<p style="text-align:justify;"><strong>Goals for My Personal Life:</strong></p>
<ol style="text-align:justify;">
<li>Keep My Family Happy</li>
<li>Focus More on Health of My and My Girl Friend&#8217;s Parents</li>
<li>Cut Extra Fat I Have Gained and Get the Body I Used to Have</li>
<li>Learn to Play Guitar &#8211; ANYHOW!!!</li>
<li>Go to Swim</li>
</ol>
<p style="text-align:justify;"><strong>My Financial Goals:</strong></p>
<ol style="text-align:justify;">
<li>Open a Fixed Deposit Before the End of June</li>
</ol>
<p style="text-align:justify;"><strong>Other Goals:<br />
</strong></p>
<ol style="text-align:justify;">
<li>Obtain Work Permit</li>
<li>Give Clothes Regularly to Children of a Poor Family</li>
</ol>
<p style="text-align:justify;">These are the Goals I have in my mind at the moment and I will update the list as I go on&#8230;!</p>
<p style="text-align:justify;">Yes, I know, I will have to work so hard if I want to have all of these achieved at the end of this year. I will definitely make this dream come true with the great help from my parents, my girl friend and all my friends around me and always the best helper, The God!</p>
<p style="text-align:justify;">I wish the whole world, a Happy and Successful New Year!</p>
<p style="text-align:justify;"><span style="color:#c0c0c0;">Cassian Menol Razeek</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ilearnttoday.com/my-goals-for-the-new-year-2009/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

