<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>w3mentor</title> <link>http://w3mentor.com</link> <description>Learning web technologies simplified!</description> <lastBuildDate>Sat, 17 Jul 2010 20:20:43 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/w3mentor" /><feedburner:info uri="w3mentor" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>w3mentor</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item><title>Displaying Content of a Text File in PHP</title><link>http://feedproxy.google.com/~r/w3mentor/~3/klkIipG9y6Y/</link> <comments>http://w3mentor.com/learn/php/php-file-handling/file-read/displaying-content-of-a-text-file-in-php/#comments</comments> <pubDate>Sat, 17 Jul 2010 20:20:43 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[File read]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10378</guid> <description>&amp;#160; &amp;#60;?php $file='info.txt'; $fobj=fopen&amp;#40;$file,&amp;#34;r&amp;#34;&amp;#41;; $text=fread&amp;#40;$fobj, filesize&amp;#40;$file&amp;#41;&amp;#41;; echo&amp;#40;&amp;#34;&amp;#60;h2&amp;#62;&amp;#60;font color='blue'&amp;#62;Displaying Content of a Text File&amp;#60;/font&amp;#62;&amp;#60;h2&amp;#62;&amp;#34;&amp;#41;; echo&amp;#40;&amp;#34;&amp;#60;br&amp;#62;&amp;#34;&amp;#41;; echo&amp;#40;&amp;#34;&amp;#60;font size=3&amp;#62;&amp;#34;&amp;#41;; echo&amp;#40;$text&amp;#41;; echo&amp;#40;&amp;#34;&amp;#60;/font&amp;#62;&amp;#34;&amp;#41;; fclose&amp;#40;$fobj&amp;#41;; ?&amp;#62;&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/klkIipG9y6Y" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/php/php-file-handling/file-read/displaying-content-of-a-text-file-in-php/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/php/php-file-handling/file-read/displaying-content-of-a-text-file-in-php/</feedburner:origLink></item> <item><title>Creating Constructors with Classes in PHP</title><link>http://feedproxy.google.com/~r/w3mentor/~3/8Q8nquB-d8Y/</link> <comments>http://w3mentor.com/learn/php/object-oriented-php/constructor/creating-constructors-with-classes-in-php/#comments</comments> <pubDate>Sat, 17 Jul 2010 20:18:31 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Constructor]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10376</guid> <description>&amp;#60;?php class student &amp;#123; var $name; var $age; var $grade; function student&amp;#40;$n,$a,$g&amp;#41; &amp;#123; $this-&amp;#62;name=$n; $this-&amp;#62;age=$a; $this-&amp;#62;grade=$g; &amp;#125; function display_info&amp;#40;&amp;#41; &amp;#123; echo&amp;#40;&amp;#34;&amp;#60;p&amp;#62;Name [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/8Q8nquB-d8Y" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/php/object-oriented-php/constructor/creating-constructors-with-classes-in-php/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/php/object-oriented-php/constructor/creating-constructors-with-classes-in-php/</feedburner:origLink></item> <item><title>Example process of creating classes and objects in PHP</title><link>http://feedproxy.google.com/~r/w3mentor/~3/eJBwq2Y1WoA/</link> <comments>http://w3mentor.com/learn/php/object-oriented-php/classesobjects/example-process-of-creating-classes-and-objects-in-php/#comments</comments> <pubDate>Sat, 17 Jul 2010 20:14:59 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Classes/Objects]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10374</guid> <description>&amp;#60;?php class emp &amp;#123; var $name; var $address; var $dept; function assign_info&amp;#40;$n,$a,$d&amp;#41; &amp;#123; $this-&amp;#62;name=$n; $this-&amp;#62;state=$a; $this-&amp;#62;dept=$d; &amp;#125; function display_info&amp;#40;&amp;#41; &amp;#123; echo&amp;#40;&amp;#34;&amp;#60;p&amp;#62;Employee [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/eJBwq2Y1WoA" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/php/object-oriented-php/classesobjects/example-process-of-creating-classes-and-objects-in-php/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/php/object-oriented-php/classesobjects/example-process-of-creating-classes-and-objects-in-php/</feedburner:origLink></item> <item><title>Using Custom Error Handler in PHP</title><link>http://feedproxy.google.com/~r/w3mentor/~3/FtLxCxIxl_o/</link> <comments>http://w3mentor.com/learn/php/php-language-basics/functions-php-language-basics-php/using-custom-error-handler-in-php/#comments</comments> <pubDate>Sat, 17 Jul 2010 20:10:03 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Functions]]></category> <category><![CDATA[error]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10372</guid> <description>&amp;#60;?php error_reporting&amp;#40;E_ALL&amp;#41;; function ErrHandler&amp;#40;$errorno, $errorstr, $errorfile, $errorline&amp;#41; &amp;#123; $display = true; $notify = false; $halt_script = false; $error_msg = &amp;#34;&amp;#60;br&amp;#62;The $errorno error is occurring at $errorline in $errorfile&amp;#60;br&amp;#62;&amp;#34;; switch&amp;#40;$errorno&amp;#41; &amp;#123; case E_USER_NOTICE: [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/FtLxCxIxl_o" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/php/php-language-basics/functions-php-language-basics-php/using-custom-error-handler-in-php/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/php/php-language-basics/functions-php-language-basics-php/using-custom-error-handler-in-php/</feedburner:origLink></item> <item><title>Generating Errors Using the trigger_error() Function in PHP</title><link>http://feedproxy.google.com/~r/w3mentor/~3/X_1X7rm_jFw/</link> <comments>http://w3mentor.com/learn/php/php-language-basics/functions-php-language-basics-php/generating-errors-using-the-trigger_error-function-in-php/#comments</comments> <pubDate>Sat, 17 Jul 2010 20:08:42 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Functions]]></category> <category><![CDATA[error]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10370</guid> <description>The assert() function checks whether the divisor is zero or not. The error_log() function sends the message, Cannot perform division by zero, to the log file specified by the second parameter when the divisor is zero.&amp;#60;?php // set the error reporting level for this script error_reporting&amp;#40;E_USER_ERROR&amp;#41;; if &amp;#40;assert&amp;#40;$divisor == 0&amp;#41;&amp;#41; &amp;#123; error_log&amp;#40;&amp;#34;Cannot perform division by zero&amp;#34;, 3, &amp;#34;var/www/html/PHP_XML/error.log&amp;#34;&amp;#41;; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/X_1X7rm_jFw" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/php/php-language-basics/functions-php-language-basics-php/generating-errors-using-the-trigger_error-function-in-php/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/php/php-language-basics/functions-php-language-basics-php/generating-errors-using-the-trigger_error-function-in-php/</feedburner:origLink></item> <item><title>Using Nested Functions in PHP</title><link>http://feedproxy.google.com/~r/w3mentor/~3/hH4z1AEOsIM/</link> <comments>http://w3mentor.com/learn/php/php-language-basics/functions-php-language-basics-php/using-nested-functions-in-php/#comments</comments> <pubDate>Sat, 17 Jul 2010 20:06:42 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Functions]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10367</guid> <description>&amp;#60;?php function msg&amp;#40;&amp;#41; &amp;#123; echo&amp;#40;&amp;#34;&amp;#60;center&amp;#62;&amp;#60;h2&amp;#62;Displaying even numbers&amp;#60;/h2&amp;#62;&amp;#60;/center&amp;#62;&amp;#60;p&amp;#62;&amp;#60;p&amp;#62;&amp;#34;&amp;#41;; function displayeven&amp;#40;&amp;#41; &amp;#123; $ctr=0; echo&amp;#40;&amp;#34;&amp;#60;font size=4&amp;#62;&amp;#34;&amp;#41;; for&amp;#40;$i=2;$i&amp;#60;=100;$i+=2&amp;#41; &amp;#123; echo&amp;#40;&amp;#34;$i &amp;#38;nbsp;&amp;#38;nbsp;&amp;#38;nbsp;&amp;#34;&amp;#41;; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/hH4z1AEOsIM" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/php/php-language-basics/functions-php-language-basics-php/using-nested-functions-in-php/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/php/php-language-basics/functions-php-language-basics-php/using-nested-functions-in-php/</feedburner:origLink></item> <item><title>Example of User-Defined Function in PHP</title><link>http://feedproxy.google.com/~r/w3mentor/~3/Jz3XDqaC-gw/</link> <comments>http://w3mentor.com/learn/php/php-language-basics/functions-php-language-basics-php/example-of-user-defined-function-in-php/#comments</comments> <pubDate>Sat, 17 Jul 2010 20:03:14 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Functions]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10365</guid> <description>&amp;#60;?php echo&amp;#40;&amp;#34;&amp;#60;center&amp;#62;&amp;#60;h2&amp;#62;Displaying even numbers&amp;#60;/h2&amp;#62;&amp;#60;/center&amp;#62;&amp;#60;p&amp;#62;&amp;#60;p&amp;#62;&amp;#34;&amp;#41;; function displayeven&amp;#40;&amp;#41; &amp;#123; $ctr=0; echo&amp;#40;&amp;#34;&amp;#60;font size=4&amp;#62;&amp;#34;&amp;#41;; for&amp;#40;$i=2;$i&amp;#60;=100;$i+=2&amp;#41; &amp;#123; echo&amp;#40;&amp;#34;$i &amp;#38;nbsp;&amp;#38;nbsp;&amp;#38;nbsp;&amp;#34;&amp;#41;; $ctr++; if&amp;#40;$ctr%10==0&amp;#41; &amp;#123; echo&amp;#40;&amp;#34;&amp;#60;p&amp;#62;&amp;#34;&amp;#41;; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/Jz3XDqaC-gw" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/php/php-language-basics/functions-php-language-basics-php/example-of-user-defined-function-in-php/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/php/php-language-basics/functions-php-language-basics-php/example-of-user-defined-function-in-php/</feedburner:origLink></item> <item><title>Using the for Loop in PHP</title><link>http://feedproxy.google.com/~r/w3mentor/~3/OLa0OnQWInI/</link> <comments>http://w3mentor.com/learn/php/php-language-basics/for-statement/using-the-for-loop-in-php/#comments</comments> <pubDate>Sat, 17 Jul 2010 20:02:00 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[For statement]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10363</guid> <description>&amp;#60;?php echo&amp;#40;&amp;#34;Prime Numbers between 1 and 30&amp;#60;p&amp;#62;&amp;#34;&amp;#41;; //For loop from 1 to 30 for&amp;#40;$var=1;$var&amp;#60;30;$var++&amp;#41; &amp;#123; $ctr=0; for&amp;#40;$k=2;$k&amp;#60;=$var/2;$k++&amp;#41; &amp;#123; $d=$var%$k; if &amp;#40;$d == 0&amp;#41; &amp;#123; $ctr=1; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/OLa0OnQWInI" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/php/php-language-basics/for-statement/using-the-for-loop-in-php/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/php/php-language-basics/for-statement/using-the-for-loop-in-php/</feedburner:origLink></item> <item><title>Using the while Loop in PHP</title><link>http://feedproxy.google.com/~r/w3mentor/~3/trL9hziIzn0/</link> <comments>http://w3mentor.com/learn/php/php-language-basics/while-statement/using-the-while-loop-in-php/#comments</comments> <pubDate>Sat, 17 Jul 2010 20:00:43 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[While statement]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10361</guid> <description>&amp;#60;?php $a=2; echo&amp;#40;&amp;#34;&amp;#60;p&amp;#62;Even Numbers from 2 to 30&amp;#60;p&amp;#62;&amp;#34;&amp;#41;; while &amp;#40;$a &amp;#60;=30&amp;#41; &amp;#123; echo&amp;#40;&amp;#34;$a &amp;#60;br&amp;#62;&amp;#34;&amp;#41;; $a=$a+2; &amp;#125; ?&amp;#62;&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/trL9hziIzn0" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/php/php-language-basics/while-statement/using-the-while-loop-in-php/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/php/php-language-basics/while-statement/using-the-while-loop-in-php/</feedburner:origLink></item> <item><title>Using the switch case Conditional Statement in PHP</title><link>http://feedproxy.google.com/~r/w3mentor/~3/J544qvH2WI4/</link> <comments>http://w3mentor.com/learn/php/php-language-basics/switch-statement/using-the-switch-case-conditional-statement-in-php/#comments</comments> <pubDate>Sat, 17 Jul 2010 19:59:27 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Switch statement]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10359</guid> <description>&amp;#60;?php //Initializing variables $a = 10; $b = 5; echo&amp;#40;&amp;#34;1. Addition &amp;#60;br&amp;#62;&amp;#34;&amp;#41;; echo&amp;#40;&amp;#34;2. Subtraction &amp;#60;br&amp;#62;&amp;#34;&amp;#41;; echo&amp;#40;&amp;#34;3. Multiplication &amp;#60;br&amp;#62;&amp;#34;&amp;#41;; echo&amp;#40;&amp;#34;4. Division &amp;#60;br&amp;#62;&amp;#34;&amp;#41;; $ch=3; switch &amp;#40;$ch&amp;#41; &amp;#123; case 1: $d=$a+$b; echo&amp;#40;&amp;#34;The sum of the two numbers is $d&amp;#34;&amp;#41;; break; case 2: $d=$a-$b; echo&amp;#40;&amp;#34;The difference of the two numbers is $d&amp;#34;&amp;#41;; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/J544qvH2WI4" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/php/php-language-basics/switch-statement/using-the-switch-case-conditional-statement-in-php/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/php/php-language-basics/switch-statement/using-the-switch-case-conditional-statement-in-php/</feedburner:origLink></item> <item><title>Find maximum of three numbers using IF ELSE in PHP</title><link>http://feedproxy.google.com/~r/w3mentor/~3/y_Gk1_35ybI/</link> <comments>http://w3mentor.com/learn/php/php-language-basics/ifelse-statement/find-maximum-of-three-numbers-using-if-else-in-php/#comments</comments> <pubDate>Sat, 17 Jul 2010 19:55:11 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[IF/ELSE Statement]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10357</guid> <description>&amp;#60;?php $x=10; $y=20; $z=30; if&amp;#40;$x &amp;#62; $y&amp;#41; &amp;#123; if&amp;#40;$x &amp;#62; $z&amp;#41; &amp;#123; echo&amp;#40;&amp;#34;The maximum number is &amp;#34;&amp;#41;; echo&amp;#40;&amp;#34;$x&amp;#60;p&amp;#62;&amp;#34;&amp;#41;; &amp;#125; else &amp;#123; echo&amp;#40;&amp;#34;The maximum number is &amp;#34;&amp;#41;; echo&amp;#40;&amp;#34;$z&amp;#60;p&amp;#62;&amp;#34;&amp;#41;; &amp;#125; &amp;#125; else &amp;#123; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/y_Gk1_35ybI" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/php/php-language-basics/ifelse-statement/find-maximum-of-three-numbers-using-if-else-in-php/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/php/php-language-basics/ifelse-statement/find-maximum-of-three-numbers-using-if-else-in-php/</feedburner:origLink></item> <item><title>Example of IN and NOT IN SQL Queries</title><link>http://feedproxy.google.com/~r/w3mentor/~3/1nACL60TCog/</link> <comments>http://w3mentor.com/learn/mysql/mysql-basics/example-of-in-and-not-in-sql-queries/#comments</comments> <pubDate>Sat, 17 Jul 2010 15:29:28 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[MYSQL Basics]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10355</guid> <description>SELECT id FROM stats WHERE position IN &amp;#40;'Manager', 'Staff'&amp;#41; SELECT ownerid, 'is in both orders &amp;#38; antiques' FROM orders, antiques WHERE ownerid = buyerid UNION SELECT buyerid, 'is in antiques only' FROM antiques WHERE buyerid NOT IN &amp;#40;SELECT ownerid FROM orders&amp;#41;&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/1nACL60TCog" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/mysql/mysql-basics/example-of-in-and-not-in-sql-queries/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/mysql/mysql-basics/example-of-in-and-not-in-sql-queries/</feedburner:origLink></item> <item><title>what are DDL, DML and DQL?</title><link>http://feedproxy.google.com/~r/w3mentor/~3/7OdVJa7dQ3M/</link> <comments>http://w3mentor.com/learn/mysql/mysql-interview-questions/what-are-ddl-dml-and-dql/#comments</comments> <pubDate>Sat, 17 Jul 2010 13:51:11 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[MYSQL Interview Questions]]></category> <category><![CDATA[interview questions]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10353</guid> <description>DDL (Data Definition Language) refers to the CREATE, ALTER and DROP TABLE statements DML (Data Manipulation Language) refers to the INSERT, UPDATE and DELETE statements DQL (Data Query Language) refers to the SELECT statements DCL (Data Control Language) refers to the GRANT and REVOKE statements&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/7OdVJa7dQ3M" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/mysql/mysql-interview-questions/what-are-ddl-dml-and-dql/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/mysql/mysql-interview-questions/what-are-ddl-dml-and-dql/</feedburner:origLink></item> <item><title>How to fix SQL Network Interfaces, error: 26</title><link>http://feedproxy.google.com/~r/w3mentor/~3/J7IDnu6myYY/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-ado-net/how-to-fix-sql-network-interfaces-error-26/#comments</comments> <pubDate>Tue, 13 Jul 2010 19:21:17 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# ADO.NET]]></category> <category><![CDATA[error]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10351</guid> <description>You may get the following error when you have developed an application, and then you move your site to another server (like your web host&amp;#8217;s server): An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/J7IDnu6myYY" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-ado-net/how-to-fix-sql-network-interfaces-error-26/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-ado-net/how-to-fix-sql-network-interfaces-error-26/</feedburner:origLink></item> <item><title>What is a mnemonic?</title><link>http://feedproxy.google.com/~r/w3mentor/~3/J3DaOna_0fI/</link> <comments>http://w3mentor.com/learn/80858086/microprocessor-basics/what-is-a-mnemonic/#comments</comments> <pubDate>Fri, 09 Jul 2010 20:27:44 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Microprocessor Basics]]></category> <category><![CDATA[interview questions]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10349</guid> <description>What is a mnemonic? It is very difficult to understand a program if it is written in either binary or hex code. Thus the manufacturers have devised a symbolic code for each instruction, called a mnemonic.&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/J3DaOna_0fI" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/80858086/microprocessor-basics/what-is-a-mnemonic/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/80858086/microprocessor-basics/what-is-a-mnemonic/</feedburner:origLink></item> <item><title>What are the different jobs that the CPU is expected to do at any given point of time?</title><link>http://feedproxy.google.com/~r/w3mentor/~3/cyKqP9Ttsms/</link> <comments>http://w3mentor.com/learn/80858086/microprocessor-basics/what-are-the-different-jobs-that-the-cpu-is-expected-to-do-at-any-given-point-of-time/#comments</comments> <pubDate>Fri, 09 Jul 2010 20:26:51 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Microprocessor Basics]]></category> <category><![CDATA[interview questions]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10347</guid> <description>What are the different jobs that the CPU is expected to do at any given point of time? The CPU may perform a memory read or write operation, an I/O read or write operation or an internal activity.&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/cyKqP9Ttsms" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/80858086/microprocessor-basics/what-are-the-different-jobs-that-the-cpu-is-expected-to-do-at-any-given-point-of-time/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/80858086/microprocessor-basics/what-are-the-different-jobs-that-the-cpu-is-expected-to-do-at-any-given-point-of-time/</feedburner:origLink></item> <item><title>How does the microprocessor communicate with the memory and input/output devices?</title><link>http://feedproxy.google.com/~r/w3mentor/~3/9KjJeGnxhog/</link> <comments>http://w3mentor.com/learn/80858086/microprocessor-basics/how-does-the-microprocessor-communicate-with-the-memory-and-inputoutput-devices/#comments</comments> <pubDate>Fri, 09 Jul 2010 20:26:17 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Microprocessor Basics]]></category> <category><![CDATA[interview questions]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10345</guid> <description>How does the microprocessor communicate with the memory and input/output devices? The microprocessor communicates with the memory and the Input/Output devices via the three buses, viz., data  bus, address bus and control bus.&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/9KjJeGnxhog" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/80858086/microprocessor-basics/how-does-the-microprocessor-communicate-with-the-memory-and-inputoutput-devices/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/80858086/microprocessor-basics/how-does-the-microprocessor-communicate-with-the-memory-and-inputoutput-devices/</feedburner:origLink></item> <item><title>What are the three main units of a digital computer?</title><link>http://feedproxy.google.com/~r/w3mentor/~3/P0oG5SuiddQ/</link> <comments>http://w3mentor.com/learn/80858086/microprocessor-basics/what-are-the-three-main-units-of-a-digital-computer/#comments</comments> <pubDate>Fri, 09 Jul 2010 20:25:51 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Microprocessor Basics]]></category> <category><![CDATA[interview questions]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10343</guid> <description>What are the three main units of a digital computer? The three main units of a digital computer are: the central processing unit (CPU), the memory unit and the input/output devices.&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/P0oG5SuiddQ" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/80858086/microprocessor-basics/what-are-the-three-main-units-of-a-digital-computer/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/80858086/microprocessor-basics/what-are-the-three-main-units-of-a-digital-computer/</feedburner:origLink></item> <item><title>What is the technology used in microprocessors?</title><link>http://feedproxy.google.com/~r/w3mentor/~3/z8rWB2O2MLU/</link> <comments>http://w3mentor.com/learn/80858086/microprocessor-basics/what-is-the-technology-used-in-microprocessors/#comments</comments> <pubDate>Fri, 09 Jul 2010 20:25:25 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Microprocessor Basics]]></category> <category><![CDATA[interview questions]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10341</guid> <description>What is the technology used in microprocessors? NMOS technology is used in microprocessors.&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/z8rWB2O2MLU" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/80858086/microprocessor-basics/what-is-the-technology-used-in-microprocessors/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/80858086/microprocessor-basics/what-is-the-technology-used-in-microprocessors/</feedburner:origLink></item> <item><title>What is a microprocessor?</title><link>http://feedproxy.google.com/~r/w3mentor/~3/PLeYJztlk_g/</link> <comments>http://w3mentor.com/learn/80858086/microprocessor-basics/what-is-a-microprocessor/#comments</comments> <pubDate>Fri, 09 Jul 2010 20:25:06 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Microprocessor Basics]]></category> <category><![CDATA[interview questions]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10339</guid> <description>What is a microprocessor? A microprocessor may be thought of as a silicon chip around which a microcomputer is built.&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/PLeYJztlk_g" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/80858086/microprocessor-basics/what-is-a-microprocessor/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/80858086/microprocessor-basics/what-is-a-microprocessor/</feedburner:origLink></item> <item><title>When was the first microprocessor developed?</title><link>http://feedproxy.google.com/~r/w3mentor/~3/qcfeUmCgLeo/</link> <comments>http://w3mentor.com/learn/80858086/microprocessor-basics/when-was-the-first-microprocessor-developed/#comments</comments> <pubDate>Fri, 09 Jul 2010 20:24:44 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Microprocessor Basics]]></category> <category><![CDATA[interview questions]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10337</guid> <description>When was the first microprocessor developed? The first microprocessor was developed by BUSICOM of Japan and INTEL of USA in the year 1971.&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/qcfeUmCgLeo" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/80858086/microprocessor-basics/when-was-the-first-microprocessor-developed/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/80858086/microprocessor-basics/when-was-the-first-microprocessor-developed/</feedburner:origLink></item> <item><title>What is meant by distributed processing?</title><link>http://feedproxy.google.com/~r/w3mentor/~3/gN5-S0sbvt4/</link> <comments>http://w3mentor.com/learn/80858086/microprocessor-basics/what-is-meant-by-distributed-processing/#comments</comments> <pubDate>Fri, 09 Jul 2010 20:24:24 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Microprocessor Basics]]></category> <category><![CDATA[interview questions]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10335</guid> <description>What is meant by distributed processing? Distributed processing involves the use of several microprocessors in a single computer system. For example, for such a system, the first microprocessor may control keyboard activities, the second controls storage devices like disk drives, the third controls input/output operations, while the fourth may act as the main system processor.&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/gN5-S0sbvt4" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/80858086/microprocessor-basics/what-is-meant-by-distributed-processing/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/80858086/microprocessor-basics/what-is-meant-by-distributed-processing/</feedburner:origLink></item> <item><title>On which model is based the basic architecture of a digital computer?</title><link>http://feedproxy.google.com/~r/w3mentor/~3/TtG2WV_OUFQ/</link> <comments>http://w3mentor.com/learn/80858086/microprocessor-basics/on-which-model-is-based-the-basic-architecture-of-a-digital-computer/#comments</comments> <pubDate>Fri, 09 Jul 2010 20:23:59 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Microprocessor Basics]]></category> <category><![CDATA[interview questions]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10333</guid> <description>On which model is based the basic architecture of a digital computer? The basic architecture of a digital computer is based on Von Neumann model.&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/TtG2WV_OUFQ" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/80858086/microprocessor-basics/on-which-model-is-based-the-basic-architecture-of-a-digital-computer/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/80858086/microprocessor-basics/on-which-model-is-based-the-basic-architecture-of-a-digital-computer/</feedburner:origLink></item> <item><title>Send a webrequest and display webresponse along with headers in C#</title><link>http://feedproxy.google.com/~r/w3mentor/~3/N3n8TsF8aDc/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/send-a-webrequest-and-display-webresponse-along-with-headers-in-c/#comments</comments> <pubDate>Thu, 08 Jul 2010 20:47:46 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# Network Programming]]></category> <category><![CDATA[request]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10331</guid> <description>&amp;#60;%@ Import Namespace=&amp;#34;System.IO&amp;#34; %&amp;#62; &amp;#60;%@ Import Namespace=&amp;#34;System.Net&amp;#34; %&amp;#62; &amp;#60;script language=&amp;#34;C#&amp;#34; runat=&amp;#34;server&amp;#34;&amp;#62; void btnSubmit_OnClick&amp;#40;Object source, EventArgs e&amp;#41; &amp;#123; // Create a WebRequest WebRequest wrRequest; wrRequest = WebRequestFactory.Create&amp;#40;txtURL.Text&amp;#41;; &amp;#160; // Get the Response from the Request WebResponse wrResponse = wrRequest.GetResponse&amp;#40;&amp;#41;; // Display the Request headers lblHTML.Text = &amp;#34;&amp;#60;b&amp;#62;Request Header Information:&amp;#60;/b&amp;#62;&amp;#60;br&amp;#62;&amp;#34;; foreach &amp;#40;String strHeader in wrRequest.Headers&amp;#41; lblHTML.Text += [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/N3n8TsF8aDc" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/send-a-webrequest-and-display-webresponse-along-with-headers-in-c/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/send-a-webrequest-and-display-webresponse-along-with-headers-in-c/</feedburner:origLink></item> <item><title>Sending Mail Using SMTP in C# .NET</title><link>http://feedproxy.google.com/~r/w3mentor/~3/22eIjkmjsvE/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mail/sending-mail-using-smtp-in-c-net/#comments</comments> <pubDate>Wed, 07 Jul 2010 16:13:57 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# ASP.NET Mail]]></category> <category><![CDATA[example]]></category> <category><![CDATA[mail]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10323</guid> <description>In .Net, sending mail via SMTP is quite simple because all the references that you need to send mail have been incorporated by the IDE and a simple function would look as below:/// &amp;#60;summary&amp;#62; /// /// &amp;#60;/summary&amp;#62; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/22eIjkmjsvE" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mail/sending-mail-using-smtp-in-c-net/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mail/sending-mail-using-smtp-in-c-net/</feedburner:origLink></item> <item><title>Force send receive action in C# Outlook Interop</title><link>http://feedproxy.google.com/~r/w3mentor/~3/T885veldHtQ/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-interoperability/force-send-receive-action-in-c-outlook-interop/#comments</comments> <pubDate>Wed, 07 Jul 2010 16:12:07 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# Interoperability]]></category> <category><![CDATA[example]]></category> <category><![CDATA[mail]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10321</guid> <description>//outlook functionality of send and receive .* enable send then disable * public void fnSendRecieve&amp;#40;&amp;#41; &amp;#123; try &amp;#123; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/T885veldHtQ" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-interoperability/force-send-receive-action-in-c-outlook-interop/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-interoperability/force-send-receive-action-in-c-outlook-interop/</feedburner:origLink></item> <item><title>Read mail from a public folder using Outlook Interop in C#</title><link>http://feedproxy.google.com/~r/w3mentor/~3/Y1FcbvNzn9U/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-interoperability/read-mail-from-a-public-folder-using-outlook-interop-in-c/#comments</comments> <pubDate>Wed, 07 Jul 2010 16:10:09 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# Interoperability]]></category> <category><![CDATA[example]]></category> <category><![CDATA[mail]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10319</guid> <description>public void fnReadMail&amp;#40;&amp;#41; &amp;#123; try &amp;#123; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/Y1FcbvNzn9U" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-interoperability/read-mail-from-a-public-folder-using-outlook-interop-in-c/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-interoperability/read-mail-from-a-public-folder-using-outlook-interop-in-c/</feedburner:origLink></item> <item><title>Sending mail Using OutLook in C# ASP.NET</title><link>http://feedproxy.google.com/~r/w3mentor/~3/uxFxCLMYwaI/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-interoperability/sending-mail-using-outlook-in-c-asp-net/#comments</comments> <pubDate>Wed, 07 Jul 2010 16:08:49 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# Interoperability]]></category> <category><![CDATA[email]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10317</guid> <description>When you want to send e-mails in c# from .NET framework you have to import references that will enable your solution to communicate with outlook. You must have installed Microsoft office for you to import this references which is: Microsoft interop for outlook Depending on the version of outlook you have, for office 2003 the version [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/uxFxCLMYwaI" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-interoperability/sending-mail-using-outlook-in-c-asp-net/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-interoperability/sending-mail-using-outlook-in-c-asp-net/</feedburner:origLink></item> <item><title>Generate country list using CultureInfo class in C#</title><link>http://feedproxy.google.com/~r/w3mentor/~3/zTxlco510bM/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/generate-country-list-using-cultureinfo-class-in-c/#comments</comments> <pubDate>Wed, 07 Jul 2010 16:04:36 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# ASP.NET]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10315</guid> <description>/// &amp;#60;summary&amp;#62; /// method for generating a country list, say for populating /// a ComboBox, with country options. We return the /// values in a Generic [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/zTxlco510bM" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/generate-country-list-using-cultureinfo-class-in-c/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/generate-country-list-using-cultureinfo-class-in-c/</feedburner:origLink></item> <item><title>Check if the value is of type decimal in C#</title><link>http://feedproxy.google.com/~r/w3mentor/~3/pWJNSyfc-xI/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-if-the-value-is-of-type-decimal-in-c/#comments</comments> <pubDate>Wed, 07 Jul 2010 16:03:45 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# ASP.NET]]></category> <category><![CDATA[example]]></category> <category><![CDATA[validation]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10313</guid> <description>public static bool validateDecimal&amp;#40;string ParNumber&amp;#41; &amp;#123; try &amp;#123; decimal result; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/pWJNSyfc-xI" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-if-the-value-is-of-type-decimal-in-c/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-if-the-value-is-of-type-decimal-in-c/</feedburner:origLink></item> <item><title>Check if field is mandatory field in C# ASP.NET</title><link>http://feedproxy.google.com/~r/w3mentor/~3/Avre15IlveQ/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-if-field-is-mandatory-field-in-c-asp-net/#comments</comments> <pubDate>Wed, 07 Jul 2010 16:03:19 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# ASP.NET]]></category> <category><![CDATA[example]]></category> <category><![CDATA[validation]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10311</guid> <description>The function expects you pass a string value and the column of a table to validate.private static bool IsMandatory&amp;#40;string text,string column&amp;#41; &amp;#123; try [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/Avre15IlveQ" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-if-field-is-mandatory-field-in-c-asp-net/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-if-field-is-mandatory-field-in-c-asp-net/</feedburner:origLink></item> <item><title>Check if date is valid (future date) in C#</title><link>http://feedproxy.google.com/~r/w3mentor/~3/8-RsS1RbKps/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-if-date-is-valid-future-date-in-c/#comments</comments> <pubDate>Wed, 07 Jul 2010 16:02:22 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# ASP.NET]]></category> <category><![CDATA[example]]></category> <category><![CDATA[validation]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10309</guid> <description>public static bool validateDateNotFuture&amp;#40;string ParDate&amp;#41; &amp;#123; try &amp;#123; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/8-RsS1RbKps" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-if-date-is-valid-future-date-in-c/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-if-date-is-valid-future-date-in-c/</feedburner:origLink></item> <item><title>Regex to check for valid telephone number</title><link>http://feedproxy.google.com/~r/w3mentor/~3/coBmKfmmRRc/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/regex-to-check-for-valid-telephone-number/#comments</comments> <pubDate>Wed, 07 Jul 2010 16:01:46 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# ASP.NET]]></category> <category><![CDATA[example]]></category> <category><![CDATA[validation]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10307</guid> <description>public static bool validateTelePhone&amp;#40;string ParNumber&amp;#41; &amp;#123; &amp;#160; if &amp;#40;!Regex.Match&amp;#40;ParNumber, @&amp;#34;^[1-9]\d{3}-[1-9]\d{3}-\d{4}$&amp;#34;&amp;#41;.Success&amp;#41; &amp;#123; return [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/coBmKfmmRRc" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/regex-to-check-for-valid-telephone-number/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/regex-to-check-for-valid-telephone-number/</feedburner:origLink></item> <item><title>Check for valid percentage in C# .NET</title><link>http://feedproxy.google.com/~r/w3mentor/~3/RlDrV7e_aKI/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-for-valid-percentage-in-c-net/#comments</comments> <pubDate>Wed, 07 Jul 2010 15:59:26 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# ASP.NET]]></category> <category><![CDATA[example]]></category> <category><![CDATA[validation]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10305</guid> <description>public static bool validatePercentage&amp;#40;string ParNumber&amp;#41; &amp;#123; try &amp;#123; Convert.ToDecimal&amp;#40;ParNumber&amp;#41;; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/RlDrV7e_aKI" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-for-valid-percentage-in-c-net/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-for-valid-percentage-in-c-net/</feedburner:origLink></item> <item><title>Check for number in C#</title><link>http://feedproxy.google.com/~r/w3mentor/~3/jVLa-xP_IyI/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-for-number-in-c/#comments</comments> <pubDate>Wed, 07 Jul 2010 15:58:53 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# ASP.NET]]></category> <category><![CDATA[example]]></category> <category><![CDATA[validation]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10303</guid> <description>public static bool validateNumber&amp;#40;string ParNumber&amp;#41; &amp;#123; try &amp;#123; Convert.ToInt32&amp;#40;ParNumber&amp;#41;; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/jVLa-xP_IyI" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-for-number-in-c/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-for-number-in-c/</feedburner:origLink></item> <item><title>Check if value is Money</title><link>http://feedproxy.google.com/~r/w3mentor/~3/SB2LcjXL02A/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-if-value-is-money/#comments</comments> <pubDate>Wed, 07 Jul 2010 15:58:23 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# ASP.NET]]></category> <category><![CDATA[example]]></category> <category><![CDATA[validation]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10301</guid> <description>public static bool validateMoney&amp;#40;string ParMoney&amp;#41; &amp;#123; try &amp;#123; Convert.ToDouble&amp;#40;ParMoney&amp;#41;; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/SB2LcjXL02A" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-if-value-is-money/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-if-value-is-money/</feedburner:origLink></item> <item><title>Check if the value is of type Datetime</title><link>http://feedproxy.google.com/~r/w3mentor/~3/r7OSh9rTNUk/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-if-the-value-is-of-type-datetime/#comments</comments> <pubDate>Wed, 07 Jul 2010 15:57:59 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# ASP.NET]]></category> <category><![CDATA[example]]></category> <category><![CDATA[validation]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10299</guid> <description>public static bool validateDate&amp;#40;string ParDate&amp;#41; &amp;#123; try &amp;#123; Convert.ToDateTime&amp;#40;ParDate&amp;#41;; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/r7OSh9rTNUk" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-if-the-value-is-of-type-datetime/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/check-if-the-value-is-of-type-datetime/</feedburner:origLink></item> <item><title>Computation of hashes</title><link>http://feedproxy.google.com/~r/w3mentor/~3/3JTG5WgPIO4/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/computation-of-hashes/#comments</comments> <pubDate>Wed, 07 Jul 2010 15:51:32 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# ASP.NET]]></category> <category><![CDATA[encode]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10297</guid> <description>Generating hashing for files or keys is often used in programming to identify files, tables or other data collection types. There are different ways of doing this and some are efficient meaning the method of hashing is reliable unlike others which may generate similar keys for different types of bytes./// &amp;#60;summary&amp;#62; /// [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/3JTG5WgPIO4" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/computation-of-hashes/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/computation-of-hashes/</feedburner:origLink></item> <item><title>Of Type example in C# LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/xi461xqJkqU/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/oftype/of-type-example-in-c-linq/#comments</comments> <pubDate>Tue, 06 Jul 2010 19:18:01 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[OfType]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10295</guid> <description>The default OfType operator filters a collection of multiple object types that implements IEnumerable to return only the type of object specified by OfType ’ s argument. The following example filters an ArrayList of Product and Customer objects to return only Customer objects.ArrayList MixedArray = new ArrayList&amp;#40;&amp;#41;; foreach &amp;#40;var p in ProductList&amp;#41; MixedArray.Add&amp;#40;p&amp;#41;; &amp;#160; foreach &amp;#40;var c in CustomerList&amp;#41; MixedArray.Add&amp;#40;c&amp;#41;; &amp;#160; var [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/xi461xqJkqU" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/oftype/of-type-example-in-c-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/oftype/of-type-example-in-c-linq/</feedburner:origLink></item> <item><title>Making REST requests from PHP</title><link>http://feedproxy.google.com/~r/w3mentor/~3/XqJrHA6SxlY/</link> <comments>http://w3mentor.com/learn/php/php-web-services/making-rest-requests-from-php/#comments</comments> <pubDate>Tue, 06 Jul 2010 19:14:31 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[PHP Web Services]]></category> <category><![CDATA[file]]></category> <category><![CDATA[json]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10293</guid> <description>The most simplest way is to use$data = json_decode&amp;#40; file_get_contents&amp;#40;“http://www.w3mentor.com/service.json”) &amp;#41;;This example won’t work on servers that explicitly disable the URL opening behavior, mostly seen in shared hosting environment.&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/XqJrHA6SxlY" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/php/php-web-services/making-rest-requests-from-php/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/php/php-web-services/making-rest-requests-from-php/</feedburner:origLink></item> <item><title>Cast an ArrayList to an IEnumerable object</title><link>http://feedproxy.google.com/~r/w3mentor/~3/cqtwk0GmX40/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/cast-c-asp-net-linq-asp-dot-net-c-sharp/cast-an-arraylist-to-an-ienumerable-object/#comments</comments> <pubDate>Tue, 06 Jul 2010 19:05:58 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Cast]]></category> <category><![CDATA[CAST]]></category> <category><![CDATA[enumeration]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10291</guid> <description>The following examples generate an ArrayList containing Customer elements and cast the ArrayList to an IEnumerable  object:ArrayList CustomersArray = new ArrayList&amp;#40;&amp;#41;; foreach &amp;#40;var c in CustomerList&amp;#41; CustomersArray.Add&amp;#40;c&amp;#41;; &amp;#160; var query22 = from c in CustomersArray.Cast &amp;#60; Customer &amp;#62; &amp;#40;&amp;#41; where c.Country == “USA” orderby c.CompanyName select new &amp;#123; c.CustomerID, c.CompanyName &amp;#125;; &amp;#160; foreach &amp;#40;var c in query22&amp;#41; sbResult.Append&amp;#40;String.Format&amp;#40;“CustomerID = &amp;#123;0&amp;#125;, CompanyName = &amp;#123;0&amp;#125;\r\n”, c.CustomerID, c.CompanyName&amp;#41;&amp;#41;;&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/cqtwk0GmX40" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/cast-c-asp-net-linq-asp-dot-net-c-sharp/cast-an-arraylist-to-an-ienumerable-object/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/cast-c-asp-net-linq-asp-dot-net-c-sharp/cast-an-arraylist-to-an-ienumerable-object/</feedburner:origLink></item> <item><title>Left outer join example in LINQ C#</title><link>http://feedproxy.google.com/~r/w3mentor/~3/KXHfeVsKmbM/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/join-c-asp-net-linq-asp-dot-net-c-sharp/left-outer-join-example-in-linq-c/#comments</comments> <pubDate>Tue, 06 Jul 2010 19:01:25 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Join]]></category> <category><![CDATA[example]]></category> <category><![CDATA[join]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10289</guid> <description>The following examples implement a left outer join of Customer with Order objects with default values supplied to display Customer objects that don’ t have corresponding Order objects.// Populate the default order instance Order emptyOrder = new Order &amp;#123; OrderID = 0, CustomerID = “XXXXX”, EmployeeID = 0, OrderDate = DateTime.Parse&amp;#40;“1/1/1900”&amp;#41;, RequiredDate = DateTime.Parse&amp;#40;“1/1/1900”&amp;#41;, ShipVia = 0, Freight [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/KXHfeVsKmbM" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/join-c-asp-net-linq-asp-dot-net-c-sharp/left-outer-join-example-in-linq-c/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/join-c-asp-net-linq-asp-dot-net-c-sharp/left-outer-join-example-in-linq-c/</feedburner:origLink></item> <item><title>Sort on multiple criteria with orderby using LINQ C#</title><link>http://feedproxy.google.com/~r/w3mentor/~3/WLw0xB9aydQ/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/orderby/sort-on-multiple-criteria-with-orderby-using-linq-c/#comments</comments> <pubDate>Tue, 06 Jul 2010 14:53:50 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[OrderBy]]></category> <category><![CDATA[example]]></category> <category><![CDATA[sort]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10287</guid> <description>using System; using System.Linq; class Account &amp;#123; public string FirstName &amp;#123; get; private set; &amp;#125; public string LastName &amp;#123; get; private set; &amp;#125; public double Balance &amp;#123; get; private set; &amp;#125; public string AccountNumber &amp;#123; get; private set; &amp;#125; public Account&amp;#40;string fn, [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/WLw0xB9aydQ" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/orderby/sort-on-multiple-criteria-with-orderby-using-linq-c/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/orderby/sort-on-multiple-criteria-with-orderby-using-linq-c/</feedburner:origLink></item> <item><title>Use orderby to retrieve the values in an int array in ascending order in LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/6o0oBRb4_MY/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/orderby/use-orderby-to-retrieve-the-values-in-an-int-array-in-ascending-order-in-linq/#comments</comments> <pubDate>Tue, 06 Jul 2010 14:39:27 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[OrderBy]]></category> <category><![CDATA[arrays]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10285</guid> <description>using System; using System.Linq; class OrderbyDemo &amp;#123; static void Main&amp;#40;&amp;#41; &amp;#123; int&amp;#91;&amp;#93; nums = &amp;#123; 10, -19, 4, 7, 2, -5, 0 &amp;#125;; // Create a query that obtains the values in sorted order. [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/6o0oBRb4_MY" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/orderby/use-orderby-to-retrieve-the-values-in-an-int-array-in-ascending-order-in-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/orderby/use-orderby-to-retrieve-the-values-in-an-int-array-in-ascending-order-in-linq/</feedburner:origLink></item> <item><title>LINQ where clause with substrings</title><link>http://feedproxy.google.com/~r/w3mentor/~3/W1U0HJ6rzTk/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/where/linq-where-clause-with-substrings/#comments</comments> <pubDate>Tue, 06 Jul 2010 14:35:46 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Where]]></category> <category><![CDATA[example]]></category> <category><![CDATA[string]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10282</guid> <description>using System; using System.Linq; class WhereDemo2 &amp;#123; static void Main&amp;#40;&amp;#41; &amp;#123; string&amp;#91;&amp;#93; strs = &amp;#123; &amp;#34;.com&amp;#34;, &amp;#34;.net&amp;#34;, &amp;#34;someNameA.com&amp;#34;, &amp;#34;someNameB.net&amp;#34;, &amp;#34;test&amp;#34;, &amp;#34;.network&amp;#34;, &amp;#34;someNameC.net&amp;#34;, &amp;#34;someNameD.com&amp;#34; &amp;#125;; // Create a query that obtains Internet addresses that [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/W1U0HJ6rzTk" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/where/linq-where-clause-with-substrings/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/where/linq-where-clause-with-substrings/</feedburner:origLink></item> <item><title>Use multiple where clauses in LINQ C#</title><link>http://feedproxy.google.com/~r/w3mentor/~3/bP11AVy46v0/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/where/use-multiple-where-clauses-in-linq-c/#comments</comments> <pubDate>Tue, 06 Jul 2010 14:34:01 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Where]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10280</guid> <description>using System; using System.Linq; class TwoWheres &amp;#123; static void Main&amp;#40;&amp;#41; &amp;#123; int&amp;#91;&amp;#93; nums = &amp;#123; 1, -2, 3, -3, 0, -8, 12, 19, 6, 9, 10 &amp;#125;; // Create a query that obtains positive values less than 10. var posNums = from n in nums [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/bP11AVy46v0" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/where/use-multiple-where-clauses-in-linq-c/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/where/use-multiple-where-clauses-in-linq-c/</feedburner:origLink></item> <item><title>Example of using Javascriptresult in MVC</title><link>http://feedproxy.google.com/~r/w3mentor/~3/KxENFWoMnaU/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/actions/example-of-using-javascriptresult-in-mvc/#comments</comments> <pubDate>Fri, 02 Jul 2010 20:00:22 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Actions]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10278</guid> <description>The JavaScriptResult is used to execute JavaScript code on the client sent from the server.public ActionResult DoSomething&amp;#40;&amp;#41; &amp;#123; script s = “$&amp;#40;‘#some-div’).html(‘Updated!’);”; return JavaScript&amp;#40;s&amp;#41;; &amp;#125;Call using&amp;#60;%: Ajax.ActionLink&amp;#40;“click”, “DoSomething”, new AjaxOptions&amp;#40;&amp;#41;&amp;#41; %&amp;#62; &amp;#60;div id=”some-div”&amp;#62;&amp;#60;/div&amp;#62;&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/KxENFWoMnaU" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/actions/example-of-using-javascriptresult-in-mvc/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/actions/example-of-using-javascriptresult-in-mvc/</feedburner:origLink></item> <item><title>ActionResult Types in ASP.NET MVC</title><link>http://feedproxy.google.com/~r/w3mentor/~3/k7XdlIsgqSg/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/actions/actionresult-types-in-asp-net-mvc/#comments</comments> <pubDate>Fri, 02 Jul 2010 19:58:53 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Actions]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10276</guid> <description>EmptyResult Represents a null or empty response It doesn’t do anything ContentResult Writes the specified content directly to the response as text JsonResult Serializes the objects it is given into JSON and writes the JSON to the response RedirectResult Redirects the user to the given URL RedirectToRouteResult Redirects the user to a URL specified via Routing parameters ViewResult Calls into a [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/k7XdlIsgqSg" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/actions/actionresult-types-in-asp-net-mvc/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/actions/actionresult-types-in-asp-net-mvc/</feedburner:origLink></item> <item><title>Passing multiple parameters to action in MVC</title><link>http://feedproxy.google.com/~r/w3mentor/~3/sJT1pC9wi78/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/actions/passing-multiple-parameters-to-action-in-mvc/#comments</comments> <pubDate>Fri, 02 Jul 2010 19:52:49 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Actions]]></category> <category><![CDATA[parameters]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10273</guid> <description>For example, suppose that you have an action method that calculates the distance between two points:public void Distance&amp;#40;int x1, int y1, int x2, int y2&amp;#41; &amp;#123; double xSquared = Math.Pow&amp;#40;x2 - x1, 2&amp;#41;; double ySquared = Math.Pow&amp;#40;y2 - y1, 2&amp;#41;; Response.Write&amp;#40;Math.Sqrt&amp;#40;xSquared + ySquared&amp;#41;&amp;#41;; &amp;#125;Using only the default route, the request would need to look like this: /simple/distance?x2=1&amp;#038;y2=2&amp;#038;x1=0&amp;#038;y1=0 We can improve on this [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/sJT1pC9wi78" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/actions/passing-multiple-parameters-to-action-in-mvc/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/actions/passing-multiple-parameters-to-action-in-mvc/</feedburner:origLink></item> <item><title>Passing parameters to actions in ASP.NET MVC</title><link>http://feedproxy.google.com/~r/w3mentor/~3/VbEH-XacOx8/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/controller/passing-parameters-to-actions-in-asp-net-mvc/#comments</comments> <pubDate>Fri, 02 Jul 2010 19:49:23 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Controller]]></category> <category><![CDATA[parameters]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10271</guid> <description>You can pass in parameters to an action method by name via the query string. You can also pass in parameters via the URL segments, discoverable by position as defined in your routes.public class SimpleController : Controller &amp;#123; public void Goodbye&amp;#40;string name&amp;#41; &amp;#123; Response.Write&amp;#40;“Goodbye” + HttpUtility.HtmlEncode&amp;#40;name&amp;#41;&amp;#41;; &amp;#125; &amp;#125;Invoke using /simple/goodbye?name=World or /simple/goodbye/world&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/VbEH-XacOx8" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/controller/passing-parameters-to-actions-in-asp-net-mvc/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/controller/passing-parameters-to-actions-in-asp-net-mvc/</feedburner:origLink></item> <item><title>Example of a simple controller</title><link>http://feedproxy.google.com/~r/w3mentor/~3/RUCqYvqUV-M/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/controller/example-of-a-simple-controller/#comments</comments> <pubDate>Fri, 02 Jul 2010 19:44:28 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Controller]]></category> <category><![CDATA[controllers]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10269</guid> <description>All public methods of a class that derive from Controller become action methods, which are callable via an HTTP request. The Hello action is invoked by going to http://localhost:port/simple/hellousing System; using System.Web; using System.Web.Mvc; public class SimpleController : Controller &amp;#123; public void Hello&amp;#40;&amp;#41; &amp;#123; Response.Write&amp;#40;“&amp;#60;h1&amp;#62;Hello World!&amp;#60;/h1&amp;#62;”&amp;#41;; &amp;#125; &amp;#125;&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/RUCqYvqUV-M" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/controller/example-of-a-simple-controller/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/controller/example-of-a-simple-controller/</feedburner:origLink></item> <item><title>Example of using AuthorizeAttribute with roles in MVC</title><link>http://feedproxy.google.com/~r/w3mentor/~3/d0H98hkcOfU/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/filters/example-of-using-authorizeattribute-with-roles-in-mvc/#comments</comments> <pubDate>Thu, 01 Jul 2010 20:39:44 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Filters]]></category> <category><![CDATA[authorization]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10267</guid> <description>The admin Controller is restricted to members of the Admins and SuperAdmins roles.&amp;#91;Authorize&amp;#40;Roles=”Admins, SuperAdmins”&amp;#41;&amp;#93; public class AdminController &amp;#123; //Only admins should see this. public ActionResult Index&amp;#40;&amp;#41; &amp;#123; return View&amp;#40;&amp;#41;; &amp;#125; //Only admins should see this. [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/d0H98hkcOfU" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/filters/example-of-using-authorizeattribute-with-roles-in-mvc/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/filters/example-of-using-authorizeattribute-with-roles-in-mvc/</feedburner:origLink></item> <item><title>How does the AuthorizeAttribute work in ASP.NET MVC</title><link>http://feedproxy.google.com/~r/w3mentor/~3/KnSGLxc1foQ/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/filters/how-does-the-authorizeattribute-work-in-asp-net-mvc/#comments</comments> <pubDate>Thu, 01 Jul 2010 20:36:52 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Filters]]></category> <category><![CDATA[authorization]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10265</guid> <description>The AuthorizeAttribute is the default Authorization fi lter included with ASP.NET MVC. We can use it to restrict access to an action method. Applying this attribute to a Controller is shorthand for applying it to every action method. When applying this attribute, we can specify a comma-delimited list of Roles or Users. If you specify a [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/KnSGLxc1foQ" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/filters/how-does-the-authorizeattribute-work-in-asp-net-mvc/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/filters/how-does-the-authorizeattribute-work-in-asp-net-mvc/</feedburner:origLink></item> <item><title>Four Action filters in ASP.NET MVC</title><link>http://feedproxy.google.com/~r/w3mentor/~3/o4ZQUDWLXgQ/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/filters/four-action-filters-in-asp-net-mvc/#comments</comments> <pubDate>Thu, 01 Jul 2010 20:33:48 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Filters]]></category> <category><![CDATA[filter]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10263</guid> <description>Authorize: This filter is used to restrict access to a Controller or Controller action. HandleError: This filter is used to specify an action that will handle an exception that is thrown from inside an action method. OutputCache: This filter is used to provide output caching for action methods. RequireHttps: This filter, newly included in ASP.NET MVC 2, prevents [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/o4ZQUDWLXgQ" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/filters/four-action-filters-in-asp-net-mvc/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/filters/four-action-filters-in-asp-net-mvc/</feedburner:origLink></item> <item><title>Display HTML attributes with HTML.Textbox helper</title><link>http://feedproxy.google.com/~r/w3mentor/~3/FEg64nBT1Zs/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/html-helpers/display-html-attributes-with-html-textbox-helper/#comments</comments> <pubDate>Thu, 01 Jul 2010 20:12:50 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[HTML Helpers]]></category> <category><![CDATA[example]]></category> <category><![CDATA[helper]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10260</guid> <description>To display HTML attributes,we should call an overload of the textbox helper that supplies an explicit value. If you want to use View data lookup in these cases, just pass in null to the TextBox helper.&amp;#60;%: Html.TextBoxFor&amp;#40;m =&amp;#62; m.Name, &amp;#34;w3mentor&amp;#34; , new &amp;#123;@class=”mycssclass”&amp;#125;&amp;#41; %&amp;#62;Output:&amp;#60;input class=”mycssclass” id=”Name” name=”Name” type=”text” value=”w3mentor” /&amp;#62;&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/FEg64nBT1Zs" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/html-helpers/display-html-attributes-with-html-textbox-helper/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/html-helpers/display-html-attributes-with-html-textbox-helper/</feedburner:origLink></item> <item><title>Display explicit value in text box using Html.TextBox helper in ASP.NET MVC</title><link>http://feedproxy.google.com/~r/w3mentor/~3/75lsCjS-jpU/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/html-helpers/display-explicit-value-in-text-box-using-html-textbox-helper-in-asp-net-mvc/#comments</comments> <pubDate>Thu, 01 Jul 2010 19:55:03 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[HTML Helpers]]></category> <category><![CDATA[example]]></category> <category><![CDATA[helper]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10258</guid> <description>The TextBox helper allows us to supply an explicit value and avoid View data lookup.&amp;#60;%: Html.TextBox&amp;#40;“Name”, “w3mentor”&amp;#41; %&amp;#62;Produces:&amp;#60;input id=”Name” name=”Name” type=”text” value=”w3mentor” /&amp;#62;&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/75lsCjS-jpU" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/html-helpers/display-explicit-value-in-text-box-using-html-textbox-helper-in-asp-net-mvc/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/html-helpers/display-explicit-value-in-text-box-using-html-textbox-helper-in-asp-net-mvc/</feedburner:origLink></item> <item><title>Html.TextBox Helper in ASP.NET MVC</title><link>http://feedproxy.google.com/~r/w3mentor/~3/fkx47KdA8Sc/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/html-helpers/html-textbox-helper-in-asp-net-mvc/#comments</comments> <pubDate>Thu, 01 Jul 2010 19:50:52 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[HTML Helpers]]></category> <category><![CDATA[example]]></category> <category><![CDATA[helper]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10256</guid> <description>The TextBox helper renders an input tag with the type attribute set to text. It is the most commonly used to accept free-form input from a user. Example:&amp;#60;%: Html.TextBox&amp;#40;“name”&amp;#41; %&amp;#62;Ouput:&amp;#60;input id=”name” name=”name” type=”text” value=”“ /&amp;#62;Set the value in the controller:public ActionResult Edit&amp;#40;int id&amp;#41; &amp;#123; var product = new Product &amp;#123;Name = “ASP.NET MVC”&amp;#125; ViewData&amp;#91;“Name”&amp;#93; = product.Name; return View&amp;#40;&amp;#41;; &amp;#125;Display in [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/fkx47KdA8Sc" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/html-helpers/html-textbox-helper-in-asp-net-mvc/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/html-helpers/html-textbox-helper-in-asp-net-mvc/</feedburner:origLink></item> <item><title>Difference between HttpUtility.HtmlEncode method and Html.Encode method</title><link>http://feedproxy.google.com/~r/w3mentor/~3/6Q_RmlZnklA/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/html-helpers/difference-between-httputility-htmlencode-method-and-html-encode-method/#comments</comments> <pubDate>Thu, 01 Jul 2010 16:47:50 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[HTML Helpers]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10254</guid> <description>Html.Encode can accept an object where as HttpUtility.HtmlEncode method cannot accept an object. Also when an object is passed to Html.Encode, it is converted to a string using CultureInfo.CurrentCulture before being encoded.&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/6Q_RmlZnklA" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/html-helpers/difference-between-httputility-htmlencode-method-and-html-encode-method/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/html-helpers/difference-between-httputility-htmlencode-method-and-html-encode-method/</feedburner:origLink></item> <item><title>Return a Model in the View method in ASP.NET MVC</title><link>http://feedproxy.google.com/~r/w3mentor/~3/eCCPRjZqK1Y/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/views-c-asp-net-mvc-asp-dot-net-c-sharp/return-a-model-in-the-view-method-in-asp-net-mvc/#comments</comments> <pubDate>Thu, 01 Jul 2010 16:35:44 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Views]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10252</guid> <description>In the Controller method, you can specify the Model via an overload of the View method whereby you pass in the Model.public ActionResult List&amp;#40;&amp;#41; &amp;#123; var products = new List&amp;#60;Product&amp;#62;&amp;#40;&amp;#41;; for&amp;#40;int i = 0; i &amp;#60; 10; i++&amp;#41; &amp;#123; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/eCCPRjZqK1Y" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/views-c-asp-net-mvc-asp-dot-net-c-sharp/return-a-model-in-the-view-method-in-asp-net-mvc/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/views-c-asp-net-mvc-asp-dot-net-c-sharp/return-a-model-in-the-view-method-in-asp-net-mvc/</feedburner:origLink></item> <item><title>Strongly typed views in ASP.NET MVC</title><link>http://feedproxy.google.com/~r/w3mentor/~3/kh2oz3vhdWE/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/views-c-asp-net-mvc-asp-dot-net-c-sharp/strongly-typed-views-in-asp-net-mvc/#comments</comments> <pubDate>Thu, 01 Jul 2010 15:32:07 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Views]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10250</guid> <description>Suppose that you have a list of Product instances you wish to display in a View. One means of doing this is to simply add the products to the View Data dictionary and iterate them over the View.public ActionResult List&amp;#40;&amp;#41; &amp;#123; var products = new List&amp;#60;Product&amp;#62;&amp;#40;&amp;#41;; for&amp;#40;int i = 0; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/kh2oz3vhdWE" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/views-c-asp-net-mvc-asp-dot-net-c-sharp/strongly-typed-views-in-asp-net-mvc/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/views-c-asp-net-mvc-asp-dot-net-c-sharp/strongly-typed-views-in-asp-net-mvc/</feedburner:origLink></item> <item><title>Specify a View in a completely different directory structure to be rendered</title><link>http://feedproxy.google.com/~r/w3mentor/~3/Py7ernExYRE/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/views-c-asp-net-mvc-asp-dot-net-c-sharp/specify-a-view-in-a-completely-different-directory-structure-to-be-rendered/#comments</comments> <pubDate>Thu, 01 Jul 2010 15:20:15 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Views]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10247</guid> <description>You can use the tilde syntax to provide the full path to the View like so:public ActionResult Index&amp;#40;&amp;#41; &amp;#123; ViewData&amp;#91;“Message”&amp;#93; = “Welcome to ASP.NET MVC!”; return View&amp;#40;“~/Some/Other/View.aspx”&amp;#41;; &amp;#125;&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/Py7ernExYRE" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/views-c-asp-net-mvc-asp-dot-net-c-sharp/specify-a-view-in-a-completely-different-directory-structure-to-be-rendered/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/views-c-asp-net-mvc-asp-dot-net-c-sharp/specify-a-view-in-a-completely-different-directory-structure-to-be-rendered/</feedburner:origLink></item> <item><title>How to make an action to render a different View in ASP.NET MVC</title><link>http://feedproxy.google.com/~r/w3mentor/~3/Y4muVn0Yfn0/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/views-c-asp-net-mvc-asp-dot-net-c-sharp/how-to-make-an-action-to-render-a-different-view-in-asp-net-mvc/#comments</comments> <pubDate>Thu, 01 Jul 2010 15:15:27 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Views]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10245</guid> <description>Suppose that you want the Index action to render a different View. You could supply a different View name like so:public ActionResult Index&amp;#40;&amp;#41; &amp;#123; ViewData&amp;#91;“Message”&amp;#93; = “Welcome to ASP.NET MVC!”; return View&amp;#40;“NotIndex”&amp;#41;; &amp;#125;&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/Y4muVn0Yfn0" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/views-c-asp-net-mvc-asp-dot-net-c-sharp/how-to-make-an-action-to-render-a-different-view-in-asp-net-mvc/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/views-c-asp-net-mvc-asp-dot-net-c-sharp/how-to-make-an-action-to-render-a-different-view-in-asp-net-mvc/</feedburner:origLink></item> <item><title>Intersect operator in C# LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/oiwr6xD4ih0/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/intersect/intersect-operator-in-c-linq/#comments</comments> <pubDate>Wed, 30 Jun 2010 15:43:02 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Intersect]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10243</guid> <description>The Intersect SQO returns a sequence of elements that the first and second sequences contain; its method signature is the same as Union&amp;#8217;s except for the method name.var query19 = &amp;#40;from p in ProductList where p.CategoryID == 1 &amp;#124;&amp;#124; p.CategoryID == 2 select p&amp;#41; .Intersect&amp;#40;from p in ProductList where p.CategoryID == 2 &amp;#124;&amp;#124; p.CategoryID == 3 select p&amp;#41; .OrderBy&amp;#40;p = &amp;#62; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/oiwr6xD4ih0" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/intersect/intersect-operator-in-c-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/intersect/intersect-operator-in-c-linq/</feedburner:origLink></item> <item><title>Union operator in C# LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/RumYqRCvnTY/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/union/union-operator-in-c-linq/#comments</comments> <pubDate>Wed, 30 Jun 2010 15:30:35 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Union]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10241</guid> <description>The Union SQO combines two sequences of the same structure into one without regard to matching values.var query18 = &amp;#40;from c in CustomerList join s in SupplierList on c.City equals s.City select new &amp;#123; c.City, c.CompanyName, Type = “Customer” &amp;#125;&amp;#41; .Union&amp;#40;from c in CustomerList join s in SupplierList on c.City equals s.City select new &amp;#123; s.City, s.CompanyName, Type = “Supplier” [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/RumYqRCvnTY" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/union/union-operator-in-c-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/union/union-operator-in-c-linq/</feedburner:origLink></item> <item><title>Distinct Set Operator in C# LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/2qq9Ea0aWPA/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/distinct/distinct-set-operator-in-c-linq/#comments</comments> <pubDate>Wed, 30 Jun 2010 15:25:49 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Distinct]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10239</guid> <description>The Distinct SQO removes elements with duplicate values from a sequence. The following example returns a list of unique country names from the CustomerList collection&amp;#8217;s Country field.var query17 = &amp;#40;from c in CustomerList orderby c.Country [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/2qq9Ea0aWPA" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/distinct/distinct-set-operator-in-c-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/distinct/distinct-set-operator-in-c-linq/</feedburner:origLink></item> <item><title>Example of GroupBy with Query Expression Syntax in C# LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/DpSkdqvaqrU/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/groupby/example-of-groupby-with-query-expression-syntax-in-c-linq/#comments</comments> <pubDate>Wed, 30 Jun 2010 15:14:55 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[GroupBy]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10237</guid> <description>var query16 = from c in CustomerList orderby c.Country, c.CustomerID group c by c.Country into g select new &amp;#123; Country = g.Key, Group = g &amp;#125;; &amp;#160; foreach &amp;#40;var g in query16&amp;#41; &amp;#123; sbResult.Append&amp;#40;g.Group + [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/DpSkdqvaqrU" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/groupby/example-of-groupby-with-query-expression-syntax-in-c-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/groupby/example-of-groupby-with-query-expression-syntax-in-c-linq/</feedburner:origLink></item> <item><title>Example of GroupBy with Method Call Syntax in C# LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/buGBoEQUZAM/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/groupby/example-of-groupby-with-method-call-syntax-in-c-linq/#comments</comments> <pubDate>Wed, 30 Jun 2010 15:12:11 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[GroupBy]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10235</guid> <description>var query15 = CustomerList.GroupBy&amp;#40;c = &amp;#62; c.Country&amp;#41;; &amp;#160; query15 = CustomerList.OrderBy&amp;#40;c = &amp;#62; c.Country&amp;#41; .ThenBy&amp;#40;c = &amp;#62; c.CustomerID&amp;#41; .GroupBy&amp;#40;c = &amp;#62; c.Country&amp;#41;; &amp;#160; foreach &amp;#40;var g in query15&amp;#41; &amp;#123; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/buGBoEQUZAM" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/groupby/example-of-groupby-with-method-call-syntax-in-c-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/groupby/example-of-groupby-with-method-call-syntax-in-c-linq/</feedburner:origLink></item> <item><title>OrderBy using CurrentCultureIgnoreCase in C# LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/rwvnU9nejRU/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/orderby/orderby-using-currentcultureignorecase-in-c-linq/#comments</comments> <pubDate>Wed, 30 Jun 2010 14:56:00 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[OrderBy]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10233</guid> <description>var query14 = ProductList.Where&amp;#40;p = &amp;#62; p.Category.CategoryName == “Beverages”&amp;#41; .OrderBy&amp;#40;p = &amp;#62; p.ProductName, StringComparer.CurrentCultureIgnoreCase&amp;#41;; &amp;#160; foreach &amp;#40;var p in query14&amp;#41; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/rwvnU9nejRU" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/orderby/orderby-using-currentcultureignorecase-in-c-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/orderby/orderby-using-currentcultureignorecase-in-c-linq/</feedburner:origLink></item> <item><title>ThenBy and ThenByDescending example in LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/VDXAFVl9Oms/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/orderby/orderby-example-in-linq/#comments</comments> <pubDate>Wed, 30 Jun 2010 14:54:27 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[OrderBy]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10230</guid> <description>var query13 = ProductList.OrderBy&amp;#40;p = &amp;#62; p.CategoryID&amp;#41; .ThenByDescending&amp;#40;p = &amp;#62; p.UnitPrice&amp;#41; .ThenBy&amp;#40;p = &amp;#62; p.ProductName&amp;#41;; &amp;#160; query13 = from p in [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/VDXAFVl9Oms" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/orderby/orderby-example-in-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/orderby/orderby-example-in-linq/</feedburner:origLink></item> <item><title>Concat operator example in C# LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/wa5xIlS30Ao/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/concat-c-asp-net-linq-asp-dot-net-c-sharp/concat-operator-example-in-c-linq/#comments</comments> <pubDate>Wed, 30 Jun 2010 14:22:44 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Concat]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10228</guid> <description>var Query12 = CustomerList.Where&amp;#40;c = &amp;#62; c.Country == “USA”&amp;#41; .Concat&amp;#40;CustomerList.Where&amp;#40;c = &amp;#62; c.Country == “Canada”&amp;#41; .Concat&amp;#40;CustomerList.Where&amp;#40;c = [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/wa5xIlS30Ao" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/concat-c-asp-net-linq-asp-dot-net-c-sharp/concat-operator-example-in-c-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/concat-c-asp-net-linq-asp-dot-net-c-sharp/concat-operator-example-in-c-linq/</feedburner:origLink></item> <item><title>Examples of a left outer join in LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/AWYe1DsHUCo/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/join-c-asp-net-linq-asp-dot-net-c-sharp/examples-of-a-left-outer-join-in-linq/#comments</comments> <pubDate>Wed, 30 Jun 2010 14:20:51 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Join]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10226</guid> <description>The following examples implement a left outer join of Customer with Order objects with default values supplied to display Customer objects that don ’ t have corresponding Order objects:Order emptyOrder = new Order &amp;#123; OrderID = 0, CustomerID = “XXXXX”, EmployeeID = 0, OrderDate = DateTime.Parse&amp;#40;“1/1/1900”&amp;#41;, RequiredDate = DateTime.Parse&amp;#40;“1/1/1900”&amp;#41;, ShipVia = 0, Freight = 0M, ShipName = “Default [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/AWYe1DsHUCo" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/join-c-asp-net-linq-asp-dot-net-c-sharp/examples-of-a-left-outer-join-in-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/join-c-asp-net-linq-asp-dot-net-c-sharp/examples-of-a-left-outer-join-in-linq/</feedburner:origLink></item> <item><title>Concatenation Operator Example in C# LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/H-tT6_AD7oo/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/concat-c-asp-net-linq-asp-dot-net-c-sharp/concatenation-operator-example-in-c-linq/#comments</comments> <pubDate>Tue, 29 Jun 2010 15:16:53 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Concat]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10224</guid> <description>public List&amp;#60;Customer&amp;#62; CustomerList; StringBuilder sbResult = new StringBuilder&amp;#40;&amp;#41;; var Query12 = CustomerList.Where&amp;#40;c =&amp;#62; c.Country == &amp;#34;USA&amp;#34;&amp;#41; .Concat&amp;#40;CustomerList.Where&amp;#40;c =&amp;#62; c.Country == &amp;#34;Canada&amp;#34;&amp;#41; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/H-tT6_AD7oo" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/concat-c-asp-net-linq-asp-dot-net-c-sharp/concatenation-operator-example-in-c-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/concat-c-asp-net-linq-asp-dot-net-c-sharp/concatenation-operator-example-in-c-linq/</feedburner:origLink></item> <item><title>Nested Left Outer Inner Join Example in C# LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/BnJHR1TzCzM/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/join-c-asp-net-linq-asp-dot-net-c-sharp/nested-left-outer-inner-join-example-in-c-linq/#comments</comments> <pubDate>Tue, 29 Jun 2010 15:15:16 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Join]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10222</guid> <description>public List&amp;#60;Customer&amp;#62; CustomerList; StringBuilder sbResult = new StringBuilder&amp;#40;&amp;#41;; // Define default order instance Order emptyOrder = new Order &amp;#123; OrderID = 0, CustomerID = &amp;#34;XXXXX&amp;#34;, EmployeeID = 0, [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/BnJHR1TzCzM" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/join-c-asp-net-linq-asp-dot-net-c-sharp/nested-left-outer-inner-join-example-in-c-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/join-c-asp-net-linq-asp-dot-net-c-sharp/nested-left-outer-inner-join-example-in-c-linq/</feedburner:origLink></item> <item><title>Simple Flat Left Inner Join Example in C# LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/TPjh4b8XxsI/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/join-c-asp-net-linq-asp-dot-net-c-sharp/simple-flat-left-inner-join-example-in-c-linq/#comments</comments> <pubDate>Tue, 29 Jun 2010 15:13:47 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Join]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10220</guid> <description>public List&amp;#60;Customer&amp;#62; CustomerList; StringBuilder sbResult = new StringBuilder&amp;#40;&amp;#41;; &amp;#160; var query10 = CustomerList.Join&amp;#40;OrderList, c =&amp;#62; c.CustomerID, o =&amp;#62; o.CustomerID, &amp;#40;c, o&amp;#41; =&amp;#62; new &amp;#123; c.CustomerID, c.CompanyName, o.OrderID, o.OrderDate&amp;#125;&amp;#41; .Take&amp;#40;10&amp;#41;; &amp;#160; query10 = &amp;#40;from c in CustomerList [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/TPjh4b8XxsI" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/join-c-asp-net-linq-asp-dot-net-c-sharp/simple-flat-left-inner-join-example-in-c-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/join-c-asp-net-linq-asp-dot-net-c-sharp/simple-flat-left-inner-join-example-in-c-linq/</feedburner:origLink></item> <item><title>SkipWhile/TakeWhile Example in C# LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/IcDUyMhlPao/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/skiptake/skipwhiletakewhile-example-in-c-linq/#comments</comments> <pubDate>Tue, 29 Jun 2010 15:12:06 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Skip/Take]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10218</guid> <description>var query9 = CustomerList.Select&amp;#40;&amp;#40;cust, index&amp;#41; =&amp;#62; new &amp;#123; cust, index &amp;#125;&amp;#41; // .OrderBy(c =&amp;#62; c.cust.Country) [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/IcDUyMhlPao" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/skiptake/skipwhiletakewhile-example-in-c-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/skiptake/skipwhiletakewhile-example-in-c-linq/</feedburner:origLink></item> <item><title>Skip/Take Example in C# LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/DvwZp4Qd-kk/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/skiptake/skiptake-example-in-c-linq/#comments</comments> <pubDate>Tue, 29 Jun 2010 15:11:00 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Skip/Take]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10216</guid> <description>public List&amp;#60;Customer&amp;#62; CustomerList; StringBuilder sbResult = new StringBuilder&amp;#40;&amp;#41;; var query8 = CustomerList.Select&amp;#40;&amp;#40;cust, index&amp;#41; =&amp;#62; new &amp;#123; cust, index &amp;#125;&amp;#41; .Where&amp;#40;c =&amp;#62; c.cust.Country == &amp;#34;USA&amp;#34;&amp;#41; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/DvwZp4Qd-kk" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/skiptake/skiptake-example-in-c-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/skiptake/skiptake-example-in-c-linq/</feedburner:origLink></item> <item><title>SelectMany Translation for an Equi-join Expression in C# LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/ew-GnEd9yEo/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/select-c-asp-net-linq-asp-dot-net-c-sharp/selectmany-translation-for-an-equi-join-expression-in-c-linq/#comments</comments> <pubDate>Tue, 29 Jun 2010 15:09:31 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Select]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10214</guid> <description>var query7 = from c in CustomerList from o in OrderList where c.Country == &amp;#34;USA&amp;#34; &amp;#38;&amp;#38; o.CustomerID == c.CustomerID [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/ew-GnEd9yEo" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/select-c-asp-net-linq-asp-dot-net-c-sharp/selectmany-translation-for-an-equi-join-expression-in-c-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/select-c-asp-net-linq-asp-dot-net-c-sharp/selectmany-translation-for-an-equi-join-expression-in-c-linq/</feedburner:origLink></item> <item><title>Simple SelectMany Example with Associated Collection in C# LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/eZuQRV2YQpk/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/select-c-asp-net-linq-asp-dot-net-c-sharp/simple-selectmany-example-with-associated-collection-in-c-linq/#comments</comments> <pubDate>Tue, 29 Jun 2010 15:05:35 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Select]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10210</guid> <description>The SelectMany operator implements cross and outer joins, and flattens sequences into elements that resemble rows of relational views based on joins.SelectMany returns from the source object a many &amp;#8211; to - one sequence having the set of properties specified by the selector that ’ s passed to the lambda function.var query6 = CustomerList.Where&amp;#40;c =&amp;#62; c.Country == [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/eZuQRV2YQpk" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/select-c-asp-net-linq-asp-dot-net-c-sharp/simple-selectmany-example-with-associated-collection-in-c-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/select-c-asp-net-linq-asp-dot-net-c-sharp/simple-selectmany-example-with-associated-collection-in-c-linq/</feedburner:origLink></item> <item><title>Multiple Select Projection with Index Values in C# LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/sJinfjVqNpM/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/select-c-asp-net-linq-asp-dot-net-c-sharp/multiple-select-projection-with-index-values-in-c-linq/#comments</comments> <pubDate>Tue, 29 Jun 2010 15:04:25 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Select]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10208</guid> <description>public List&amp;#60;Customer&amp;#62; CustomerList; StringBuilder sbResult = new StringBuilder&amp;#40;&amp;#41;; var query5 = CustomerList.Select&amp;#40;&amp;#40;cust, index&amp;#41; =&amp;#62; new &amp;#123;cust, index&amp;#125;&amp;#41; .Where&amp;#40;c =&amp;#62; c.cust.Country [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/sJinfjVqNpM" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/select-c-asp-net-linq-asp-dot-net-c-sharp/multiple-select-projection-with-index-values-in-c-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/select-c-asp-net-linq-asp-dot-net-c-sharp/multiple-select-projection-with-index-values-in-c-linq/</feedburner:origLink></item> <item><title>Simple Select Projection in C# LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/KgbHMXASVto/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/select-c-asp-net-linq-asp-dot-net-c-sharp/simple-select-projection-in-c-linq/#comments</comments> <pubDate>Tue, 29 Jun 2010 15:02:56 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Select]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10206</guid> <description>public List&amp;#60;Customer&amp;#62; CustomerList; StringBuilder sbResult = new StringBuilder&amp;#40;&amp;#41;; var query4 = CustomerList.Where&amp;#40;c =&amp;#62; c.Country == &amp;#34;USA&amp;#34;&amp;#41; .Select&amp;#40;c =&amp;#62; new &amp;#123; c.CustomerID, c.CompanyName, c.Country &amp;#125;&amp;#41;; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/KgbHMXASVto" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/select-c-asp-net-linq-asp-dot-net-c-sharp/simple-select-projection-in-c-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/select-c-asp-net-linq-asp-dot-net-c-sharp/simple-select-projection-in-c-linq/</feedburner:origLink></item> <item><title>Where Method Call with Index Criterion in C# LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/OykSJqeVB4s/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/where/where-method-call-with-index-criterion-in-c-linq/#comments</comments> <pubDate>Tue, 29 Jun 2010 15:01:13 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Where]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10203</guid> <description>public List&amp;#60;Customer&amp;#62; CustomerList; StringBuilder sbResult = new StringBuilder&amp;#40;&amp;#41;; var query3 = CustomerList.Where&amp;#40;&amp;#40;c, index&amp;#41; =&amp;#62; c.Country == &amp;#34;USA&amp;#34; &amp;#38;&amp;#38; index &amp;#62; 70&amp;#41;; &amp;#160; // Apply IndexOf() method, which achieves the same result and supports query expressions [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/OykSJqeVB4s" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/where/where-method-call-with-index-criterion-in-c-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/where/where-method-call-with-index-criterion-in-c-linq/</feedburner:origLink></item> <item><title>Compound Where Expression in LINQ</title><link>http://feedproxy.google.com/~r/w3mentor/~3/751AwH9R9UY/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/where/compound-where-expression-in-linq/#comments</comments> <pubDate>Tue, 29 Jun 2010 14:59:36 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Where]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10201</guid> <description>public List&amp;#60;Customer&amp;#62; CustomerList; StringBuilder sbResult = new StringBuilder&amp;#40;&amp;#41;; var query2 = CustomerList.Where&amp;#40;c =&amp;#62; c.Country == &amp;#34;USA&amp;#34; &amp;#38;&amp;#38; c.Orders.Any&amp;#40;&amp;#41;&amp;#41;; query2 = from c in CustomerList where c.Country == &amp;#34;USA&amp;#34; &amp;#38;&amp;#38; c.Orders.Any&amp;#40;&amp;#41; select c; &amp;#160; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/751AwH9R9UY" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/where/compound-where-expression-in-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/where/compound-where-expression-in-linq/</feedburner:origLink></item> <item><title>Simple Where expression example in Linq</title><link>http://feedproxy.google.com/~r/w3mentor/~3/t1nqRAS2jqo/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/where/simple-where-expression-example-in-linq/#comments</comments> <pubDate>Tue, 29 Jun 2010 14:52:54 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Where]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10198</guid> <description>var query1 = CustomerList.Where&amp;#40;c = &amp;#62; c.Country == &amp;#34;USA&amp;#34;&amp;#41;; //alternate form query1 = from c in CustomerList where c.Country == &amp;#34;USA&amp;#34; select c; &amp;#160; foreach &amp;#40;var c in query1&amp;#41; sbResult.Append&amp;#40;String.Format&amp;#40;&amp;#34;CustomerID = {0}, CompanyName = {1}, &amp;#34; + &amp;#34;Country = {2}\r\n&amp;#34;, c.CustomerID, c.CompanyName, c.Country&amp;#41;&amp;#41;;&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/t1nqRAS2jqo" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/where/simple-where-expression-example-in-linq/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/where/simple-where-expression-example-in-linq/</feedburner:origLink></item> <item><title>Order class example</title><link>http://feedproxy.google.com/~r/w3mentor/~3/TNPHMqxSXG8/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/object-oriented-concepts-c-sharp/order-class-example/#comments</comments> <pubDate>Tue, 29 Jun 2010 14:42:17 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Object Oriented Concepts C#]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10194</guid> <description>Order class:public class Order &amp;#123; public int OrderID; public string CustomerID; public int EmployeeID; public DateTime OrderDate; public DateTime RequiredDate; public DateTime ShippedDate; public int ShipVia; public decimal Freight; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/TNPHMqxSXG8" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/object-oriented-concepts-c-sharp/order-class-example/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/object-oriented-concepts-c-sharp/order-class-example/</feedburner:origLink></item> <item><title>Windows impersonation for moving files in C#</title><link>http://feedproxy.google.com/~r/w3mentor/~3/E8ILbgJz8pY/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/windows-impersonation-for-moving-files-in-c/#comments</comments> <pubDate>Tue, 29 Jun 2010 14:20:47 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# ASP.NET]]></category> <category><![CDATA[example]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10192</guid> <description>When you have a system and you may want to move files in a secure environment without the users having to know the password to the destination machine. The following functions do this by using maintained username, password and domain from the database which can be encrypted and decrypted. For my case I have used [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/E8ILbgJz8pY" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/windows-impersonation-for-moving-files-in-c/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/windows-impersonation-for-moving-files-in-c/</feedburner:origLink></item> <item><title>Export to excel .csv file using C#</title><link>http://feedproxy.google.com/~r/w3mentor/~3/thZey4pXD3w/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-file-handling/export-to-excel-csv-file-using-c/#comments</comments> <pubDate>Tue, 29 Jun 2010 14:13:48 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# File Handling]]></category> <category><![CDATA[export]]></category> <category><![CDATA[gridview]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10190</guid> <description>//additional references to import using iTextSharp.text; using iTextSharp.text.pdf; using iTextSharp.text.html; using iTextSharp.text.html.simpleparser; &amp;#160; public static void Export_CSV&amp;#40;HttpResponse Response, GridView grid&amp;#41; &amp;#123; string filename = DateTime.Now.ToString&amp;#40;&amp;#34;0:yyyyMMddhhmmss&amp;#34;&amp;#41; + &amp;#34;.csv&amp;#34;; Response.Clear&amp;#40;&amp;#41;; Response.Buffer = true; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/thZey4pXD3w" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-file-handling/export-to-excel-csv-file-using-c/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-file-handling/export-to-excel-csv-file-using-c/</feedburner:origLink></item> <item><title>Export data from gridview to excel in C#</title><link>http://feedproxy.google.com/~r/w3mentor/~3/9DAbR1gxxqE/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-file-handling/export-data-from-gridview-to-excel-in-c/#comments</comments> <pubDate>Tue, 29 Jun 2010 14:13:12 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# File Handling]]></category> <category><![CDATA[export]]></category> <category><![CDATA[gridview]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10188</guid> <description>//additional references to import using iTextSharp.text; using iTextSharp.text.pdf; using iTextSharp.text.html; using iTextSharp.text.html.simpleparser; &amp;#160; public static void Export_Excel&amp;#40;HttpResponse Response, GridView grid&amp;#41; &amp;#123; string filename = DateTime.Now.ToString&amp;#40;&amp;#34;0:yyyyMMddhhmmss&amp;#34;&amp;#41; + &amp;#34;.xls&amp;#34;; Response.ClearContent&amp;#40;&amp;#41;; Response.Buffer = true; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/9DAbR1gxxqE" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-file-handling/export-data-from-gridview-to-excel-in-c/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-file-handling/export-data-from-gridview-to-excel-in-c/</feedburner:origLink></item> <item><title>Export data from gridview to PDF in C#</title><link>http://feedproxy.google.com/~r/w3mentor/~3/TAk398XJbGg/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-file-handling/export-data-from-gridview-to-pdf-in-c/#comments</comments> <pubDate>Tue, 29 Jun 2010 14:12:21 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# File Handling]]></category> <category><![CDATA[export]]></category> <category><![CDATA[gridview]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10186</guid> <description>//additional references to import using iTextSharp.text; using iTextSharp.text.pdf; using iTextSharp.text.html; using iTextSharp.text.html.simpleparser; &amp;#160; public static void Export_PDF&amp;#40;HttpResponse Response, GridView grid&amp;#41; &amp;#123; &amp;#160; string filename = DateTime.Now.ToString&amp;#40;&amp;#34;0:yyyyMMddhhmmss&amp;#34;&amp;#41; + &amp;#34;.pdf&amp;#34;; Response.ContentType = &amp;#34;application/pdf&amp;#34;; Response.AddHeader&amp;#40;&amp;#34;content-disposition&amp;#34;, &amp;#34;attachment; filename=&amp;#34; + filename&amp;#41;; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/TAk398XJbGg" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-file-handling/export-data-from-gridview-to-pdf-in-c/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-file-handling/export-data-from-gridview-to-pdf-in-c/</feedburner:origLink></item> <item><title>Exporting to microsoft word Using .NET from a GRIDVIEW</title><link>http://feedproxy.google.com/~r/w3mentor/~3/Ma1hw9QjP0A/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-file-handling/exporting-to-microsoft-word-using-net-from-a-gridview/#comments</comments> <pubDate>Tue, 29 Jun 2010 14:11:37 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# File Handling]]></category> <category><![CDATA[export]]></category> <category><![CDATA[gridview]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10184</guid> <description>Exporting to word using contents from a bound grid view. Please follow the comments for further explanation.//additional references to import using iTextSharp.text; using iTextSharp.text.pdf; using iTextSharp.text.html; using iTextSharp.text.html.simpleparser; &amp;#160; public static void Export_Word&amp;#40;HttpResponse Response, GridView grid&amp;#41; &amp;#123; //filename for file to be generated [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/Ma1hw9QjP0A" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-file-handling/exporting-to-microsoft-word-using-net-from-a-gridview/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-file-handling/exporting-to-microsoft-word-using-net-from-a-gridview/</feedburner:origLink></item> <item><title>Audit Trail in C#</title><link>http://feedproxy.google.com/~r/w3mentor/~3/z1AB7AVybpE/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/audit-trail-using-linq-to-sql-in-c/#comments</comments> <pubDate>Tue, 29 Jun 2010 14:04:48 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# ASP.NET LINQ]]></category> <category><![CDATA[example]]></category> <category><![CDATA[logging]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10181</guid> <description>The following class expects an audit event which is passed as a string and can be but not limited to (Inserting, Updating, Deleting, Logging in e.t.c) and also a small description can be passed to the class. Inside the class sessions which store the logged in userID and the name as recognized by IIS are [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/z1AB7AVybpE" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/audit-trail-using-linq-to-sql-in-c/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/audit-trail-using-linq-to-sql-in-c/</feedburner:origLink></item> <item><title>Download file from server and manipulate it using C#</title><link>http://feedproxy.google.com/~r/w3mentor/~3/f2PWOQdW6Ys/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-file-handling/download-file-from-server-and-manipulate-it-using-c/#comments</comments> <pubDate>Tue, 29 Jun 2010 14:04:01 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# File Handling]]></category> <category><![CDATA[file]]></category> <category><![CDATA[file handling]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10179</guid> <description>The following function expects a path whereby it checks for a file in the path supplied and downloads it to where the site is running from (server) for the system to manipulate the file however the user wants.using System; using System.Collections; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; &amp;#160; public class ClsDownload &amp;#123; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/f2PWOQdW6Ys" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-file-handling/download-file-from-server-and-manipulate-it-using-c/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-file-handling/download-file-from-server-and-manipulate-it-using-c/</feedburner:origLink></item> <item><title>Reset all controls of a web form in C#</title><link>http://feedproxy.google.com/~r/w3mentor/~3/sIlURGRfluc/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/reset-all-controls-of-a-web-form-in-c/#comments</comments> <pubDate>Tue, 29 Jun 2010 14:02:14 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# ASP.NET]]></category> <category><![CDATA[example]]></category> <category><![CDATA[reset]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10177</guid> <description>using System; using System.Data; using System.Configuration; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Text.RegularExpressions; using System.Globalization; using System.Collections.Generic; &amp;#160; /// &amp;#60;summary&amp;#62; /// Summary description for Constants_Audit /// &amp;#60;/summary&amp;#62; public class Constants_Audit &amp;#123; public Constants_Audit&amp;#40;&amp;#41; &amp;#123; // // TODO: Add constructor logic here [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/sIlURGRfluc" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/reset-all-controls-of-a-web-form-in-c/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/reset-all-controls-of-a-web-form-in-c/</feedburner:origLink></item> <item><title>Format a date passed as a string in C#</title><link>http://feedproxy.google.com/~r/w3mentor/~3/2H9oX8Hshm0/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/format-a-date-passed-as-a-string-in-c/#comments</comments> <pubDate>Tue, 29 Jun 2010 14:01:18 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# ASP.NET]]></category> <category><![CDATA[date]]></category> <category><![CDATA[format]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10175</guid> <description>The following function formats a date passed as a string for you to be able to control the date type that you are familiar with. Dates sometimes can cause unnecessary errors that are quite hard to debug since different countries use different date types .public static string SQLDate&amp;#40;string date&amp;#41; [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/2H9oX8Hshm0" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/format-a-date-passed-as-a-string-in-c/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net/format-a-date-passed-as-a-string-in-c/</feedburner:origLink></item> <item><title>Generate a list of objects and bind to a GridView in C#</title><link>http://feedproxy.google.com/~r/w3mentor/~3/Ega16CzYdp4/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/object-oriented-concepts-c-sharp/generate-a-list-of-objects-and-bind-to-a-gridview-in-c/#comments</comments> <pubDate>Mon, 28 Jun 2010 20:00:06 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Object Oriented Concepts C#]]></category> <category><![CDATA[object]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10173</guid> <description>The class:using System; public class Movie &amp;#123; public string Title &amp;#123; get; set; &amp;#125; public string Director &amp;#123; get; set; &amp;#125; public int Genre &amp;#123; get; set; &amp;#125; public int RunTime &amp;#123; get; set; &amp;#125; public DateTime ReleaseDate &amp;#123; get; set; &amp;#125; &amp;#125;&amp;#60;script runat=&amp;#34;server&amp;#34;&amp;#62; protected void Page_Load&amp;#40;object sender, EventArgs e&amp;#41; &amp;#123; var movies = GetMovies&amp;#40;&amp;#41;; this.GridView1.DataSource = movies; this.GridView1.DataBind&amp;#40;&amp;#41;; &amp;#125; public List&amp;#60;Movie&amp;#62; GetMovies&amp;#40;&amp;#41; &amp;#123; return new List&amp;#60;Movie&amp;#62; &amp;#123; new Movie &amp;#123; Title=&amp;#34;Shrek&amp;#34;, Director=&amp;#34;Andrew [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/Ega16CzYdp4" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/object-oriented-concepts-c-sharp/generate-a-list-of-objects-and-bind-to-a-gridview-in-c/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/object-oriented-concepts-c-sharp/generate-a-list-of-objects-and-bind-to-a-gridview-in-c/</feedburner:origLink></item> <item><title>What are the seven economic drivers? Briefly explain each</title><link>http://feedproxy.google.com/~r/w3mentor/~3/R7YTQZgm8yw/</link> <comments>http://w3mentor.com/learn/project-management/supply-chain-management/what-are-the-seven-economic-drivers-briefly-explain-each/#comments</comments> <pubDate>Fri, 25 Jun 2010 18:23:02 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Supply Chain Management]]></category> <category><![CDATA[logistics]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10171</guid> <description>What are the seven economic drivers? Briefly explain each. Distance, Weight, Density, Stowability, Handling, Liability, and Market Distance- distance is a major influence on transportation cost because it directly contributes to variable expense, such as labor, fuel, and maintenance. Weight- the transport cost per unit of weight decreases as load size increases. Small loads should be consolidated [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/R7YTQZgm8yw" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/project-management/supply-chain-management/what-are-the-seven-economic-drivers-briefly-explain-each/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/project-management/supply-chain-management/what-are-the-seven-economic-drivers-briefly-explain-each/</feedburner:origLink></item> <item><title>Describe how load planning impacts transportation efficiency?</title><link>http://feedproxy.google.com/~r/w3mentor/~3/w6z8vmIRa7E/</link> <comments>http://w3mentor.com/learn/project-management/supply-chain-management/describe-how-load-planning-impacts-transportation-efficiency/#comments</comments> <pubDate>Fri, 25 Jun 2010 18:22:18 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Supply Chain Management]]></category> <category><![CDATA[logistics]]></category> <category><![CDATA[planning]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10169</guid> <description>Describe how load planning impacts transportation efficiency? In the case of trucks, capacity is limited in terms of weight and cube. Planning the load sequence of a trailer must consider physical characteristics and the size of individual shipments, as well as delivery sequence if multiple shipments are loaded on a single trailer. This will affect the [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/w6z8vmIRa7E" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/project-management/supply-chain-management/describe-how-load-planning-impacts-transportation-efficiency/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/project-management/supply-chain-management/describe-how-load-planning-impacts-transportation-efficiency/</feedburner:origLink></item> <item><title>Describe the five modes of transportation, identifying the most significant characteristic of each</title><link>http://feedproxy.google.com/~r/w3mentor/~3/zDicA1fkbTE/</link> <comments>http://w3mentor.com/learn/project-management/supply-chain-management/describe-the-five-modes-of-transportation-identifying-the-most-significant-characteristic-of-each/#comments</comments> <pubDate>Fri, 25 Jun 2010 18:21:34 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Supply Chain Management]]></category> <category><![CDATA[logistics]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10167</guid> <description>Describe the five modes of transportation, identifying the most significant characteristic of each. Rail, Highway, Water, Pipeline, and Air Rail-Railroads have handled the largest number of ton-miles in the United States to this day. A ton-mile is the standard measure of freight activity. The capability to efficiently transport large tonnage over long distances is the main and [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/zDicA1fkbTE" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/project-management/supply-chain-management/describe-the-five-modes-of-transportation-identifying-the-most-significant-characteristic-of-each/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/project-management/supply-chain-management/describe-the-five-modes-of-transportation-identifying-the-most-significant-characteristic-of-each/</feedburner:origLink></item> <item><title>Railroads have the largest percentage of intercity freight ton-miles, but motor carriers have the largest revenue. How do you explain this relationship?</title><link>http://feedproxy.google.com/~r/w3mentor/~3/yJ_WoHCuUs0/</link> <comments>http://w3mentor.com/learn/project-management/supply-chain-management/railroads-have-the-largest-percentage-of-intercity-freight-ton-miles-but-motor-carriers-have-the-largest-revenue-how-do-you-explain-this-relationship/#comments</comments> <pubDate>Fri, 25 Jun 2010 18:20:55 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[Supply Chain Management]]></category> <category><![CDATA[logistics]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10165</guid> <description>Railroads have the largest percentage of intercity freight ton-miles, but motor carriers have the largest revenue. How do you explain this relationship? While Railroads have the largest percentage of intercity freight-ton miles, this does not necessarily mean that they would have the largest revenue. While the railroads are hauling a greater amount of goods the costs [...]&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/yJ_WoHCuUs0" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/project-management/supply-chain-management/railroads-have-the-largest-percentage-of-intercity-freight-ton-miles-but-motor-carriers-have-the-largest-revenue-how-do-you-explain-this-relationship/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/project-management/supply-chain-management/railroads-have-the-largest-percentage-of-intercity-freight-ton-miles-but-motor-carriers-have-the-largest-revenue-how-do-you-explain-this-relationship/</feedburner:origLink></item> <item><title>Using the Cast operator with IEnumerable</title><link>http://feedproxy.google.com/~r/w3mentor/~3/GOT6mrjfl6Y/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/using-the-cast-operator-with-ienumerable/#comments</comments> <pubDate>Fri, 25 Jun 2010 16:25:31 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# ASP.NET LINQ]]></category> <category><![CDATA[enumeration]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10162</guid> <description>System.Collections.ArrayList people = new System.Collections.ArrayList&amp;#40;&amp;#41;; people.Add&amp;#40;&amp;#34;Mani&amp;#34;&amp;#41;; people.Add&amp;#40;&amp;#34;Madhu&amp;#34;&amp;#41;; IEnumerable&amp;#60;string&amp;#62; query = people.Cast&amp;#60;string&amp;#62;&amp;#40;&amp;#41;.Select&amp;#40;people =&amp;#62; people&amp;#41;; foreach &amp;#40;string people in query&amp;#41; Console.WriteLine&amp;#40;people&amp;#41;;&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/GOT6mrjfl6Y" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/using-the-cast-operator-with-ienumerable/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/using-the-cast-operator-with-ienumerable/</feedburner:origLink></item> <item><title>Example of using the AsEnumerable operator</title><link>http://feedproxy.google.com/~r/w3mentor/~3/lE3Ojg7MdbA/</link> <comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/example-of-using-the-asenumerable-operator/#comments</comments> <pubDate>Fri, 25 Jun 2010 16:20:46 +0000</pubDate> <dc:creator>madhu</dc:creator> <category><![CDATA[C# ASP.NET LINQ]]></category> <category><![CDATA[enumeration]]></category><guid isPermaLink="false">http://w3mentor.com/?p=10160</guid> <description>PersonDataAdapter.SelectCommand = someCommand; PersonDataAdapter.Fill&amp;#40;ds, &amp;#34;People&amp;#34;&amp;#41;; var personinfo = &amp;#40;from pi in ds.Tables&amp;#91;&amp;#34;People&amp;#34;&amp;#93;.AsEnumerable&amp;#40;&amp;#41; where pi.Field&amp;#60;string&amp;#62;&amp;#40;&amp;#34;person_name&amp;#34;&amp;#41;.Equals&amp;#40;textbox1.Text&amp;#41; select pi&amp;#41;; foreach &amp;#40;var pRow in personinfo&amp;#41; &amp;#123; //Display selected pRow elements… &amp;#125;&lt;img src="http://feeds.feedburner.com/~r/w3mentor/~4/lE3Ojg7MdbA" height="1" width="1"/&gt;</description> <wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/example-of-using-the-asenumerable-operator/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-linq/example-of-using-the-asenumerable-operator/</feedburner:origLink></item> </channel> </rss><!-- W3 Total Cache: Minify debug info:
Engine:             disk
Group:              default
--><!-- W3 Total Cache: Db cache debug info:
Engine:             disk
Total queries:      23
Cached queries:     5
Total query time:   0.039
SQL info:
    # | Time (s) |    Caching (Reject reason)     |   Status   | Query
    1 |        0 |  disabled (query is rejected)  | Not cached | SET NAMES 'utf8'
    2 |    0.007 |  disabled (query is rejected)  | Not cached | SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'
    3 |    0.002 |            enabled             |   Cached   | SELECT option_value FROM wp_options WHERE option_name = 'aiosp_post_title_format' LIMIT 1
    4 |    0.002 |            enabled             |   Cached   | SELECT option_value FROM wp_options WHERE option_name = 'sociable_disablewidget' LIMIT 1
    5 |    0.001 |            enabled             | Not cached | SELECT post_modified_gmt FROM wp_posts WHERE post_status = 'publish' AND post_type = 'post' ORDER BY post_modified_gmt DESC LIMIT 1
    6 |    0.001 |            enabled             | Not cached | SELECT post_date_gmt FROM wp_posts WHERE post_status = 'publish' AND post_type = 'post' ORDER BY post_date_gmt DESC LIMIT 1
    7 |    0.008 |  disabled (query is rejected)  | Not cached | SELECT SQL_CALC_FOUND_ROWS  wp_posts.* FROM wp_posts  WHERE 1=1  AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish')  ORDER BY wp_posts.post_date DESC LIMIT 0, 100
    8 |    0.001 |  disabled (query is rejected)  | Not cached | SELECT FOUND_ROWS()
    9 |    0.001 |            enabled             | Not cached | SELECT t.*, tt.*, tr.object_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category', 'post_tag') AND tr.object_id IN (10378, 10376, 10374, 10372, 10370, 10367, 10365, 10363, 10361, 10359, 10357, 10355, 10353, 10351, 10349, 10347, 10345, 10343, 10341, 10339, 10337, 10335, 10333, 10331, 10323, 10321, 10319, 10317, 10315, 10313, 10311, 10309, 10307, 10305, 10303, 10301, 10299, 10297, 10295, 10293, 10291, 10289, 10287, 10285, 10282, 10280, 10278, 10276, 10273, 10271, 10269, 10267, 10265, 10263, 10260, 10258, 10256, 10254, 10252, 10250, 10247, 10245, 10243, 10241, 10239, 10237, 10235, 10233, 10230, 10228, 10226, 10224, 10222, 10220, 10218, 10216, 10214, 10210, 10208, 10206, 10203, 10201, 10198, 10194, 10192, 10190, 10188, 10186, 10184, 10181, 10179, 10177, 10175, 10173, 10171, 10169, 10167, 10165, 10162, 10160) ORDER BY t.name ASC
   10 |    0.001 |            enabled             | Not cached | SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (10378,10376,10374,10372,10370,10367,10365,10363,10361,10359,10357,10355,10353,10351,10349,10347,10345,10343,10341,10339,10337,10335,10333,10331,10323,10321,10319,10317,10315,10313,10311,10309,10307,10305,10303,10301,10299,10297,10295,10293,10291,10289,10287,10285,10282,10280,10278,10276,10273,10271,10269,10267,10265,10263,10260,10258,10256,10254,10252,10250,10247,10245,10243,10241,10239,10237,10235,10233,10230,10228,10226,10224,10222,10220,10218,10216,10214,10210,10208,10206,10203,10201,10198,10194,10192,10190,10188,10186,10184,10181,10179,10177,10175,10173,10171,10169,10167,10165,10162,10160)
   11 |    0.002 |            enabled             |   Cached   | SELECT * FROM wp_users WHERE ID = 5 LIMIT 1
   12 |    0.003 |            enabled             |   Cached   | SELECT meta_key, meta_value FROM wp_usermeta WHERE user_id = 5
   13 |    0.001 |            enabled             | Not cached | SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'category' AND t.term_id = '81' LIMIT 1
   14 |    0.002 |            enabled             |   Cached   | SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'category' AND t.term_id = '6' LIMIT 1
   15 |    0.001 |            enabled             | Not cached | SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'category' AND t.term_id = '46' LIMIT 1
   16 |    0.001 |            enabled             | Not cached | SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'category' AND t.term_id = '12' LIMIT 1
   17 |    0.001 |            enabled             | Not cached | SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'category' AND t.term_id = '214' LIMIT 1
   18 |    0.001 |            enabled             | Not cached | SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'category' AND t.term_id = '3' LIMIT 1
   19 |    0.003 |            enabled             | Not cached | SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'category' AND t.term_id = '690' LIMIT 1
   20 |    0.001 |            enabled             | Not cached | SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'category' AND t.term_id = '461' LIMIT 1
   21 |        0 |            enabled             | Not cached | SELECT * FROM wp_users WHERE ID = 1 LIMIT 1
   22 |    0.001 |            enabled             | Not cached | SELECT meta_key, meta_value FROM wp_usermeta WHERE user_id = 1
   23 |        0 |            enabled             | Not cached | SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'category' AND t.term_id = '550' LIMIT 1
--><!-- W3 Total Cache: Page cache debug info:
Engine:             disk
Key:                w3tc_b54f4d67dced6c382e720c77bd80426c_page_750978a6610fa2b4f8e13fb3a731f1b6_gzip
Caching:            enabled
Status:             not cached
Creation Time:      3.951s
Header info:
X-Powered-By:       W3 Total Cache/0.8.5.2
Pragma:             public
Expires:            Sat, 24 Jul 2010 04:55:43 GMT
Last-Modified:      Sat, 17 Jul 2010 20:20:43 GMT
Cache-Control:      max-age=8600, public, must-revalidate, proxy-revalidate
Vary:               Accept-Encoding, Cookie
Etag:               91f02512986c7813c9b87ad5369138df
Content-Encoding:   gzip
X-Pingback:         http://w3mentor.com/xmlrpc.php
Content-Type:       text/xml; charset=UTF-8
-->
