<?xml version="1.0" encoding="UTF-8" standalone="no"?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>Microsoft Dot Net Master</title><description>Microsoft Dot Net Master</description><managingEditor>noreply@blogger.com (dotnetmasterindia)</managingEditor><pubDate>Thu, 30 Apr 2026 15:50:32 -0700</pubDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">512</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">25</openSearch:itemsPerPage><link>http://dotnetmasterindia.blogspot.com/</link><language>en-us</language><itunes:explicit>no</itunes:explicit><copyright>Copyright @ dotnetmasterindia</copyright><itunes:subtitle>Microsoft Dot Net Master</itunes:subtitle><itunes:author>Sandeep</itunes:author><itunes:owner><itunes:email>hisandeepkiet@gmail.com</itunes:email><itunes:name>Sandeep</itunes:name></itunes:owner><item><title>How to configure Prestashop to send e-mails</title><link>http://dotnetmasterindia.blogspot.com/2025/09/how-to-configure-prestashop-to-send-e.html</link><category>Prestashop</category><pubDate>Tue, 2 Sep 2025 10:39:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-971890558298966383</guid><description>&lt;p&gt;By default, Prestashop is configured to use the PHP mail() function for sending e-mails. However SMTP is better at handling messages and can also be used to send e-mails from a third party mail provider if necessary.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;To configure your Prestashop to use SMTP, access the application’s back office, then click on Advanced Parameters -&amp;gt; E-Mail. Select the Set my own SMTP parameters (for advanced users ONLY) option and enter the following settings in the new section that appears:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Email domain name – leave blank;&lt;/p&gt;&lt;p&gt;SMTP server – check the exact hostname to use with each of your mail accounts in your Site Tools &amp;gt; Email &amp;gt; Accounts, choose the preferred email account and go to kebab menu &amp;gt; Mail Configuration and select Manual Settings tab;&lt;/p&gt;&lt;p&gt;SMTP username – your full e-mail address, i.e. contact@yourdomainname.com;&lt;/p&gt;&lt;p&gt;SMTP password – the password for the e-mail address;&lt;/p&gt;&lt;p&gt;Encryption – SSL;&lt;/p&gt;&lt;p&gt;Port – 465.&lt;/p&gt;&lt;p&gt;Click Save to apply the new settings.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;You can confirm the functionality of the e-mail service by sending a message to yourself from Test your email configuration section.&lt;/p&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>Access Website Hosted In IIS On Windows 10 From Any PC On LAN</title><link>http://dotnetmasterindia.blogspot.com/2022/03/access-website-hosted-in-iis-on-windows.html</link><category>Asp.Net</category><pubDate>Thu, 31 Mar 2022 04:09:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-4255203984188914258</guid><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px;"&gt;&lt;h2 style="box-sizing: border-box; color: inherit; font-family: Roboto, sans-serif; font-size: 24px; font-weight: 400; line-height: 1.1; margin-bottom: 0px; margin-top: 0px;"&gt;Introduction&lt;/h2&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;In this article, we will learn about Access Website Hosted In IIS On Windows 10 From Any PC On LAN.&lt;/div&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px;"&gt;&lt;strong style="box-sizing: border-box;"&gt;Prerequisites&lt;/strong&gt;&lt;/div&gt;&lt;ul style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px;"&gt;&lt;li style="box-sizing: border-box;"&gt;Windows 10 PC with&amp;nbsp;IIS installed. (&lt;em style="box-sizing: border-box;"&gt;In this example IIS version is 10&amp;nbsp;&lt;/em&gt;)&lt;/li&gt;&lt;li style="box-sizing: border-box;"&gt;Basic knowledge of website hosting on IIS.&lt;/li&gt;&lt;/ul&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px;"&gt;&lt;h3 style="box-sizing: border-box; color: inherit; font-family: Roboto, sans-serif; font-size: 22px; font-weight: 400; line-height: 1.1; margin-bottom: 0px; margin-top: 0px;"&gt;Create a website in IIS&lt;/h3&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;Open run (windows key + R) and type inetmgr and press enter or in Cortana Search type IIS.&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJHBUsGuSZll5SWdYzyGsXwTUbr9-v02PqP6ZnBdIaW4a-zRcDSaz9SWcXEzhIDzOU7xrOzmrQY7qkQpVMtfF7VL-7q3HNWWtSd8-OJsXnO3XfNiPdx0IyQK04Oo-6jbtDbsLX_d_6cTxAeTDDfp9PFyqqZnGOVg3oOqx3Ba4AX4kdYRWe2vLzYN1e/s399/image1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="206" data-original-width="399" height="206" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJHBUsGuSZll5SWdYzyGsXwTUbr9-v02PqP6ZnBdIaW4a-zRcDSaz9SWcXEzhIDzOU7xrOzmrQY7qkQpVMtfF7VL-7q3HNWWtSd8-OJsXnO3XfNiPdx0IyQK04Oo-6jbtDbsLX_d_6cTxAeTDDfp9PFyqqZnGOVg3oOqx3Ba4AX4kdYRWe2vLzYN1e/w400-h206/image1.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN8jUge659W6v3f0zCcDcQoMxtphMcc4M4_Bg_F4wb8mPvf6hQO8sqOK0zrZUX7DEyxzHIxR7O12H-Rq3T-H6kTF3VbJQAuH3TTXy_-MJaml0NnLNFmXJFkTerSXksa7pjECYxOaYqND5Mx6jHck6w6Hz7dl78conokB5fDh1YakEmExxzXc60OQSN/s639/image2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="639" data-original-width="396" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN8jUge659W6v3f0zCcDcQoMxtphMcc4M4_Bg_F4wb8mPvf6hQO8sqOK0zrZUX7DEyxzHIxR7O12H-Rq3T-H6kTF3VbJQAuH3TTXy_-MJaml0NnLNFmXJFkTerSXksa7pjECYxOaYqND5Mx6jHck6w6Hz7dl78conokB5fDh1YakEmExxzXc60OQSN/w248-h400/image2.png" width="248" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px;"&gt;IIS Manager opens.&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;Then right click on Sites and click on Add Website. The Add website dialog opens.&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN5tkDqkbpWMpob4BIMOUk1zv4Kls7CkZKzRc4_ntKQgehZTzr02jGdLtfOME3i-j-Lvm1gCeFFLCvBEQWdn4j-wMWhSw2IUQg2BHUoHiOJRP-kHgq8o5dvAMwlzW_v2x4Ll-8LidpZ87nY7_Mj2-MHlyk3644FhFwcuomEpqcrYW__i57JPS2wRQK/s585/image3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="569" data-original-width="585" height="389" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN5tkDqkbpWMpob4BIMOUk1zv4Kls7CkZKzRc4_ntKQgehZTzr02jGdLtfOME3i-j-Lvm1gCeFFLCvBEQWdn4j-wMWhSw2IUQg2BHUoHiOJRP-kHgq8o5dvAMwlzW_v2x4Ll-8LidpZ87nY7_Mj2-MHlyk3644FhFwcuomEpqcrYW__i57JPS2wRQK/w400-h389/image3.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px;"&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;ul style="box-sizing: border-box;"&gt;&lt;li style="box-sizing: border-box;"&gt;Fill in required details and select folder where compiled code is located. Eg:&amp;nbsp;&lt;em style="box-sizing: border-box;"&gt;C:\Nigel\Publish&lt;/em&gt;&lt;/li&gt;&lt;li style="box-sizing: border-box;"&gt;Select required port , default is 80. I will be using 7500.&lt;/li&gt;&lt;li style="box-sizing: border-box;"&gt;Do not enter host name details if you are testing or using on LAN.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;Then click ok. A website gets created and it will show under Sites.&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeQUTLQgkdqXiVk8_nhXijnmfBSrqI203d4f1nks_NYIjldCQFb4f5DDU0bdxf1R4TsDBlGAV5IvUmUkpECLtujPASgCtWTNNaUe-B5KDWBTziYwaBK3UNUmNY55tZl9Xg8g9X9SHAnagHJAU65dOXiglbjhQ1DgsmIMFFSVg5O1gfnvV4rCRtY7QX/s1024/image4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="554" data-original-width="1024" height="216" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeQUTLQgkdqXiVk8_nhXijnmfBSrqI203d4f1nks_NYIjldCQFb4f5DDU0bdxf1R4TsDBlGAV5IvUmUkpECLtujPASgCtWTNNaUe-B5KDWBTziYwaBK3UNUmNY55tZl9Xg8g9X9SHAnagHJAU65dOXiglbjhQ1DgsmIMFFSVg5O1gfnvV4rCRtY7QX/w400-h216/image4.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;Now right click on website name then Manage website and then click browse.&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaL24Erat8KmAoXhDuUdaE-m34a8vWmbbMVpFi9e7vXBv_0PlgXI95BX3Qs9KW6t7ISrp569lRxg9R5mwWocdiN_LV4kf5Ywvrla3iMu9marpLIeLFD-VJ6zA5lXn_H1RvAuW6AbE1XO0l55qaiBnyOkSO-SjJqfL5LbOMLVNazHXgczH4SLOaC0BD/s518/image5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="399" data-original-width="518" height="308" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaL24Erat8KmAoXhDuUdaE-m34a8vWmbbMVpFi9e7vXBv_0PlgXI95BX3Qs9KW6t7ISrp569lRxg9R5mwWocdiN_LV4kf5Ywvrla3iMu9marpLIeLFD-VJ6zA5lXn_H1RvAuW6AbE1XO0l55qaiBnyOkSO-SjJqfL5LbOMLVNazHXgczH4SLOaC0BD/w400-h308/image5.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;div style="box-sizing: border-box;"&gt;The link should be in the form on&amp;nbsp;http://localhost:7500/&amp;nbsp; if you used port 7500 and selected http.&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;h3 style="box-sizing: border-box; color: inherit; font-family: Roboto, sans-serif; font-size: 22px; font-weight: 400; line-height: 1.1; margin-bottom: 0px; margin-top: 0px;"&gt;Locate your IP Address&lt;/h3&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;Now open command prompt. Type cmd in run.&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjAh4m5SCP7Jf74BSbU_vbXY5IX_KoTr6B4Ib_H_c4xJ77_5m0-6XXmmak5VpxY8DarntJCQDrlb0CgLJKrIK0xjc_DB_9JnHIIHlgLnbGpSvB2J0itxBJgcd9PtokEa6NrBpF9j6qBuUmQXEQ4TQavo88WZa19_NkKdhC1Y4wnYP59MLmX3Qy1WNI/s399/image6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="206" data-original-width="399" height="206" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjAh4m5SCP7Jf74BSbU_vbXY5IX_KoTr6B4Ib_H_c4xJ77_5m0-6XXmmak5VpxY8DarntJCQDrlb0CgLJKrIK0xjc_DB_9JnHIIHlgLnbGpSvB2J0itxBJgcd9PtokEa6NrBpF9j6qBuUmQXEQ4TQavo88WZa19_NkKdhC1Y4wnYP59MLmX3Qy1WNI/w400-h206/image6.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;div style="box-sizing: border-box;"&gt;Type ipconfig and press enter. Now locate your PC's IP address on the LAN.&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvFVznM9HQFn89jyGAVj83lVEmVGMxpUDt7cLyYw1ShyeL9gwswPf4OvY5LHrs-zzL0JPtEtmEb-qApuGQQzmtVRDwynzU_R4a_Th0-zVaPySKGRcTqIU25drRIxk-xJWW871dQ9oQUagyoLTiMzEuUVji4n5PHExDZxeHrs2Ht_cJijbwg0WaCpcP/s653/image7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="270" data-original-width="653" height="165" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvFVznM9HQFn89jyGAVj83lVEmVGMxpUDt7cLyYw1ShyeL9gwswPf4OvY5LHrs-zzL0JPtEtmEb-qApuGQQzmtVRDwynzU_R4a_Th0-zVaPySKGRcTqIU25drRIxk-xJWW871dQ9oQUagyoLTiMzEuUVji4n5PHExDZxeHrs2Ht_cJijbwg0WaCpcP/w400-h165/image7.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;div style="box-sizing: border-box;"&gt;Now in your website link replace localhost with 192.168.0.24 (IP address) so your URL will be - http://192.168.0.24:7500/&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;Try it in your browser to make sure it works.&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;h3 style="box-sizing: border-box; color: inherit; font-family: Roboto, sans-serif; font-size: 22px; font-weight: 400; line-height: 1.1; margin-bottom: 0px; margin-top: 0px;"&gt;Change Firewall Rules&lt;/h3&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;In Cortana search type firewall then click on Windows firewall with advanced security.&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGPHhruehW4nfdOgC_tUyUKpMhqpa6yJX6VqXMc55hCLMXHz9epRWGN1ow6ZMT9c3I81jqkGZirQ1I0nZHJr8JtqFaAOkcqq14zr0aHlbQqgDTabhVjAxuZWMpLnnnwtC0tpCFYqxti71kq9mtThJhTIOrKMah8ZbcFTJBHJfTnRqc6NIf63c2ZG5p/s637/image8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="637" data-original-width="393" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGPHhruehW4nfdOgC_tUyUKpMhqpa6yJX6VqXMc55hCLMXHz9epRWGN1ow6ZMT9c3I81jqkGZirQ1I0nZHJr8JtqFaAOkcqq14zr0aHlbQqgDTabhVjAxuZWMpLnnnwtC0tpCFYqxti71kq9mtThJhTIOrKMah8ZbcFTJBHJfTnRqc6NIf63c2ZG5p/w246-h400/image8.png" width="246" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;The firewall window opens.&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZK7FYiS9vrx4ae61-l5i8H10kDheiSTO00cofVBUT59qY2XHo3NtbS5SjshSdCnn55OYDSzk_bXh8ZHeIU-u-99neIMRiM_J106AH8xoQhlSzppVkPXqOhkEbV3aBOL88GMIF6Tv5cw4Gl0gPDutav2sFsV8EFj_m2XoSa_jDHH42mivq5wkerVAD/s1024/image9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="766" data-original-width="1024" height="299" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZK7FYiS9vrx4ae61-l5i8H10kDheiSTO00cofVBUT59qY2XHo3NtbS5SjshSdCnn55OYDSzk_bXh8ZHeIU-u-99neIMRiM_J106AH8xoQhlSzppVkPXqOhkEbV3aBOL88GMIF6Tv5cw4Gl0gPDutav2sFsV8EFj_m2XoSa_jDHH42mivq5wkerVAD/w400-h299/image9.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;Click on Inbound rules on the left. Then click new Rule in the right side menu.&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4Kbw5gacgofwnCEcLiNzpIM1v7dAAdd5dpEKdj2p_UVEwgnVN6S5yKz209RkAdC4nR5q4pwILkHOvbvQTOBzs4YGzWZY36KjsDDPD4nx1CijKcs9FKHONCGIPgSKM5Kb8XusxWF1Al7EitQgbbBR9lMhWAWYCCgB08Ty5RmoqAMp6ahFe8Vr-GSAO/s1024/image10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="766" data-original-width="1024" height="299" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4Kbw5gacgofwnCEcLiNzpIM1v7dAAdd5dpEKdj2p_UVEwgnVN6S5yKz209RkAdC4nR5q4pwILkHOvbvQTOBzs4YGzWZY36KjsDDPD4nx1CijKcs9FKHONCGIPgSKM5Kb8XusxWF1Al7EitQgbbBR9lMhWAWYCCgB08Ty5RmoqAMp6ahFe8Vr-GSAO/w400-h299/image10.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;The New inbound rule wizard will open. What type of rule would you like to create? Select Port and click Next.&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRNUe5Z7GF5W0AknNrv1yFouS0qGshSZ4APyfTTOdyjcIWYReNkddVtOhg55L0McMn6t1A-qCh50J7-3aMdVcuB4mipArWk-CcqWMgbKE8WcMl7Y5rcicnQXp7L0rEYC3CxgZz1_n_kMJmeA13iSLsFfVeCdGNMyhK2a79uWB4Hc1vaJdqYTNucLfi/s714/image11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="581" data-original-width="714" height="325" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRNUe5Z7GF5W0AknNrv1yFouS0qGshSZ4APyfTTOdyjcIWYReNkddVtOhg55L0McMn6t1A-qCh50J7-3aMdVcuB4mipArWk-CcqWMgbKE8WcMl7Y5rcicnQXp7L0rEYC3CxgZz1_n_kMJmeA13iSLsFfVeCdGNMyhK2a79uWB4Hc1vaJdqYTNucLfi/w400-h325/image11.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In Does this rule apply to TCP or UDP? Select TCP. Then enter port number (&lt;em style="box-sizing: border-box;"&gt;7500&lt;/em&gt;) in specific local ports textbox. Then click Next &amp;gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFdoptrCJRGH8GLVNdPR4XnTjNE2x-RPvXaqSHai4nCufmn0hn3W4AZmZsUutGVUuZny13Pso7JnD3LRNkEK022vOGmcO4LLFqoOghlQk2bOKVG7euW84ZpSq9jrEf9CebnfhDT2AlUbFIoXRuM6IUHraeYXZ2dO8SzAGTezycedWSRGu0yrIpHhuv/s714/image12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="581" data-original-width="714" height="325" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFdoptrCJRGH8GLVNdPR4XnTjNE2x-RPvXaqSHai4nCufmn0hn3W4AZmZsUutGVUuZny13Pso7JnD3LRNkEK022vOGmcO4LLFqoOghlQk2bOKVG7euW84ZpSq9jrEf9CebnfhDT2AlUbFIoXRuM6IUHraeYXZ2dO8SzAGTezycedWSRGu0yrIpHhuv/w400-h325/image12.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;Then the Action form opens. Select Allow the connection and click Next .&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdfPxW27wymUrnKmks7P-CpmWS-ImkkoiJpUzUBB7gpdSeRKYQMEFZnje_U45k0eOx-w3OuTU5yVqs_PjGSj24JhFn_MFe4XiuelIkQJcQii-N2DzF_4XZr9S7tv6fx_2aoCjtXbuziJnchwR7TaYXf1_fBzcHX5aP4gAkFTqOp7QpTWd7-fxLV4pN/s714/image13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="581" data-original-width="714" height="325" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdfPxW27wymUrnKmks7P-CpmWS-ImkkoiJpUzUBB7gpdSeRKYQMEFZnje_U45k0eOx-w3OuTU5yVqs_PjGSj24JhFn_MFe4XiuelIkQJcQii-N2DzF_4XZr9S7tv6fx_2aoCjtXbuziJnchwR7TaYXf1_fBzcHX5aP4gAkFTqOp7QpTWd7-fxLV4pN/w400-h325/image13.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="box-sizing: border-box;"&gt;Then the profile form opens. In the When does this rule apply? - Select required ones , if not sure then select all. Click Next.&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZZ5Ql2SMKVqde2fbn1-Uk9Pb4dbofhhivA0UPB0WtkHbWW9znPKJbYjbdZjJPlPQZnB9jHiWYoJFJlJ0spQ5HRSA9pw_W-vJbho1bxORsKYndkD33QEt_b3-SK7XUT3rZTiQ-JwXtyyD4Q7XDKtONi4nttKeqw6T1w87QvFx-wM2W3zqcGRMmsdE3/s714/image14.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="581" data-original-width="714" height="325" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZZ5Ql2SMKVqde2fbn1-Uk9Pb4dbofhhivA0UPB0WtkHbWW9znPKJbYjbdZjJPlPQZnB9jHiWYoJFJlJ0spQ5HRSA9pw_W-vJbho1bxORsKYndkD33QEt_b3-SK7XUT3rZTiQ-JwXtyyD4Q7XDKtONi4nttKeqw6T1w87QvFx-wM2W3zqcGRMmsdE3/w400-h325/image14.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;div style="box-sizing: border-box;"&gt;Give this Firewall rule a Name and Description, so you know for what purpose you created this. Then click finish.&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivGWPgv3_qlxDBsHIQwknCb0obvqL9Eq8vuRrksOEMNgJMqZhMHpG2qgOJWcFTwHBbD7mvA1fJhYSZCLfq7KvERMQhuXBl21roQc6fzu3tr76JzSO3PQhntt142iHkxoPYRI-qTJYCydmMSyGFREp9UDsUo03lzK6WZ5cB1OK0Y0pYxVJsAJJfKMRi/s714/image15.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="581" data-original-width="714" height="325" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivGWPgv3_qlxDBsHIQwknCb0obvqL9Eq8vuRrksOEMNgJMqZhMHpG2qgOJWcFTwHBbD7mvA1fJhYSZCLfq7KvERMQhuXBl21roQc6fzu3tr76JzSO3PQhntt142iHkxoPYRI-qTJYCydmMSyGFREp9UDsUo03lzK6WZ5cB1OK0Y0pYxVJsAJJfKMRi/w400-h325/image15.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;div style="box-sizing: border-box;"&gt;Now if you share the link we created earlier with someone else on your LAN it should open your website.&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;Link example: http://192.168.0.24:7500/&lt;/div&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;strong style="box-sizing: border-box;"&gt;Note&lt;/strong&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;ul style="box-sizing: border-box;"&gt;&lt;li style="box-sizing: border-box;"&gt;Be careful when changing Firewall setting otherwise you may leave your PC vulnerable to online attacks.&lt;/li&gt;&lt;li style="box-sizing: border-box;"&gt;Only use ports in non standard range (preferably after 9000).&lt;/li&gt;&lt;li style="box-sizing: border-box;"&gt;Once you are done using the website you can delete the Firewall rule.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJHBUsGuSZll5SWdYzyGsXwTUbr9-v02PqP6ZnBdIaW4a-zRcDSaz9SWcXEzhIDzOU7xrOzmrQY7qkQpVMtfF7VL-7q3HNWWtSd8-OJsXnO3XfNiPdx0IyQK04Oo-6jbtDbsLX_d_6cTxAeTDDfp9PFyqqZnGOVg3oOqx3Ba4AX4kdYRWe2vLzYN1e/s72-w400-h206-c/image1.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>Learn to Fix React Native JVM Heap Space Is Exhausted</title><link>http://dotnetmasterindia.blogspot.com/2022/01/learn-to-fix-react-native-jvm-heap.html</link><category>React Native</category><pubDate>Tue, 4 Jan 2022 03:04:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-3114854331866700005</guid><description>&lt;p&gt;&amp;nbsp;&lt;span style="background-color: white; color: #232629; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px;"&gt;Add the below lines into the gradle.properties file. Below memory size can be configured based on the RAM availability&lt;/span&gt;&lt;/p&gt;&lt;pre style="border-radius: 5px; border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"&gt;&lt;code style="border-radius: 0px; border: 0px; box-sizing: inherit; color: var(--black-800); font-family: var(--ff-mono); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"&gt;org.gradle.daemon=true
org.gradle.jvmargs=-Xmx2560m
&lt;/code&gt;&lt;/pre&gt;&lt;p style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;Through GUI:&lt;/strong&gt;&lt;/p&gt;&lt;p style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;"&gt;In the Settings, search for&amp;nbsp;&lt;strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;'Memory Settings'&lt;/strong&gt;&amp;nbsp;and increase the&amp;nbsp;&lt;strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;IDE max heap size&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;Daemon max heap size&lt;/strong&gt;&amp;nbsp;as per the system RAM availability.&lt;/p&gt;&lt;p style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;/p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdyJy_naI1DQWwfgNL4MHlpQoqAOjW75wmk3aaGK6srxsEfq-UjbzH-B94nfN-QJoHJvPknEDS7lGa3Jq0L7RFwc6JIuMhB0kCioLbrDZ7egEuJCXhLDeV7jjX-XLNtmlxuc93HE9VkDs/" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="" data-original-height="649" data-original-width="929" height="280" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdyJy_naI1DQWwfgNL4MHlpQoqAOjW75wmk3aaGK6srxsEfq-UjbzH-B94nfN-QJoHJvPknEDS7lGa3Jq0L7RFwc6JIuMhB0kCioLbrDZ7egEuJCXhLDeV7jjX-XLNtmlxuc93HE9VkDs/w400-h280/image.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdyJy_naI1DQWwfgNL4MHlpQoqAOjW75wmk3aaGK6srxsEfq-UjbzH-B94nfN-QJoHJvPknEDS7lGa3Jq0L7RFwc6JIuMhB0kCioLbrDZ7egEuJCXhLDeV7jjX-XLNtmlxuc93HE9VkDs/s72-w400-h280-c/image.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>How to show json data in flatlist in react native</title><link>http://dotnetmasterindia.blogspot.com/2021/12/how-to-show-json-data-in-flatlist-in.html</link><category>React Native</category><pubDate>Tue, 28 Dec 2021 04:31:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-9138031876880960295</guid><description>&lt;p&gt;&amp;nbsp;1. Create json data. Format is given below&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;b&gt;JsonData.json&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;[&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;"id"&lt;/span&gt; : &lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;"FirstName"&lt;/span&gt; : &lt;span style="color: #ce9178;"&gt;"Sandeep"&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;"LastName"&lt;/span&gt; : &lt;span style="color: #ce9178;"&gt;"Rauniyar"&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;"DOB"&lt;/span&gt; : &lt;span style="color: #ce9178;"&gt;"4-7-1990"&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;"CovidVaccine"&lt;/span&gt; : &lt;span style="color: #ce9178;"&gt;"Pfizer BioNTech"&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;"FirstDose"&lt;/span&gt; : &lt;span style="color: #ce9178;"&gt;"EN6888"&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;"SecondDose"&lt;/span&gt; : &lt;span style="color: #ce9178;"&gt;"ER8861"&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;"image"&lt;/span&gt;: &lt;span style="color: #ce9178;"&gt;"https://bootdey.com/img/Content/avatar/avatar1.png"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; },&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;"id"&lt;/span&gt; : &lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;"FirstName"&lt;/span&gt; : &lt;span style="color: #ce9178;"&gt;"Mukesh"&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;"LastName"&lt;/span&gt; : &lt;span style="color: #ce9178;"&gt;"Verma"&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;"DOB"&lt;/span&gt; : &lt;span style="color: #ce9178;"&gt;"10/29/1995"&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;"CovidVaccine"&lt;/span&gt; : &lt;span style="color: #ce9178;"&gt;"JANSSEN"&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;"FirstDose"&lt;/span&gt; : &lt;span style="color: #ce9178;"&gt;"2030020"&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;"SecondDose"&lt;/span&gt; : &lt;span style="color: #ce9178;"&gt;""&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;"image"&lt;/span&gt;: &lt;span style="color: #ce9178;"&gt;"https://bootdey.com/img/Content/avatar/avatar2.png"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;]&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;2. import&amp;nbsp;&lt;b&gt;JsonData.json&lt;/b&gt;&lt;/p&gt;&lt;div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;"&gt;&lt;span style="color: #c586c0;"&gt;import&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;PostData&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;from&lt;/span&gt; &lt;span style="color: #ce9178;"&gt;"../Data/JsonData.json"&lt;/span&gt;;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;3. Set data&lt;/p&gt;&lt;div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #569cd6;"&gt;const&lt;/span&gt; [&lt;span style="color: #4fc1ff;"&gt;data&lt;/span&gt;, &lt;span style="color: #dcdcaa;"&gt;setData&lt;/span&gt;] = &lt;span style="color: #dcdcaa;"&gt;useState&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;PostData&lt;/span&gt;.&lt;span style="color: #dcdcaa;"&gt;filter&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;item&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;=&amp;gt;&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;item&lt;/span&gt;.&lt;span style="color: #9cdcfe;"&gt;id&lt;/span&gt; ==&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt; ));&lt;/div&gt;&lt;div&gt;&amp;nbsp; &lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;4.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;&lt;span style="color: grey;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;FlatList&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;&lt;span style="color: #9cdcfe;"&gt;data&lt;/span&gt;=&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #4fc1ff;"&gt;data&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;&lt;span style="color: #9cdcfe;"&gt;keyExtractor&lt;/span&gt;= &lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;item&lt;/span&gt;) &lt;span style="color: #569cd6;"&gt;=&amp;gt;&lt;/span&gt; {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;item&lt;/span&gt;.&lt;span style="color: #9cdcfe;"&gt;id&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;}&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;&lt;span style="color: #9cdcfe;"&gt;renderItem&lt;/span&gt;=&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;({&lt;span style="color: #9cdcfe;"&gt;item&lt;/span&gt;}) &lt;span style="color: #569cd6;"&gt;=&amp;gt;&lt;/span&gt; {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt; (&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="color: grey;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;View&lt;/span&gt;&lt;span style="color: grey;"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: grey;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;View&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;style&lt;/span&gt;=&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;styles&lt;/span&gt;.&lt;span style="color: #9cdcfe;"&gt;box&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: grey;"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="color: grey;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Image&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;style&lt;/span&gt;=&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;styles&lt;/span&gt;.&lt;span style="color: #9cdcfe;"&gt;icon1&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;source&lt;/span&gt;=&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;{&lt;span style="color: #9cdcfe;"&gt;uri&lt;/span&gt;:&lt;span style="color: #9cdcfe;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;item&lt;/span&gt;.&lt;span style="color: #9cdcfe;"&gt;image&lt;/span&gt;}&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt; &lt;span style="color: grey;"&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="color: grey;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;View&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;style&lt;/span&gt;=&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;styles&lt;/span&gt;.&lt;span style="color: #9cdcfe;"&gt;boxContent&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: grey;"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="color: grey;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Text&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;style&lt;/span&gt;=&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;styles&lt;/span&gt;.&lt;span style="color: #9cdcfe;"&gt;title&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: grey;"&gt;&amp;gt;&lt;/span&gt;First Name : &lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;item&lt;/span&gt;.&lt;span style="color: #9cdcfe;"&gt;FirstName&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: grey;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Text&lt;/span&gt;&lt;span style="color: grey;"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: grey;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Text&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;style&lt;/span&gt;=&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;styles&lt;/span&gt;.&lt;span style="color: #9cdcfe;"&gt;description&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: grey;"&gt;&amp;gt;&lt;/span&gt;Last Name : &amp;nbsp;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;item&lt;/span&gt;.&lt;span style="color: #9cdcfe;"&gt;LastName&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: grey;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Text&lt;/span&gt;&lt;span style="color: grey;"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: grey;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Text&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;style&lt;/span&gt;=&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;styles&lt;/span&gt;.&lt;span style="color: #9cdcfe;"&gt;description&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: grey;"&gt;&amp;gt;&lt;/span&gt;DOB : &amp;nbsp;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;item&lt;/span&gt;.&lt;span style="color: #9cdcfe;"&gt;DOB&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: grey;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Text&lt;/span&gt;&lt;span style="color: grey;"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: grey;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Text&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;style&lt;/span&gt;=&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;styles&lt;/span&gt;.&lt;span style="color: #9cdcfe;"&gt;description&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: grey;"&gt;&amp;gt;&lt;/span&gt;Covid-19 Vaccine : &lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;item&lt;/span&gt;.&lt;span style="color: #9cdcfe;"&gt;CovidVaccine&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: grey;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Text&lt;/span&gt;&lt;span style="color: grey;"&gt;&amp;gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="color: grey;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;View&lt;/span&gt;&lt;span style="color: grey;"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: grey;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;View&lt;/span&gt;&lt;span style="color: grey;"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;  &lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: grey;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;View&lt;/span&gt;&lt;span style="color: grey;"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: grey;"&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method</title><link>http://dotnetmasterindia.blogspot.com/2021/12/new-nativeeventemitter-was-called-with.html</link><category>React Native</category><pubDate>Tue, 21 Dec 2021 21:17:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-3829129773032911296</guid><description>&lt;p&gt;&amp;nbsp;&lt;span style="background-color: white; color: #2a3946; font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px;"&gt;To fix, add this to&amp;nbsp;&lt;/span&gt;&lt;code style="background-color: white; box-sizing: border-box; color: #e83e8c; font-family: SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; word-break: break-word;"&gt;RNFSManager.java&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code style="background-color: white; box-sizing: border-box; color: #e83e8c; font-family: SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; word-break: break-word;"&gt;&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code style="background-color: white; box-sizing: border-box; color: #e83e8c; font-family: SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; word-break: break-word;"&gt;&lt;/code&gt;&lt;/p&gt;&lt;pre class="lang-js s-code-block" style="border-radius: 5px; border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"&gt;&lt;code class="hljs language-javascript" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"&gt;&lt;span class="hljs-comment" style="border: 0px; box-sizing: inherit; color: var(--highlight-comment); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;// Required for rn built in EventEmitter Calls.&lt;/span&gt;
    @&lt;span class="hljs-title class_" style="border: 0px; box-sizing: inherit; color: var(--highlight-literal); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;ReactMethod&lt;/span&gt;
    public &lt;span class="hljs-keyword" style="border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;void&lt;/span&gt; &lt;span class="hljs-title function_" style="border: 0px; box-sizing: inherit; color: var(--highlight-literal); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;addListener&lt;/span&gt;(&lt;span class="hljs-params" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="hljs-built_in" style="border: 0px; box-sizing: inherit; color: var(--highlight-literal); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;String&lt;/span&gt; eventName&lt;/span&gt;) {

    }

    @&lt;span class="hljs-title class_" style="border: 0px; box-sizing: inherit; color: var(--highlight-literal); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;ReactMethod&lt;/span&gt;
    public &lt;span class="hljs-keyword" style="border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;void&lt;/span&gt; &lt;span class="hljs-title function_" style="border: 0px; box-sizing: inherit; color: var(--highlight-literal); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;removeListeners&lt;/span&gt;(&lt;span class="hljs-params" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;Integer count&lt;/span&gt;) {

    }&lt;/code&gt;&lt;/pre&gt;&lt;pre class="lang-js s-code-block" style="border-radius: 5px; border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"&gt;&lt;code class="hljs language-javascript" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class="lang-js s-code-block" style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"&gt;&lt;code class="hljs language-javascript" style="border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="font-family: Times New Roman;"&gt;&lt;b&gt;Example:&lt;/b&gt; for fix warning in &lt;b&gt;react-native-fs&lt;/b&gt; add functions to &lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class="lang-js s-code-block" style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"&gt;&lt;code class="hljs language-javascript" style="border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="font-family: Times New Roman;"&gt;&lt;b&gt;node_modules\react-native-fs\android\src\main\java\com\rnfs\RNFSManager.java&lt;/b&gt; file.&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class="lang-js s-code-block" style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"&gt;&lt;code class="hljs language-javascript" style="border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="font-family: Times New Roman;"&gt;Snapshots is given below.&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class="lang-js s-code-block" style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"&gt;&lt;code class="hljs language-javascript" style="border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="font-family: Times New Roman;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class="lang-js s-code-block" style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"&gt;&lt;code class="hljs language-javascript" style="border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="font-family: Times New Roman;"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0MWvrM_VN39jvLLtPEJVd0uq9Eet53o280Szey0Mq62hKo_h5CsPEXvlRISjVY5UNqzQPLOCF0G_GtejJ0EPLaJlDc1_4QkGbV_dLIzEOMquYoadHd2CVO3AIr4HdIHdK0fpCdIztAZk/" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="" data-original-height="426" data-original-width="1125" height="242" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0MWvrM_VN39jvLLtPEJVd0uq9Eet53o280Szey0Mq62hKo_h5CsPEXvlRISjVY5UNqzQPLOCF0G_GtejJ0EPLaJlDc1_4QkGbV_dLIzEOMquYoadHd2CVO3AIr4HdIHdK0fpCdIztAZk/w640-h242/image.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class="lang-js s-code-block" style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"&gt;&lt;code class="hljs language-javascript" style="border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="font-family: Times New Roman;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class="lang-js s-code-block" style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"&gt;&lt;code class="hljs language-javascript" style="border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="font-family: Times New Roman;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0MWvrM_VN39jvLLtPEJVd0uq9Eet53o280Szey0Mq62hKo_h5CsPEXvlRISjVY5UNqzQPLOCF0G_GtejJ0EPLaJlDc1_4QkGbV_dLIzEOMquYoadHd2CVO3AIr4HdIHdK0fpCdIztAZk/s72-w640-h242-c/image.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>Log message Request and Response in ASP.NET WebAPI</title><link>http://dotnetmasterindia.blogspot.com/2021/12/log-message-request-and-response-in.html</link><category>Web API</category><pubDate>Thu, 16 Dec 2021 01:22:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-2621988195544496278</guid><description>&lt;p&gt;&lt;span style="background-color: white; color: #232629; font-family: Arial, sans-serif; font-size: 11.5pt;"&gt;There are
multiple approaches to generically handle Request/Response logging for every
WebAPI method calls:&lt;/span&gt;&lt;/p&gt;

&lt;p style="background: white; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 0cm; margin-bottom: var(--s-prose-spacing-condensed); margin-left: 58.5pt; margin-right: 0cm; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: baseline;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 11.5pt; mso-fareast-font-family: Arial;"&gt;&lt;span style="mso-list: Ignore;"&gt;1.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;code style="background-color: var(--black-075); border-radius: 3px; box-sizing: inherit; color: var(--black-800); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; white-space: pre-wrap;"&gt;&lt;span style="border: none windowtext 1.0pt; color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;"&gt;ActionFilterAttribute&lt;/span&gt;&lt;/code&gt;&lt;span style="color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 11.5pt;"&gt;: One can
write custom&amp;nbsp;&lt;/span&gt;&lt;code style="background-color: var(--black-075); border-radius: 3px; box-sizing: inherit; color: var(--black-800); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; white-space: pre-wrap;"&gt;&lt;span style="border: none windowtext 1.0pt; color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;"&gt;ActionFilterAttribute&lt;/span&gt;&lt;/code&gt;&lt;span style="color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 11.5pt;"&gt;&amp;nbsp;and decorate the
controller/action methods to enable logging.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="background: white; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 0cm; margin-left: 58.5pt; margin-right: 0cm; margin-top: 0cm; vertical-align: baseline;"&gt;&lt;span style="color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 11.5pt;"&gt;Con: You
need to decorate every controller/methods (still you can do it on base
controller, but still it doesn't address cross cutting concerns.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="background: white; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 0cm; margin-bottom: var(--s-prose-spacing-condensed); margin-left: 58.5pt; margin-right: 0cm; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: baseline;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 11.5pt; mso-fareast-font-family: Arial;"&gt;&lt;span style="mso-list: Ignore;"&gt;2.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 11.5pt;"&gt;Override&amp;nbsp;&lt;/span&gt;&lt;code style="background-color: var(--black-075); border-radius: 3px; box-sizing: inherit; color: var(--black-800); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; white-space: pre-wrap;"&gt;&lt;span style="border: none windowtext 1.0pt; color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;"&gt;BaseController&lt;/span&gt;&lt;/code&gt;&lt;span style="color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 11.5pt;"&gt;&amp;nbsp;and
handle logging there.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="background: white; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 0cm; margin-left: 58.5pt; margin-right: 0cm; margin-top: 0cm; vertical-align: baseline;"&gt;&lt;span style="color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 11.5pt;"&gt;Con: We
are expecting/forcing the controllers to inherit from a custom base controller.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="background: white; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 0cm; margin-bottom: var(--s-prose-spacing-condensed); margin-left: 58.5pt; margin-right: 0cm; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: baseline;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 11.5pt; mso-fareast-font-family: Arial;"&gt;&lt;span style="mso-list: Ignore;"&gt;3.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 11.5pt;"&gt;Using&amp;nbsp;&lt;/span&gt;&lt;code style="background-color: var(--black-075); border-radius: 3px; box-sizing: inherit; color: var(--black-800); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; white-space: pre-wrap;"&gt;&lt;span style="border: none windowtext 1.0pt; color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;"&gt;DelegatingHandler&lt;/span&gt;&lt;/code&gt;&lt;span style="color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 11.5pt;"&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="background: white; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 0cm; margin-left: 58.5pt; margin-right: 0cm; margin-top: 0cm; vertical-align: baseline;"&gt;&lt;span style="color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 11.5pt;"&gt;Advantage:
We are not touching controller/method here with this approach. Delegating
handler sits in isolation and gracefully handles the request/response logging.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="background: white; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 0cm; margin-left: 58.5pt; margin-right: 0cm; margin-top: 0cm; vertical-align: baseline;"&gt;&lt;span style="color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 11.5pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="background: white; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 0cm; margin-left: 58.5pt; margin-right: 0cm; margin-top: 0cm; vertical-align: baseline;"&gt;&lt;span style="color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 11.5pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;"&gt;I would recommend using a&amp;nbsp;&lt;code style="background-color: var(--black-075); border-radius: 3px; border: 0px; box-sizing: inherit; color: var(--black-800); font-family: var(--ff-mono); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 2px 4px; vertical-align: baseline; white-space: pre-wrap;"&gt;DelegatingHandler&lt;/code&gt;. Then you will not need to worry about any logging code in your controllers.&lt;/p&gt;&lt;pre class="lang-cs s-code-block" style="border-radius: 5px; border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"&gt;&lt;code class="hljs language-csharp" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"&gt;&lt;b&gt;&lt;span class="hljs-keyword" style="border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;public&lt;/span&gt; &lt;span class="hljs-keyword" style="border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;class&lt;/span&gt; &lt;span class="hljs-title" style="border: 0px; box-sizing: inherit; color: var(--highlight-literal); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;LogRequestAndResponseHandler&lt;/span&gt; : &lt;span class="hljs-title" style="border: 0px; box-sizing: inherit; color: var(--highlight-literal); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;DelegatingHandler&lt;/span&gt;
{
    &lt;span class="hljs-function" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="hljs-keyword" style="border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;protected&lt;/span&gt; &lt;span class="hljs-keyword" style="border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;override&lt;/span&gt; &lt;span class="hljs-keyword" style="border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;async&lt;/span&gt; Task&amp;lt;HttpResponseMessage&amp;gt; &lt;span class="hljs-title" style="border: 0px; box-sizing: inherit; color: var(--highlight-literal); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;SendAsync&lt;/span&gt;(&lt;span class="hljs-params" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;
        HttpRequestMessage request, CancellationToken cancellationToken&lt;/span&gt;)&lt;/span&gt;
    {
        &lt;span class="hljs-keyword" style="border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;if&lt;/span&gt; (request.Content != &lt;span class="hljs-literal" style="border: 0px; box-sizing: inherit; color: var(--highlight-literal); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;null&lt;/span&gt;)
        {
            &lt;span class="hljs-comment" style="border: 0px; box-sizing: inherit; color: var(--highlight-comment); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;// log request body&lt;/span&gt;
            &lt;span class="hljs-built_in" style="border: 0px; box-sizing: inherit; color: var(--highlight-literal); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;string&lt;/span&gt; requestBody = &lt;span class="hljs-keyword" style="border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;await&lt;/span&gt; request.Content.ReadAsStringAsync();
            Trace.WriteLine(requestBody);
        }
        &lt;span class="hljs-comment" style="border: 0px; box-sizing: inherit; color: var(--highlight-comment); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;// let other handlers process the request&lt;/span&gt;
        &lt;span class="hljs-keyword" style="border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;var&lt;/span&gt; result = &lt;span class="hljs-keyword" style="border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;await&lt;/span&gt; &lt;span class="hljs-keyword" style="border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;base&lt;/span&gt;.SendAsync(request, cancellationToken);

        &lt;span class="hljs-keyword" style="border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;if&lt;/span&gt; (result.Content != &lt;span class="hljs-literal" style="border: 0px; box-sizing: inherit; color: var(--highlight-literal); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;null&lt;/span&gt;)
        {
            &lt;span class="hljs-comment" style="border: 0px; box-sizing: inherit; color: var(--highlight-comment); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;// once response body is ready, log it&lt;/span&gt;
            &lt;span class="hljs-keyword" style="border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;var&lt;/span&gt; responseBody = &lt;span class="hljs-keyword" style="border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;await&lt;/span&gt; result.Content.ReadAsStringAsync();
            Trace.WriteLine(responseBody);
        }

        &lt;span class="hljs-keyword" style="border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;return&lt;/span&gt; result;
    }
}&lt;/b&gt;&lt;/code&gt;&lt;code class="hljs language-csharp" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;"&gt;Just replace&amp;nbsp;&lt;code style="background-color: var(--black-075); border-radius: 3px; border: 0px; box-sizing: inherit; color: var(--black-800); font-family: var(--ff-mono); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 2px 4px; vertical-align: baseline; white-space: pre-wrap;"&gt;Trace.WriteLine&lt;/code&gt;&amp;nbsp;with your logging code and register the handler in&amp;nbsp;&lt;code style="background-color: var(--black-075); border-radius: 3px; border: 0px; box-sizing: inherit; color: var(--black-800); font-family: var(--ff-mono); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 2px 4px; vertical-align: baseline; white-space: pre-wrap;"&gt;WebApiConfig&lt;/code&gt;&amp;nbsp;like this:&lt;/p&gt;&lt;p style="background: white; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 0cm; margin-left: 58.5pt; margin-right: 0cm; margin-top: 0cm; vertical-align: baseline;"&gt;&lt;span style="color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 11.5pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="background: white; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 0cm; margin-left: 58.5pt; margin-right: 0cm; margin-top: 0cm; vertical-align: baseline;"&gt;&lt;span style="color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 11.5pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="-webkit-text-stroke-width: 0px; background: white; box-sizing: inherit; font-stretch: inherit; font-variant-caps: normal; font-variant-east-asian: inherit; font-variant-ligatures: normal; font-variant-numeric: inherit; line-height: inherit; margin: 0cm; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; vertical-align: baseline; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: #232629; font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 11.5pt;"&gt;For
more indepth article, refer this&amp;nbsp;&lt;span style="border: 1pt none windowtext; box-sizing: inherit; color: var(--theme-link-color); cursor: pointer; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; padding: 0cm; user-select: auto;"&gt;&lt;b&gt;&lt;a href="http://weblogs.asp.net/fredriknormen/log-message-request-and-response-in-asp-net-webapi"&gt;http://weblogs.asp.net/fredriknormen/log-message-request-and-response-in-asp-net-webapi&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="-webkit-text-stroke-width: 0px; background: white; box-sizing: inherit; font-stretch: inherit; font-variant-caps: normal; font-variant-east-asian: inherit; font-variant-ligatures: normal; font-variant-numeric: inherit; line-height: inherit; margin: 0cm; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; vertical-align: baseline; widows: 2; word-spacing: 0px;"&gt;&lt;br /&gt;&lt;/p&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>Package has been Ignored because it contains Invalid Configuration React Native Error Fix</title><link>http://dotnetmasterindia.blogspot.com/2021/11/package-has-been-ignored-because-it.html</link><category>React Native</category><pubDate>Thu, 11 Nov 2021 22:12:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-135306109064420415</guid><description>&lt;p&gt;&amp;nbsp;&lt;span style="background-color: white; color: #3a3a3a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px;"&gt;As a react native developer we face many kind of react native errors while developing apps. Sometimes you may come up with a warning in the terminal as given below:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="background-color: white; color: #3a3a3a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="background-color: white; color: #3a3a3a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9JbUZIvjixmhycDUGnq4evkv8EZQAtumOp2mRkdXAsvN5wbVLNFLowWQN4yWObNe3TbIDxnIQUSXDP4J9gdtHCHt-zcrzOi5jTp2jW5wPDtEZp4B_CQqrswVCxz9REWpQGVTD-AY0hxQ/" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="" data-original-height="410" data-original-width="1059" height="155" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9JbUZIvjixmhycDUGnq4evkv8EZQAtumOp2mRkdXAsvN5wbVLNFLowWQN4yWObNe3TbIDxnIQUSXDP4J9gdtHCHt-zcrzOi5jTp2jW5wPDtEZp4B_CQqrswVCxz9REWpQGVTD-AY0hxQ/w400-h155/image.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="background-color: white; color: #3a3a3a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px;"&gt;This react native warning will finally leads to build error while trying to run your application. So, how to fix this particular error? All you need is to run&amp;nbsp;&lt;/span&gt;&lt;em style="background-color: white; border: 0px; box-sizing: inherit; color: #3a3a3a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;npm install&lt;/em&gt;&lt;span style="background-color: white; color: #3a3a3a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px;"&gt;&amp;nbsp;command on your terminal from your project folder. After that try running your project again using either&amp;nbsp;&lt;/span&gt;&lt;em style="background-color: white; border: 0px; box-sizing: inherit; color: #3a3a3a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;react-native run-android&lt;/em&gt;&lt;span style="background-color: white; color: #3a3a3a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px;"&gt;&amp;nbsp;or&amp;nbsp;&lt;/span&gt;&lt;em style="background-color: white; border: 0px; box-sizing: inherit; color: #3a3a3a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;react-native run-ios&lt;/em&gt;&lt;span style="background-color: white; color: #3a3a3a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px;"&gt;&amp;nbsp;command.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="background-color: white; color: #3a3a3a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="background-color: white; color: #3a3a3a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="background-color: white; color: #3a3a3a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="background-color: white; color: #3a3a3a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9JbUZIvjixmhycDUGnq4evkv8EZQAtumOp2mRkdXAsvN5wbVLNFLowWQN4yWObNe3TbIDxnIQUSXDP4J9gdtHCHt-zcrzOi5jTp2jW5wPDtEZp4B_CQqrswVCxz9REWpQGVTD-AY0hxQ/s72-w400-h155-c/image.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>ReactNative Metro Bundler not starting automatically</title><link>http://dotnetmasterindia.blogspot.com/2021/10/reactnative-metro-bundler-not-starting.html</link><category>React Native</category><pubDate>Mon, 25 Oct 2021 22:36:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-3722977461508323008</guid><description>&lt;p&gt;&amp;nbsp;Replace the code with this one. The path of the file is -&lt;/p&gt;&lt;p&gt;node_modules\metro-config\src\defaults\blacklist.js&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;var sharedBlacklist = [&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&amp;nbsp; /node_modules[\/\\]react[\/\\]dist[\/\\].*/,&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&amp;nbsp; /website\/node_modules\/.*/,&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&amp;nbsp; /heapCapture\/bundle\.js/,&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&amp;nbsp; /.*\/__tests__\/.*/&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;];&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Snapshots is given below:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrH19gexpEUQ7W_VrGkWS59AjEZIIJqGe-jQUMmp_63935Id9utYHZnde2geC9bhyphenhyphen6FKoJkwSpz19pQPidtH0T4K3iYWBxu2PJltx7A4PFCtED_JNClPwEXillvoW6xRR1lYlzbjyqHUk/" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="" data-original-height="454" data-original-width="728" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrH19gexpEUQ7W_VrGkWS59AjEZIIJqGe-jQUMmp_63935Id9utYHZnde2geC9bhyphenhyphen6FKoJkwSpz19pQPidtH0T4K3iYWBxu2PJltx7A4PFCtED_JNClPwEXillvoW6xRR1lYlzbjyqHUk/w551-h400/image.png" width="551" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrH19gexpEUQ7W_VrGkWS59AjEZIIJqGe-jQUMmp_63935Id9utYHZnde2geC9bhyphenhyphen6FKoJkwSpz19pQPidtH0T4K3iYWBxu2PJltx7A4PFCtED_JNClPwEXillvoW6xRR1lYlzbjyqHUk/s72-w551-h400-c/image.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>ERROR:'keytool' is not recognized as an internal or external command, operable program or batch file</title><link>http://dotnetmasterindia.blogspot.com/2021/10/errorkeytool-is-not-recognized-as.html</link><pubDate>Mon, 25 Oct 2021 22:26:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-5827561509009843330</guid><description>&lt;p&gt;&amp;nbsp;Try C:\Program Files\Java\jre1.8.0_111\bin&amp;gt;keytool -genkey -v -keystore D:\debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCAadYMIgjaMaFW8H_IbEXQiClYjHcCh_psJ42xvlFpTJxon4hPeEEJHUe4QlSjB_4KrHwAjkdfnNstQeO569WSzftxZtKN0xNJv7IU5hp_3gVZuijguzC_a7OwhRnFnfHrItr7rPRdJQ/" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="" data-original-height="377" data-original-width="982" height="246" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCAadYMIgjaMaFW8H_IbEXQiClYjHcCh_psJ42xvlFpTJxon4hPeEEJHUe4QlSjB_4KrHwAjkdfnNstQeO569WSzftxZtKN0xNJv7IU5hp_3gVZuijguzC_a7OwhRnFnfHrItr7rPRdJQ/w603-h246/image.png" width="603" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCAadYMIgjaMaFW8H_IbEXQiClYjHcCh_psJ42xvlFpTJxon4hPeEEJHUe4QlSjB_4KrHwAjkdfnNstQeO569WSzftxZtKN0xNJv7IU5hp_3gVZuijguzC_a7OwhRnFnfHrItr7rPRdJQ/s72-w603-h246-c/image.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>React Native Task :app:validateSigningDebug FAILED</title><link>http://dotnetmasterindia.blogspot.com/2021/10/react-native-task-appvalidatesigningdeb.html</link><category>React Native</category><pubDate>Mon, 25 Oct 2021 22:23:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-4433204499803193867</guid><description>&lt;p&gt;&amp;nbsp;The problem is that the build is looking for the debug keystore and cannot find it.&lt;/p&gt;&lt;p&gt;Keystore file /home/sandeep/react native/react-native-redux/android/app/debug.keystore not found for signing config 'debug'.&lt;/p&gt;&lt;p&gt;There's an issue with the same problem in React Native GitHub. According to the page, you can solve it by creating a debug keystore. Quote from the thread:&lt;/p&gt;&lt;p&gt;You can generate the debug keystore by running this command in the android/app/ directory:&amp;nbsp;&lt;/p&gt;&lt;p&gt;keytool -genkey -v -keystore D:\debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Copy the file from D drive and put in below location&lt;/p&gt;&lt;p&gt;/home/sandeep/react native/react-native-redux/android/app/debug.keystore&lt;/p&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>SELECT LAST ITEM IN LISTBOX</title><link>http://dotnetmasterindia.blogspot.com/2020/08/select-last-item-in-listbox.html</link><category>.net</category><category>C#</category><pubDate>Thu, 27 Aug 2020 11:41:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-8601413172281148549</guid><description>&lt;p&gt;&amp;nbsp;&lt;span style="background-color: white; color: #666666; font-family: &amp;quot;Segoe UI&amp;quot;, Helvetica, Garuda, Arial, sans-serif; font-size: 14px;"&gt;Use the following code but select the element before the last&lt;/span&gt;&lt;/p&gt;&lt;pre class="prettyprint prettyprinted" style="background-color: white; border: 1px solid rgb(136, 136, 136); color: #666666; direction: ltr; font-size: 14px; list-style-type: none; margin-bottom: 0px; margin-top: 0px; min-height: 70px; overflow-wrap: normal; overflow: auto visible; padding: 2px; vertical-align: baseline;"&gt;&lt;span class="pln" style="border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; LIST_ITEM&lt;/span&gt;&lt;span class="pun" style="border: 0px; color: #666600; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="border: 0px; color: #660066; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;TopIndex&lt;/span&gt;&lt;span class="pln" style="border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="border: 0px; color: #666600; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; LIST_ITEM&lt;/span&gt;&lt;span class="pun" style="border: 0px; color: #666600; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="border: 0px; color: #660066; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;Items&lt;/span&gt;&lt;span class="pun" style="border: 0px; color: #666600; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="border: 0px; color: #660066; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;Count&lt;/span&gt;&lt;span class="pln" style="border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="border: 0px; color: #666600; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;span class="pln" style="border: 0px; color: black; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="lit" style="border: 0px; color: #006666; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;1&lt;/span&gt;&lt;/pre&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>Get only Saturday and Sunday dates of month in SQL Server</title><link>http://dotnetmasterindia.blogspot.com/2020/06/get-only-saturday-and-sunday-dates-of.html</link><pubDate>Mon, 22 Jun 2020 21:18:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-8790185446191805698</guid><description>If you want to generate the data, then a CTE is the way to go&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;DECLARE&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;@MONTH INT&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; ,@YEAR INT&lt;/div&gt;&lt;div&gt;;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;SET @MONTH = 6;&lt;/div&gt;&lt;div&gt;SET @YEAR = 2020;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;WITH CTE AS&lt;/div&gt;&lt;div&gt;(&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; SELECT CAST(CAST(@MONTH AS VARCHAR(2)) + '/01/' + CAST(@YEAR AS VARCHAR(4)) AS [Date]) AS DATE&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UNION ALL&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; SELECT DATEADD(DAY,1,[Date])&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; FROM CTE&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; WHERE DATE &amp;lt;= CAST(@MONTH AS VARCHAR(2)) +&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CASE&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN @MONTH IN (9,4,6,11)&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; THEN '/30/'&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN @MONTH IN (1,3,5,7,8,10,12)&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; THEN '/31/'&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN @MONTH = 2 AND @YEAR/4.00 = @YEAR/4&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; THEN '/29/'&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ELSE '/28/'&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; END&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + CAST(@YEAR AS VARCHAR(4))&lt;/div&gt;&lt;div&gt;)&lt;/div&gt;&lt;div&gt;SELECT&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[Date]&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; ,CASE DATEPART(dw,[Date])&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN 1 THEN 'Sunday'&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN 2 THEN 'Monday'&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN 3 THEN 'Tuesday'&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN 4 THEN 'Wednesday'&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN 5 THEN 'Thursday'&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN 6 THEN 'Friday'&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN 7 THEN 'Saturday'&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; END&lt;/div&gt;&lt;div&gt;FROM CTE&lt;/div&gt;&lt;div&gt;WHERE DATEPART(dw,[Date]) IN (1,7)&lt;/div&gt;&lt;div&gt;OPTION (MAXRECURSION 0)&lt;/div&gt;&lt;div&gt;;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Output :&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;img alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXAAAADaCAYAAAC/6RkDAAAgAElEQVR4Ae1dvY7lupE+L+NgE2d9gVF4c0eDDQ10pDfwfYTe7M4JnG3saLzJXaCjfYaZ2OjQcOJo7hNwURSLKvLwVxJ1KOlroEGRLPHnq9J3KEqquv3Hp/9U9P/rf/+f+sc//qHwF0eA8MH/Mgx+/Pih8A8MYAPb2sCtlsB///13tfQ/To3HqCHyhgHWGyBwq8cMdgbMSmxgEYH//PPPqvafSP/of7VEVPJDV6Kko8vU4nb0+WL8IN+9bAAEXvG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gAASAQJ8I/D8DWd+9RU4FiQAAAABJRU5ErkJggg==" /&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>How can I select the Last day of a month in SQL?</title><link>http://dotnetmasterindia.blogspot.com/2020/06/how-can-i-select-last-day-of-month-in.html</link><category>Sql Server</category><pubDate>Mon, 22 Jun 2020 03:05:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-5113571016314565237</guid><description>&lt;div&gt;Simple Query:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;SELECT&amp;nbsp; &amp;nbsp; &amp;nbsp;EOMONTH(getdate())&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>How can I select the first day of a month in SQL?</title><link>http://dotnetmasterindia.blogspot.com/2020/06/how-can-i-select-first-day-of-month-in.html</link><category>Sql Server</category><pubDate>Mon, 22 Jun 2020 03:04:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-5237436985028436908</guid><description>Simple Query:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;SELECT DATEADD(m, DATEDIFF(m, 0, GETDATE()), 0)&amp;nbsp;&lt;/div&gt;&lt;div&gt;-- Instead of GetDate you can put any date.&lt;/div&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>How to calculate work days except Saturday and Sunday</title><link>http://dotnetmasterindia.blogspot.com/2020/06/how-to-calculate-work-days-except.html</link><category>Sql Server</category><pubDate>Mon, 22 Jun 2020 02:52:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-3503059398875769283</guid><description>Script shows the complete definition for a user defined function that calculates working days by mostly using the DATEDIFF function.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-2" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-e" style="border: 0px; color: rgb(255, 0, 255) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;CREATE &lt;/span&gt;&lt;span class="crayon-t" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;FUNCTION&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;[&lt;/span&gt;&lt;span class="crayon-v" style="border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;dbo&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;]&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;[&lt;/span&gt;&lt;span class="crayon-v" style="border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;fn_GetTotalWorkingDays&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;]&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-3" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-4" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="crayon-e" style="border: 0px; color: rgb(255, 0, 255) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;DateFrom &lt;/span&gt;&lt;span class="crayon-v" style="border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;Date&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-5" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="crayon-e" style="border: 0px; color: rgb(255, 0, 255) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;DateTo &lt;/span&gt;&lt;span class="crayon-i" style="border: 0px; color: rgb(0, 128, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;Date&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-6" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-7" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-e" style="border: 0px; color: rgb(255, 0, 255) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;RETURNS &lt;/span&gt;&lt;span class="crayon-t" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;INT&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-8" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-st" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;AS&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-9" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-e" style="border: 0px; color: rgb(255, 0, 255) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-10" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-e" style="border: 0px; color: rgb(255, 0, 255) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class="crayon-r" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;DECLARE&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="crayon-e" style="border: 0px; color: rgb(255, 0, 255) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;TotDays &lt;/span&gt;&lt;span class="crayon-t" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;INT&lt;/span&gt;&lt;span class="crayon-o" style="border: 0px; color: rgb(128, 128, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-e" style="border: 0px; color: rgb(255, 0, 255) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;DATEDIFF&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="crayon-v" style="border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;DAY&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;,&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="crayon-v" style="border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;DateFrom&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;,&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="crayon-v" style="border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;DateTo&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;)&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-o" style="border: 0px; color: rgb(128, 128, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;+&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-cn" style="border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;1&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-11" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class="crayon-r" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;DECLARE&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="crayon-e" style="border: 0px; color: rgb(255, 0, 255) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;TotWeeks &lt;/span&gt;&lt;span class="crayon-t" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;INT&lt;/span&gt;&lt;span class="crayon-o" style="border: 0px; color: rgb(128, 128, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-e" style="border: 0px; color: rgb(255, 0, 255) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;DATEDIFF&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="crayon-v" style="border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;WEEK&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;,&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="crayon-v" style="border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;DateFrom&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;,&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="crayon-v" style="border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;DateTo&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;)&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-o" style="border: 0px; color: rgb(128, 128, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;*&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-cn" style="border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;2&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-12" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class="crayon-r" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;DECLARE&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="crayon-e" style="border: 0px; color: rgb(255, 0, 255) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;IsSunday &lt;/span&gt;&lt;span class="crayon-t" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;INT&lt;/span&gt;&lt;span class="crayon-o" style="border: 0px; color: rgb(128, 128, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-st" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;CASE&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-13" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;						 &lt;/span&gt;&lt;span class="crayon-e" style="border: 0px; color: rgb(255, 0, 255) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;WHEN &lt;/span&gt;&lt;span class="crayon-e" style="border: 0px; color: rgb(255, 0, 255) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;DATENAME&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="crayon-v" style="border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;WEEKDAY&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;,&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="crayon-v" style="border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;DateFrom&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;)&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-o" style="border: 0px; color: rgb(128, 128, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-s" style="border: 0px; color: rgb(255, 0, 0) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;'Sunday'&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-14" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;						 &lt;/span&gt;&lt;span class="crayon-st" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;THEN&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-cn" style="border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-15" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;						 &lt;/span&gt;&lt;span class="crayon-st" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;ELSE&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-cn" style="border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;0&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-16" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;					&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class="crayon-st" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;END&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-17" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class="crayon-r" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;DECLARE&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="crayon-e" style="border: 0px; color: rgb(255, 0, 255) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;IsSaturday &lt;/span&gt;&lt;span class="crayon-t" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;INT&lt;/span&gt;&lt;span class="crayon-o" style="border: 0px; color: rgb(128, 128, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-st" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;CASE&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-18" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;						&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class="crayon-e" style="border: 0px; color: rgb(255, 0, 255) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;WHEN &lt;/span&gt;&lt;span class="crayon-e" style="border: 0px; color: rgb(255, 0, 255) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;DATENAME&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="crayon-v" style="border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;WEEKDAY&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;,&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="crayon-v" style="border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;DateTo&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;)&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-o" style="border: 0px; color: rgb(128, 128, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-s" style="border: 0px; color: rgb(255, 0, 0) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;'Saturday'&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-19" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;						&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class="crayon-st" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;THEN&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-cn" style="border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-20" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;						&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class="crayon-st" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;ELSE&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-cn" style="border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;0&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-21" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;					&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class="crayon-st" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;END&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-22" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class="crayon-r" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;DECLARE&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="crayon-e" style="border: 0px; color: rgb(255, 0, 255) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;TotWorkingDays &lt;/span&gt;&lt;span class="crayon-t" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;INT&lt;/span&gt;&lt;span class="crayon-o" style="border: 0px; color: rgb(128, 128, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="crayon-v" style="border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;TotDays&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-o" style="border: 0px; color: rgb(128, 128, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="crayon-v" style="border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;TotWeeks&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-o" style="border: 0px; color: rgb(128, 128, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="crayon-v" style="border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;IsSunday&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-o" style="border: 0px; color: rgb(128, 128, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;+&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="crayon-v" style="border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;IsSaturday&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-23" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class="crayon-st" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;RETURN&lt;/span&gt;&lt;span class="crayon-h" style="border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="crayon-v" style="border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;TotWorkingDays&lt;/span&gt;&lt;span class="crayon-sy" style="border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-24" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;span class="crayon-st" style="border: 0px; color: rgb(128, 0, 128) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-25" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-25" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;b&gt;Example :&lt;/b&gt; &lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-25" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-25" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-25" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;img alt="" height="154" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAr0AAADBCAYAAADCWwhLAAAgAElEQVR4Ae2dbbAlV1nvWz9aFNYt8QN1U365H5JbJdStgtGZ8+FWXT74AiQaERETZIh6FIyvV3yBEI8hGSYhmuElQdFLYXASwgQSEhzNEBSEkAhkEkUM4aASQnCIkEwGiFFinlv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EDYqsoymV7ehBCAAAQgAAEIQGD5BHpL7zRSeddl39fK9vq1Xcf9/G7ckuldfpDTAgQgAAEIQAACEOgtvRMzva3MbZLp7XV8OWtlV0WgyfTyJoQABCAAAQhAAALLJ9BbevtKpLK51R5f6jAS2q7jfesdajkyvcsPclqAAAQgAAEIQAACvaW3T6Y3LF/oEN7nFo4PVWSnGReZXt6EEIAABCAAAQhAYPkEekvvViLXlcntOr5VfbvlPJne5Qc5LUAAAhCAAAQgAIHe0jsx0/upg/bc6hV2XWsN7yk70XU8L7eLX5Pp5U0IAQhAAAIQgAAElk+gt/ROyrxe9/Kq+Y5eSZye+q7eruOT6tpt58j0Lj/IaQECEIAABCAAAQj0lt6Jmd5dnKmdV9LJ9PImhAAEIAABCEAAAssn0Ft655U7rh99k0XKgkzv8oOcFiAAAQhAAAIQgEBv6SXTW5bWVGBn2SfTy5sQAhCAAAQgAAEILJ9Ab+mdRei4ZmtRJtO7/CCnBQhAAAIQgAAEINBbesn0bi2ws0g+mV7ehBCAAAQgAAEIQGD5BCplGvs+JWgqy3ZxHJY/xbQAAQhAAAIQgAAEINAr0wsmCEAAAhCAAAQgAAEIrDIBpHeVZ4++QwACEIAABCAAAQj0IoD09sJEIQhAAAIQgAAEIACBVSaA9K7y7NF3CEAAAhCAAAQgAIFeBJDeXpgoBAEIQAACEIAABCCwygSQ3lWePfoOAQhAAAIQgAAEINCLANLbCxOFIAABCEAAAhCAAARWmQDSu8qzR98hAAEIQAACEIAABHoRQHp7YaIQBCAAAQhAAAIQgMAqE0B6V3n26DsEIAABCEAAAhCAQC8CSG8vTBSCAAQgAAEIQAACEFhlAkjvKs8efYcABCAAAQhAAAIQ6EXg/wMoRVOvTmjmfAAAAABJRU5ErkJggg==" width="561" /&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-25" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="crayon-line" id="urvanov-syntax-highlighter-5ef0744397a0f202978975-25" style="background: 0px center rgb(255, 255, 255); border: 0px; font-family: &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all;"&gt;&lt;br /&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>DateDiff to output hours and minutes</title><link>http://dotnetmasterindia.blogspot.com/2020/06/datediff-to-output-hours-and-minutes.html</link><category>Sql Server</category><category>Sql Server Error</category><pubDate>Wed, 17 Jun 2020 03:44:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-7025904687279462727</guid><description>&lt;p style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 1em; padding: 0px; vertical-align: baseline;"&gt;Very simply:&lt;/p&gt;&lt;pre class="lang-sql prettyprint prettyprinted" style="border-radius: 3px; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px 8px; vertical-align: baseline; width: auto;"&gt;&lt;code style="border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"&gt;&lt;span class="kwd" style="border: 0px; box-sizing: inherit; color: var(--blue-800); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;CONVERT&lt;/span&gt;&lt;span class="pun" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;TIME&lt;/span&gt;&lt;span class="pun" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;,&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;Date2 &lt;/span&gt;&lt;span class="pun" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; Date1&lt;/span&gt;&lt;span class="pun" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 1em; padding: 0px; vertical-align: baseline;"&gt;For example:&lt;/p&gt;&lt;pre class="lang-sql prettyprint prettyprinted" style="border-radius: 3px; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px 8px; vertical-align: baseline; width: auto;"&gt;&lt;code style="border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"&gt;&lt;span class="kwd" style="border: 0px; box-sizing: inherit; color: var(--blue-800); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;Declare&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;Date2 DATETIME &lt;/span&gt;&lt;span class="pun" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="str" style="border: 0px; box-sizing: inherit; color: var(--red-800); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;'2016-01-01 10:01:10.022'&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;/span&gt;&lt;span class="kwd" style="border: 0px; box-sizing: inherit; color: var(--blue-800); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;Declare&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;Date1 DATETIME &lt;/span&gt;&lt;span class="pun" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="str" style="border: 0px; box-sizing: inherit; color: var(--red-800); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;'2016-01-01 10:00:00.000'&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;/span&gt;&lt;span class="kwd" style="border: 0px; box-sizing: inherit; color: var(--blue-800); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;Select&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="kwd" style="border: 0px; box-sizing: inherit; color: var(--blue-800); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;CONVERT&lt;/span&gt;&lt;span class="pun" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;TIME&lt;/span&gt;&lt;span class="pun" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;,@&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;Date2 &lt;/span&gt;&lt;span class="pun" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;Date1&lt;/span&gt;&lt;span class="pun" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;)&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="kwd" style="border: 0px; box-sizing: inherit; color: var(--blue-800); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;as&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; ElapsedTime&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 1em; padding: 0px; vertical-align: baseline;"&gt;Yelds:&lt;/p&gt;&lt;pre class="lang-sql prettyprint prettyprinted" style="border-radius: 3px; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px 8px; vertical-align: baseline; width: auto;"&gt;&lt;code style="border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;ElapsedTime
&lt;/span&gt;&lt;span class="com" style="border: 0px; box-sizing: inherit; color: var(--black-400); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;----------------&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;/span&gt;&lt;span class="lit" style="border: 0px; box-sizing: inherit; color: var(--red-800); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;00&lt;/span&gt;&lt;span class="pun" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;:&lt;/span&gt;&lt;span class="lit" style="border: 0px; box-sizing: inherit; color: var(--red-800); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;01&lt;/span&gt;&lt;span class="pun" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;:&lt;/span&gt;&lt;span class="lit" style="border: 0px; box-sizing: inherit; color: var(--red-800); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;10.0233333&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;

&lt;/span&gt;&lt;span class="pun" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="lit" style="border: 0px; box-sizing: inherit; color: var(--red-800); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;1&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="kwd" style="border: 0px; box-sizing: inherit; color: var(--blue-800); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;row&lt;/span&gt;&lt;span class="pun" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;s&lt;/span&gt;&lt;span class="pun" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;)&lt;/span&gt;&lt;span class="pln" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; affected&lt;/span&gt;&lt;span class="pun" style="border: 0px; box-sizing: inherit; color: var(--black-750); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>Get value of ReadOnly TextBox in ASP.Net and retain its value across PostBack</title><link>http://dotnetmasterindia.blogspot.com/2020/06/get-value-of-readonly-textbox-in-aspnet.html</link><category>.net</category><category>Asp.Net</category><category>Asp.Net Error</category><category>C#</category><pubDate>Tue, 16 Jun 2020 23:04:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-5761482099746162793</guid><description>&lt;p class="MsoNormal"&gt;Here &lt;b&gt;Sandeep Kumar Rauniyar&lt;/b&gt; has explained how to get the
value of ReadOnly TextBox on PostBack and also how to retain its value across
PostBacks.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;In this article I will explain how to get the value of ReadOnly TextBox on PostBack and also how to retain its value across PostBacks.&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;A common example is when working with Calendar Control, when
date is selected the value is set client side and if the TextBox is set as
ReadOnly the selected date value is lost and the updated value is not available
in the TextBox Text property on PostBack.&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; margin: 0in 0in 10pt;"&gt;&lt;b style="box-sizing: border-box;"&gt;&lt;u style="box-sizing: border-box;"&gt;&lt;span style="box-sizing: border-box; font-family: arial, sans-serif; font-size: 10pt; line-height: 16.8667px;"&gt;&lt;font style="box-sizing: border-box; font-family: inherit; font-size: 11pt;"&gt;Issue&lt;/font&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&lt;span style="box-sizing: border-box; font-family: arial, sans-serif; font-size: 10pt;"&gt;&lt;font style="box-sizing: border-box; font-family: inherit; font-size: 11pt;"&gt;Whenever for the ASP.Net Textbox if the&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="box-sizing: border-box; color: red; font-family: consolas; font-size: 9.5pt;"&gt;ReadOnly&amp;nbsp;&lt;/span&gt;&lt;span style="box-sizing: border-box; font-family: arial, sans-serif; font-size: 10pt;"&gt;&lt;font style="box-sizing: border-box; font-family: inherit; font-size: 11pt;"&gt;property of the Textbox is set to true, the selected data is not available in the Text property of the Textbox on PostBack as shown in the screenshot below.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&amp;nbsp;&lt;/div&gt;&lt;p class="MsoNormal"&gt;&lt;img alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAakAAABeCAYAAACZzOtOAAAUrElEQVR4Ae2dW4wcxRWGO8gPKE88hCeQLASsEeIlhDuKRAhSNtjsIhEBUXiIgxMgAnNZdh1CnNiICIQAB5MgQFy8JJBwW8zFCwZkczEkGryAIcJsbG4x4HALYCAYm9kTnequmlPV1beZntlu77/SaHq6qk6d+qqm/j6n2+OA8AcCIAACIAACFSUQVNQvuAUCIAACIAACBJHCIgABEAABEKgsAYhUZacGjoEACIAACECksAZAAARAAAQqSwAiVdmpgWMgAAIgAAIQKawBEAABEACByhKASFV2auAYCIAACIAARAprAARAAARAoLIEIFKVnRo4BgIgAAIgAJHCGgABEAABEKgsAYhUZacGjoEACIAACECksAZAAARAAAQqSwAiVdmpgWMgAAIgAAIQKawBEAABEACByhKASFV2auAYCIAACIAARKrNNbB4nyYFB0zRY222b7fZpvO/pmDRVGbzdvwb6w8oCKLXwDAtnjuUa3yvnfctCoI+Ovb5TLcyKyh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AAElFTkSuQmCC" /&gt;&lt;br style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px;" /&gt;&lt;br style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px;" /&gt;&lt;/p&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&lt;b style="box-sizing: border-box;"&gt;&lt;u style="box-sizing: border-box;"&gt;&lt;span style="box-sizing: border-box; font-family: arial, sans-serif; font-size: 10pt;"&gt;&lt;font style="box-sizing: border-box; font-family: inherit; font-size: 11pt;"&gt;Reason&lt;/font&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&lt;span style="box-sizing: border-box; font-family: arial, sans-serif; font-size: 10pt;"&gt;&lt;font style="box-sizing: border-box; font-family: inherit; font-size: 11pt;"&gt;The reason behind this issue is that whenever value of an ASP.Net Textbox is set to ReadOnly and the value of the textbox is set client side using client side script like JavaScript, in such cases the value of the Textbox is not available in the Text property of the ASP.Net Textbox. The ASP.Net AJAX Control Toolkit CalendarExtender makes use of JavaScript to set the selected date in the Textbox.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&lt;b style="box-sizing: border-box;"&gt;&lt;u style="box-sizing: border-box;"&gt;&lt;span style="box-sizing: border-box; font-family: arial, sans-serif; font-size: 10pt;"&gt;&lt;font style="box-sizing: border-box; font-family: inherit; font-size: 11pt;"&gt;Solution&lt;/font&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&lt;span style="box-sizing: border-box; font-family: arial, sans-serif; font-size: 10pt;"&gt;&lt;font style="box-sizing: border-box; font-family: inherit; font-size: 11pt;"&gt;The solution to the issue is making use of&amp;nbsp;&lt;b style="box-sizing: border-box;"&gt;Request.Form&lt;/b&gt;&amp;nbsp;collection. As this collection has values of all fields that are posted back to the server and also it has the values that are set using client side scripts like JavaScript.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&lt;span style="box-sizing: border-box; font-family: arial, sans-serif; font-size: 10pt;"&gt;&lt;font style="box-sizing: border-box; font-family: inherit; font-size: 11pt;"&gt;Thus we need to do a small change in the way we are fetching the value server side.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&lt;b style="box-sizing: border-box;"&gt;&lt;span style="box-sizing: border-box; font-family: arial, sans-serif; font-size: 10pt;"&gt;&lt;font style="box-sizing: border-box; font-family: inherit; font-size: 11pt;"&gt;C#&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&lt;b style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div class="code_block" style="background-color: #f5f2f0; border: 1px solid rgb(225, 225, 232); box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; overflow-wrap: break-word; padding: 5px; word-break: break-all;"&gt;&lt;div style="box-sizing: border-box; font-size: 10pt;"&gt;&lt;span style="box-sizing: border-box; color: blue; font-family: consolas; font-size: 9.5pt;"&gt;protected&lt;/span&gt;&lt;span style="box-sizing: border-box; font-family: consolas; font-size: 9.5pt;"&gt;&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;"&gt;void&lt;/span&gt;&amp;nbsp;Submit(&lt;span style="box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;"&gt;object&lt;/span&gt;&amp;nbsp;sender,&amp;nbsp;&lt;span style="box-sizing: border-box; color: #2b91af; font-family: inherit; font-size: 11pt;"&gt;EventArgs&lt;/span&gt;&amp;nbsp;e)&lt;/span&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box; font-size: 10pt;"&gt;&lt;span style="box-sizing: border-box; font-family: consolas; font-size: 9.5pt;"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box; font-size: 10pt;"&gt;&lt;span style="box-sizing: border-box; font-family: consolas; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;"&gt;string&lt;/span&gt;&amp;nbsp;date = Request.Form[txtDate.UniqueID];&lt;/span&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box; font-size: 10pt;"&gt;&lt;span style="box-sizing: border-box; font-family: consolas; font-size: 9.5pt;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&lt;b style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&lt;b style="box-sizing: border-box;"&gt;&lt;span style="box-sizing: border-box; font-family: arial, sans-serif; font-size: 10pt;"&gt;&lt;font style="box-sizing: border-box; font-family: inherit; font-size: 11pt;"&gt;VB.Net&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&lt;b style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div class="code_block" style="background-color: #f5f2f0; border: 1px solid rgb(225, 225, 232); box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; overflow-wrap: break-word; padding: 5px; word-break: break-all;"&gt;&lt;div style="box-sizing: border-box; font-size: 10pt;"&gt;&lt;span style="box-sizing: border-box; color: blue; font-family: consolas; font-size: 9.5pt;"&gt;Protected&lt;/span&gt;&lt;span style="box-sizing: border-box; font-family: consolas; font-size: 9.5pt;"&gt;&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;"&gt;Sub&lt;/span&gt;&amp;nbsp;Submit(&lt;span style="box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;"&gt;ByVal&lt;/span&gt;&amp;nbsp;sender&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;"&gt;As&lt;/span&gt;&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;"&gt;Object&lt;/span&gt;,&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;"&gt;ByVal&lt;/span&gt;&amp;nbsp;e&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;"&gt;As&lt;/span&gt;&amp;nbsp;System.&lt;span style="box-sizing: border-box; color: #2b91af; font-family: inherit; font-size: 11pt;"&gt;EventArgs&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box; font-size: 10pt;"&gt;&lt;span style="box-sizing: border-box; font-family: consolas; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;"&gt;Dim&lt;/span&gt;&amp;nbsp;strDate&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;"&gt;As&lt;/span&gt;&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;"&gt;String&lt;/span&gt;&amp;nbsp;= Request.Form(txtDate.UniqueID)&lt;/span&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box; font-size: 10pt;"&gt;&lt;span style="box-sizing: border-box; color: blue; font-family: consolas; font-size: 9.5pt;"&gt;End&lt;/span&gt;&lt;span style="box-sizing: border-box; font-family: consolas; font-size: 9.5pt;"&gt;&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;"&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&lt;b style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&lt;span style="box-sizing: border-box; font-family: arial, sans-serif; font-size: 10pt;"&gt;&lt;font style="box-sizing: border-box; font-family: inherit; font-size: 11pt;"&gt;As you can see above I am fetching the value of the Textbox from the&amp;nbsp;&lt;b style="box-sizing: border-box;"&gt;Request.Form&lt;/b&gt;&amp;nbsp;collection using the&amp;nbsp;&lt;b style="box-sizing: border-box;"&gt;UniqueID&lt;/b&gt;&amp;nbsp;property of the Textbox which is nothing but Client Side name of the ASP.Net TextBox control&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&lt;span style="box-sizing: border-box; font-family: arial, sans-serif; font-size: 10pt;"&gt;&lt;font style="box-sizing: border-box; font-family: inherit; font-size: 11pt;"&gt;The screenshot below describes that the selected date value is now available server side when fetched using the Request.Form collection&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: white; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6667px; line-height: normal;"&gt;&amp;nbsp;&lt;/div&gt;&lt;p class="MsoNormal"&gt;&lt;img alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAa8AAABdCAYAAAASRumnAAAY2UlEQVR4Ae2dbYxexXXHb5E/pP2UD+RTkKwIskZRvpSQQBJFSmnUbrG9GylRSNV8qIsTnCohhmXXpdStjaiCIhLXpo0CCsabFlogLE6IDYbIEHBo9cQLGCqcrV+AGuLykgIGirF59lRn7p25Z+bO3JfnPvd527+l5bnPnZkz5/xm7vzvmXt3iQj/QAAEQAAEQGDICERD5i/cBQEQAAEQAAGCeGESgAAIgAAIDB0BiNfQDRkcBgEQAAEQgHhhDoAACIAACAwdAYjX0A0ZHAYBEAABEIB4YQ6AAAiAAAgMHQGI19ANGRwGARAAARCAeGEOgAAIgAAIDB0BiNfQDRkcBgEQAAEQgHhhDoAACIAACAwdAYjX0A0ZHAYBEAABEIB4YQ6AAAiAAAgMHQGI19ANGRwGARAAARCAeGEOgAAIgAAIDB0BiNfQDRkcBgEQAAEQgHjVnAMbP9Sm6NxFerCmnarND13xHkUbFgubdeLf3HhEUZT8TEzTxpVTpeI7sv5MiqIxuujxQrcKKyhbG/YX1iu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FhSQLVxKukUVQbTAIQr8Ecl1H0CuI1iqM6WDFBvAZrPBr1hhcU/IBBr+YA/n9ejV7OS944xGsJTgFeVPADBr2YA0ePDs6vXCzBS32kQ4Z4jfTwIjgQAAEQGE0CEK/RHFdEBQIgAAIjTQDiNdLDi+BAAARAYDQJQLxGc1wRFQiAAAiMNAGI10gPL4IDARAAgdEkAPEazXFFVCAAAiAw0gQgXiM9vAgOBEAABEaTAMRrNMcVUYEACIDASBOAeI308CI4EAABEBhNAhCv0RxXRAUCIAACI03g/wHShEFl+WZVagAAAABJRU5ErkJggg==" /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>Set MaxLength property to Multiline Textbox</title><link>http://dotnetmasterindia.blogspot.com/2020/06/set-maxlength-property-to-multiline.html</link><category>.net</category><category>Asp.Net</category><category>C#</category><pubDate>Thu, 4 Jun 2020 22:01:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-1581826128852042860</guid><description>&lt;p style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px; line-height: 1.5; margin: 1em 0px;"&gt;It is so easy to limit the number of characters allowed in a normal textbox by using MaxLength property, But same doesn’t work if the TextMode property of textbox is set to Multiline.&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;By default TextMode = "SingleLine" for a normal textbox, and it gets rendered as an input type textbox and when we set its TextMode property to MultiLine, it gets rendered as a textarea.&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;img alt="code" data-src="/UploadFile/BlogImages/06162015012802AM/code.jpg" src="https://www.c-sharpcorner.com/UploadFile/BlogImages/06162015012802AM/code.jpg" style="box-sizing: border-box; max-width: 100%;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;strong style="box-sizing: border-box;"&gt;Note:&amp;nbsp;&lt;/strong&gt;MaxLength property works only for input type and not for textarea. So to handle this, either you can use JavaScript, jQuery or any other scripts. But in this article I used C# to handle this.&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;So let's take an example, and take one normal textbox and one multiline textbox and see differences before and after writing codebehind.&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;strong style="box-sizing: border-box;"&gt;.aspx:&lt;/strong&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;/p&gt;&lt;div class="dp-highlighter" style="background-color: #e7e5dc; box-sizing: border-box; color: #212121; font-family: consolas, &amp;quot;courier new&amp;quot;, courier, mono, serif; font-size: 16px; margin: 18px 0px; overflow: auto; padding-top: 1px; width: 615.094px;"&gt;&lt;div class="bar" style="box-sizing: border-box; padding-left: 45px;"&gt;&lt;/div&gt;&lt;ol class="dp-c" start="1" style="background-color: white; border: none; box-sizing: border-box; color: #5c5c5c; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px 45px; padding: 0px;"&gt;&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 18px; list-style: outside decimal-leading-zero; margin: 0px; padding: 0px 3px 0px 10px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;lt;asp:TextBox&amp;nbsp;ID=&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;"txtMultiLine"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;runat=&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;"server"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;TextMode=&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;"MultiLine"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;MaxLength=&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;"5"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: #f8f8f8; border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; line-height: 18px; list-style: outside decimal-leading-zero; margin: 0px; padding: 0px 3px 0px 10px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;br&amp;nbsp;/&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 18px; list-style: outside decimal-leading-zero; margin: 0px; padding: 0px 3px 0px 10px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;lt;asp:TextBox&amp;nbsp;ID=&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;"txtNormal"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;runat=&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;"server"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;MaxLength=&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;"5"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;strong style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px;"&gt;CodeBehind:&lt;br style="box-sizing: border-box;" /&gt;&lt;/strong&gt;&lt;div class="dp-highlighter" style="background-color: #e7e5dc; box-sizing: border-box; color: #212121; font-family: consolas, &amp;quot;courier new&amp;quot;, courier, mono, serif; font-size: 16px; margin: 18px 0px; overflow: auto; padding-top: 1px; width: 615.094px;"&gt;&lt;div class="bar" style="box-sizing: border-box; padding-left: 45px;"&gt;&lt;/div&gt;&lt;ol class="dp-c" start="1" style="background-color: white; border: none; box-sizing: border-box; color: #5c5c5c; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px 45px; padding: 0px;"&gt;&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 18px; list-style: outside decimal-leading-zero; margin: 0px; padding: 0px 3px 0px 10px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: #f8f8f8; border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; line-height: 18px; list-style: outside decimal-leading-zero; margin: 0px; padding: 0px 3px 0px 10px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System.Web.UI;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 18px; list-style: outside decimal-leading-zero; margin: 0px; padding: 0px 3px 0px 10px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: #f8f8f8; border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; line-height: 18px; list-style: outside decimal-leading-zero; margin: 0px; padding: 0px 3px 0px 10px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;namespace&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Maxlength&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 18px; list-style: outside decimal-leading-zero; margin: 0px; padding: 0px 3px 0px 10px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: #f8f8f8; border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; line-height: 18px; list-style: outside decimal-leading-zero; margin: 0px; padding: 0px 3px 0px 10px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;partial&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;MacLength&amp;nbsp;:&amp;nbsp;System.Web.UI.Page&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 18px; list-style: outside decimal-leading-zero; margin: 0px; padding: 0px 3px 0px 10px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: #f8f8f8; border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; line-height: 18px; list-style: outside decimal-leading-zero; margin: 0px; padding: 0px 3px 0px 10px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;protected&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Page_Load(&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;object&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;sender,&amp;nbsp;EventArgs&amp;nbsp;e)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 18px; list-style: outside decimal-leading-zero; margin: 0px; padding: 0px 3px 0px 10px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: #f8f8f8; border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; line-height: 18px; list-style: outside decimal-leading-zero; margin: 0px; padding: 0px 3px 0px 10px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;(!Page.IsPostBack)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 18px; list-style: outside decimal-leading-zero; margin: 0px; padding: 0px 3px 0px 10px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: #f8f8f8; border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; line-height: 18px; list-style: outside decimal-leading-zero; margin: 0px; padding: 0px 3px 0px 10px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;txtMultiLine.Attributes.Add(&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;"maxlength"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;txtMultiLine.MaxLength.ToString());&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 18px; list-style: outside decimal-leading-zero; margin: 0px; padding: 0px 3px 0px 10px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: #f8f8f8; border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; line-height: 18px; list-style: outside decimal-leading-zero; margin: 0px; padding: 0px 3px 0px 10px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 18px; list-style: outside decimal-leading-zero; margin: 0px; padding: 0px 3px 0px 10px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: #f8f8f8; border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; line-height: 18px; list-style: outside decimal-leading-zero; margin: 0px; padding: 0px 3px 0px 10px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;span style="background-color: white; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px;"&gt;I hope you enjoyed it. Please provide your valuable suggestions and feedback.&lt;/span&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>How to fixed an error message invalid value for the "InputManifest" parameter of the "GenerateApplicationManifest" task in visual studio</title><link>http://dotnetmasterindia.blogspot.com/2017/09/how-to-fixed-error-message-invalid.html</link><category>Asp.Net Error</category><pubDate>Mon, 11 Sep 2017 04:40:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-5600352776905509733</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;"&gt;Hello everyone! In this post I would like to share how to fixed an&amp;nbsp;error message invalid value for the "InputManifest" parameter of the "GenerateApplicationManifest" task in visual studio. The full error message as:&lt;/span&gt;&lt;br style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;" /&gt;&lt;b style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;"&gt;"obj/x86/Debug/namespace.exe.manifes" is an invalid value for the "InputManifest" parameter of the "GenerateApplicationManifest" task. Multiple items cannot be passed into a parameter of type "Microsoft.Build.Framework.ITaskItem".&lt;/b&gt;&lt;br style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;" /&gt;&lt;b style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;"&gt;&lt;br /&gt;&lt;/b&gt;&lt;span style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="background: rgb(255, 255, 255); border: 1px solid rgb(238, 238, 238); box-shadow: rgba(0, 0, 0, 0.1) 1px 1px 5px; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px; margin-left: auto; margin-right: auto; padding: 5px; position: relative; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibrSL1Qv7QWztjv6UAo2fFVl0kqQ4TuriCP2KsrvmjU2V_JeNcm8sXpKAsVj9ijz-T-qyYQmLA8BtJI5f1ZEzYT2id_27JbCxqE0Gfs2eAS7Ca1-ADOu0KOEYwwTLGVAFJfjkkGxPWq6o/s1600/enable-OnceClick-security-settings-in-visual-studio.jpg" style="color: #888888; margin-left: auto; margin-right: auto; text-decoration-line: none;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibrSL1Qv7QWztjv6UAo2fFVl0kqQ4TuriCP2KsrvmjU2V_JeNcm8sXpKAsVj9ijz-T-qyYQmLA8BtJI5f1ZEzYT2id_27JbCxqE0Gfs2eAS7Ca1-ADOu0KOEYwwTLGVAFJfjkkGxPWq6o/s1600/enable-OnceClick-security-settings-in-visual-studio.jpg" style="background: transparent; border: none; box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 0px; padding: 0px; position: relative;" width="620" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="font-size: 10.56px;"&gt;&lt;span style="font-size: x-small;"&gt;An error &amp;nbsp;message invalid value for the "InputManifes" parameter of the "GenerateApplicationManifest" task&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;"&gt;To fixed this problem, please follow a few steps below:&lt;/span&gt;&lt;br style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;" /&gt;&lt;span style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;"&gt;1. First, right click on project namespace in&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;"&gt;Solution Explorer&lt;/b&gt;&lt;span style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;"&gt;&amp;nbsp;panel and then choose&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;"&gt;properties&lt;/b&gt;&lt;br /&gt;
&lt;div class="separator" style="background-color: white; clear: both; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="background-color: white; clear: both; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDKO5RfPM2qGfBjxTaDspfC0BdZa3MQYm9oVmJaz1-x42RNwkGWk0Iq_sMNy2l3_-fM7z1z9R5lUxKgIDmCEsyfL-XhlbaiLzZKi68uIJ9U43rzJjpFhRxE_uGKFD1_9GdWfepE4vQkbg/s1600/project-properties.jpg" style="color: #888888; margin-left: 1em; margin-right: 1em; text-decoration-line: none;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDKO5RfPM2qGfBjxTaDspfC0BdZa3MQYm9oVmJaz1-x42RNwkGWk0Iq_sMNy2l3_-fM7z1z9R5lUxKgIDmCEsyfL-XhlbaiLzZKi68uIJ9U43rzJjpFhRxE_uGKFD1_9GdWfepE4vQkbg/s1600/project-properties.jpg" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1px solid rgb(238, 238, 238); box-shadow: rgba(0, 0, 0, 0.1) 1px 1px 5px; padding: 5px; position: relative;" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;" /&gt;&lt;span style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;"&gt;&amp;nbsp;or go to menu bar--&amp;gt; click on&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;"&gt;Project&lt;/b&gt;&lt;span style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;"&gt;&amp;nbsp;--&amp;gt; click on your project namespace properties...&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="background-color: white; clear: both; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoRcxHdyDJ3wPyWXQfmtACdjOH5CiQ_uA7kqnSea0OeQT1XSVrMeUF6i_11rKvv0BF1hYG4NoNdbJHg5kAIpJQaYsKrKOFu-oUK376TcPUipoZZeH6Cc1mY0_iTRa65Y6BwaDpWVcnkkg/s1600/project-namespace-properties.jpg" style="color: #888888; margin-left: 1em; margin-right: 1em; text-decoration-line: none;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoRcxHdyDJ3wPyWXQfmtACdjOH5CiQ_uA7kqnSea0OeQT1XSVrMeUF6i_11rKvv0BF1hYG4NoNdbJHg5kAIpJQaYsKrKOFu-oUK376TcPUipoZZeH6Cc1mY0_iTRa65Y6BwaDpWVcnkkg/s1600/project-namespace-properties.jpg" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1px solid rgb(238, 238, 238); box-shadow: rgba(0, 0, 0, 0.1) 1px 1px 5px; padding: 5px; position: relative;" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;" /&gt;&lt;span style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;"&gt;2. &amp;nbsp;Go to&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;"&gt;Security&lt;/b&gt;&lt;span style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;"&gt;&amp;nbsp;Tab and then &amp;nbsp;uncheck &amp;nbsp;on&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;"&gt;Enable ClickOnce security settings&lt;/b&gt;&lt;br /&gt;
&lt;div class="separator" style="background-color: white; clear: both; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy4gavLXPOrB-mfc5rpWuLPahuIGGGZ38TeFK72Qoi7Z9cxHRSswix16132QGr3kYFyTEZls23n9mx8H4UMBnmPrQJAxQ10u8eXq3WJgrINS8IiwqGjvfnbDAXRTM6OpMHvmEcBENqgmo/s1600/security-tap-in-project-properties.jpg" style="color: #33aaff; margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy4gavLXPOrB-mfc5rpWuLPahuIGGGZ38TeFK72Qoi7Z9cxHRSswix16132QGr3kYFyTEZls23n9mx8H4UMBnmPrQJAxQ10u8eXq3WJgrINS8IiwqGjvfnbDAXRTM6OpMHvmEcBENqgmo/s1600/security-tap-in-project-properties.jpg" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1px solid rgb(238, 238, 238); box-shadow: rgba(0, 0, 0, 0.1) 1px 1px 5px; padding: 5px; position: relative;" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;" /&gt;&lt;span style="background-color: white; color: #666666; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;"&gt;Done....now your problem is solved....enjoy it :&lt;/span&gt;&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibrSL1Qv7QWztjv6UAo2fFVl0kqQ4TuriCP2KsrvmjU2V_JeNcm8sXpKAsVj9ijz-T-qyYQmLA8BtJI5f1ZEzYT2id_27JbCxqE0Gfs2eAS7Ca1-ADOu0KOEYwwTLGVAFJfjkkGxPWq6o/s72-c/enable-OnceClick-security-settings-in-visual-studio.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>Difference Between Char, Nchar, Varchar and Nvarchar Data Types in SQL Server</title><link>http://dotnetmasterindia.blogspot.com/2017/08/difference-between-char-nchar-varchar.html</link><category>Sql Server</category><pubDate>Sun, 20 Aug 2017 23:04:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-274179399342160628</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
This small article is intended for the audience stuck in their interview when asked for the differences among CHAR, VARCHAR, NCHAR and NVARCHAR data types. Actually it is simple but sometimes people get confused.&lt;br /&gt;
&lt;br style="box-sizing: border-box;" /&gt;
To store data as characters, numeric values and special characters in a database, there are 4 data types that can be used. So what is the difference among all 4 of these data types?&lt;/div&gt;
&lt;ul style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px;"&gt;
&lt;li style="box-sizing: border-box;"&gt;CHAR vs VARCHAR&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;NCHAR vs NVARCHAR&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
Considering an example, we will look into each one of them.&amp;nbsp;&lt;/div&gt;
&lt;div class="dp-highlighter" style="background-color: #e7e5dc; box-sizing: border-box; color: #212121; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 12px; margin: 18px 0px !important; overflow: auto; padding-top: 1px; width: 665.922px;"&gt;
&lt;ol class="dp-c" style="background-color: white; border: none; box-sizing: border-box; color: #5c5c5c; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;DECLARE&amp;nbsp;@&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;CHAR(20)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="background-color: #f8f8f8; border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;SET&amp;nbsp;@&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;'Robin'&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;SELECT&amp;nbsp;@&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;AS&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;'String'&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;DATALENGTH(@&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;)&amp;nbsp;AS&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;'Datalength'&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;,&amp;nbsp;LEN(@&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;)&amp;nbsp;AS&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;'Len'&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px;"&gt;
&lt;strong style="box-sizing: border-box;"&gt;Note:&lt;/strong&gt;&amp;nbsp;The LEN() method provides the length of a character excluding trailing blanks stored in the string expression whereas the DATALENGTH() method provides the number of byte spaces occupied by the characters in a string expression.&lt;br /&gt;
&lt;br /&gt;
As you know we represent the character values within single quotes, for example 'Robin'. But do you know we can represent these same characters within double quotes similar to programming languages representing a string, for example “Robin”? This can be done by setting the value:&lt;/div&gt;
&lt;div class="dp-highlighter" style="background-color: #e7e5dc; box-sizing: border-box; color: #212121; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 12px; margin: 18px 0px !important; overflow: auto; padding-top: 1px; width: 665.922px;"&gt;
&lt;ol class="dp-c" style="background-color: white; border: none; box-sizing: border-box; color: #5c5c5c; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;SET&amp;nbsp;QUOTED_IDENTIFIER&amp;nbsp;OFF&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
By default, it is set to ON&lt;br /&gt;
&lt;br /&gt;
&lt;strong style="box-sizing: border-box;"&gt;&lt;span style="box-sizing: border-box; font-size: 18pt;"&gt;&lt;span style="box-sizing: border-box; font-size: 14pt;"&gt;CHAR vs VARCHAR&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
Talking about the&amp;nbsp;&lt;strong style="box-sizing: border-box;"&gt;CHAR&lt;/strong&gt;&amp;nbsp;data type:&lt;/div&gt;
&lt;ul style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px;"&gt;
&lt;li style="box-sizing: border-box;"&gt;It is a fixed length data type&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;Used to store non-Unicode characters&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;Occupiers 1 byte of space for each character&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
If the value provided to a variable of CHAR data type is shorter than the length of a column of declared the size of the variable, then the value would be right-padded with blanks to match the size of column length.&amp;nbsp;&lt;/div&gt;
&lt;div class="dp-highlighter" style="background-color: #e7e5dc; box-sizing: border-box; color: #212121; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 12px; margin: 18px 0px !important; overflow: auto; padding-top: 1px; width: 665.922px;"&gt;
&lt;ol class="dp-c" style="background-color: white; border: none; box-sizing: border-box; color: #5c5c5c; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;DECLARE&amp;nbsp;@&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;CHAR(20)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="background-color: #f8f8f8; border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;SET&amp;nbsp;@&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;'Robin'&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;SELECT&amp;nbsp;@&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;AS&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;'String'&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;DATALENGTH(@&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;)&amp;nbsp;AS&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;'Datalength'&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;,&amp;nbsp;LEN(@&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;)&amp;nbsp;AS&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;'Len'&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihz_xksSLZMD521TCVuHyCUCaEy3vlfEFSrOgLABXKFZ8lsw-yA3da277fKwvx9oCRWQUA8q1CMlrx6Rm5rQsS0cKDnz3k53vQ8rBO8D-qTm6IMioN35t3zykKi_2cjazLS4MQg-VTTZQ/s1600/Char.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="60" data-original-width="216" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihz_xksSLZMD521TCVuHyCUCaEy3vlfEFSrOgLABXKFZ8lsw-yA3da277fKwvx9oCRWQUA8q1CMlrx6Rm5rQsS0cKDnz3k53vQ8rBO8D-qTm6IMioN35t3zykKi_2cjazLS4MQg-VTTZQ/s1600/Char.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px;"&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see above, the bytes occupied by the variable are 20 even though the length of the characters is 5. That means that irrespective of the character stored in the column, it will occupy all bytes to store the value.&lt;/div&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
About the&amp;nbsp;&lt;strong style="box-sizing: border-box;"&gt;VARCHAR&lt;/strong&gt;&amp;nbsp;data type:&lt;/div&gt;
&lt;ul style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px;"&gt;
&lt;li style="box-sizing: border-box;"&gt;It is a variable length data type&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;Used to store non-Unicode characters&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;Occupies 1 byte of space for each character&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="dp-highlighter" style="background-color: #e7e5dc; box-sizing: border-box; color: #212121; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 12px; margin: 18px 0px !important; overflow: auto; padding-top: 1px; width: 665.922px;"&gt;
&lt;ol class="dp-c" style="background-color: white; border: none; box-sizing: border-box; color: #5c5c5c; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;DECLARE&amp;nbsp;@&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;VARCHAR(20)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="background-color: #f8f8f8; border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;SET&amp;nbsp;@&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;'Robin'&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;SELECT&amp;nbsp;@&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;AS&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;'String'&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;DATALENGTH(@&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;)&amp;nbsp;AS&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;'Datalength'&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;,&amp;nbsp;LEN(@&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;)&amp;nbsp;AS&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;'Len'&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhi_XPlL-w0G57rkfFkQjGhOJgsiPqyhjtIZlsiwWUxIb5_o_-9WwGwLt4ANdRuCezw74GAiM5VYIdxQb9fS1MNcJipvOFLnBxSpumtto1JBWRsrJZtcjiPMRiEFnq4j1TBNd0Jocfgvc4/s1600/Varchar.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="44" data-original-width="192" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhi_XPlL-w0G57rkfFkQjGhOJgsiPqyhjtIZlsiwWUxIb5_o_-9WwGwLt4ANdRuCezw74GAiM5VYIdxQb9fS1MNcJipvOFLnBxSpumtto1JBWRsrJZtcjiPMRiEFnq4j1TBNd0Jocfgvc4/s1600/Varchar.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px;"&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see above, it is showing DATALENGTH as 5 which means it will use only the number of bytes equal to the number of characters. This will allow me to avoid wasting database space.&lt;br /&gt;
&lt;br style="box-sizing: border-box;" /&gt;
&lt;strong style="box-sizing: border-box;"&gt;Note&lt;/strong&gt;: &amp;nbsp;If SET ANSI_PADDING is OFF when CREATE TABLE or ALTER TABLE is executed, a CHAR column defined as NULL is considered as VARCHAR.&lt;br /&gt;
&lt;br style="box-sizing: border-box;" /&gt;
&lt;strong style="box-sizing: border-box;"&gt;When to use what?&lt;/strong&gt;&lt;br /&gt;
If you are sure about the fixed length of the data that would be captured for any specific column then go for CHAR data type and if the data may vary then go for VARCHAR.&lt;br /&gt;
&lt;br /&gt;
&lt;strong style="box-sizing: border-box;"&gt;&lt;span style="box-sizing: border-box; font-size: 14pt;"&gt;NCHAR vs NVARCHAR&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
Similar to CHAR data type, the&amp;nbsp;&lt;strong style="box-sizing: border-box;"&gt;NCHAR&lt;/strong&gt;&amp;nbsp;data type:&lt;/div&gt;
&lt;ul style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px;"&gt;
&lt;li style="box-sizing: border-box;"&gt;Is a fixed length data type&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;Used to store Unicode characters (for example the languages Arabic, German and so on)&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;Occupies 2 bytes of space for each character&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="dp-highlighter" style="background-color: #e7e5dc; box-sizing: border-box; color: #212121; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 12px; margin: 18px 0px !important; overflow: auto; padding-top: 1px; width: 665.922px;"&gt;
&lt;ol class="dp-c" style="background-color: white; border: none; box-sizing: border-box; color: #5c5c5c; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;DECLARE&amp;nbsp;@&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;NCHAR(20)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="background-color: #f8f8f8; border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;SET&amp;nbsp;@&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;'Robin'&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;SELECT&amp;nbsp;@&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;AS&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;'String'&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;DATALENGTH(@&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;)&amp;nbsp;AS&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;'Datalength'&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;,&amp;nbsp;LEN(@&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;)&amp;nbsp;AS&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;'Len'&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihfbN9tWM0IcHhGOTFAH5on7Gme-4SwCKuW-cARtXEhjHQXY-b2ND612QTUQlpXniOCL-zmR3oFBE0bfHK0WQ9segF25S-pkjQE4-KHlz91d3F9eGK6K-1lER-z114SMn-iU5am9jcV7Y/s1600/NCHAR.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="46" data-original-width="194" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihfbN9tWM0IcHhGOTFAH5on7Gme-4SwCKuW-cARtXEhjHQXY-b2ND612QTUQlpXniOCL-zmR3oFBE0bfHK0WQ9segF25S-pkjQE4-KHlz91d3F9eGK6K-1lER-z114SMn-iU5am9jcV7Y/s1600/NCHAR.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px;"&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see above, the data length column shows 40 bytes even though the size declared is 20. It's because NCHAR holds 2 bytes of space for each character.&lt;/div&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
About the&amp;nbsp;&lt;strong style="box-sizing: border-box;"&gt;NVARCHAR&lt;/strong&gt;&amp;nbsp;data type:&lt;/div&gt;
&lt;ul style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px;"&gt;
&lt;li style="box-sizing: border-box;"&gt;It is a variable-length data type&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;Used to store Unicode characters&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;Occupies 2 bytes of space for each character&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="dp-highlighter" style="background-color: #e7e5dc; box-sizing: border-box; color: #212121; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 12px; margin: 18px 0px !important; overflow: auto; padding-top: 1px; width: 665.922px;"&gt;
&lt;ol class="dp-c" style="background-color: white; border: none; box-sizing: border-box; color: #5c5c5c; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;DECLARE&amp;nbsp;@&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;NVARCHAR(20)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="background-color: #f8f8f8; border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;SET&amp;nbsp;@&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;'Robin'&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-bottom: none; border-image: initial; border-left: 3px solid rgb(108, 226, 108); border-right: none; border-top: none; box-sizing: border-box; color: inherit; line-height: 14px; list-style-image: initial; list-style-position: outside !important; list-style-type: decimal-leading-zero; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; color: black; margin: 0px; padding: 0px;"&gt;SELECT&amp;nbsp;@&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;AS&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;'String'&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;DATALENGTH(@&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;)&amp;nbsp;AS&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;'Datalength'&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;,&amp;nbsp;LEN(@&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; box-sizing: border-box; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;)&amp;nbsp;AS&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; box-sizing: border-box; color: blue; margin: 0px; padding: 0px;"&gt;'Len'&lt;/span&gt;&lt;span style="background-color: inherit; border: none; box-sizing: border-box; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4CKyXK8iOzDFYmU7S-3nx85ukkrzl2Og3mKBjgQxWXE9Z8SomQm25cLT-SbPLS2FuMciFQ0Rs8pab6S_a-J1u0MKOnhDQwfpxp7WWcMpEMZ1mh-tiGOmkcQlOpA6NTLCLK96-tWsrjmw/s1600/NVARCHAR.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="42" data-original-width="190" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4CKyXK8iOzDFYmU7S-3nx85ukkrzl2Og3mKBjgQxWXE9Z8SomQm25cLT-SbPLS2FuMciFQ0Rs8pab6S_a-J1u0MKOnhDQwfpxp7WWcMpEMZ1mh-tiGOmkcQlOpA6NTLCLK96-tWsrjmw/s1600/NVARCHAR.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px;"&gt;
&lt;br /&gt;
&lt;br /&gt;
As in the output above, you will observe DATALENGTH column is showing only 10 as a value. That is because it occupies 2 bytes of space for each character and the data length is only 5 characters, therefore it will occupy 10 bytes of space in the database.&lt;br /&gt;
&lt;strong style="box-sizing: border-box;"&gt;&lt;br style="box-sizing: border-box;" /&gt;When to use what?&lt;/strong&gt;&lt;br /&gt;
If your column will store a fixed-length Unicode characters like French, Arabic and so on characters then go for NCHAR. If the data stored in a column is Unicode and can vary in length, then go for NVARCHAR.&amp;nbsp;&lt;/div&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px;"&gt;
Querying to NCHAR or NVARCHAR is a bit slower then CHAR or VARCHAR. So don't go for NCHAR or NVARCHAR to store non-Unicode characters even though this data type supports that.&amp;nbsp;&lt;/div&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 14px;"&gt;
&lt;br style="box-sizing: border-box;" /&gt;
&lt;strong style="box-sizing: border-box;"&gt;&lt;span style="box-sizing: border-box; font-size: 14pt;"&gt;Conclusion&lt;/span&gt;&lt;/strong&gt;This small article is just to make you aware of the differences among the CHAR, VARCHAR, NCHAR and NVARCHAR data types since they are all used to store characters, numbers or special characters. I hope you like this small article and will that it will be helpful to you at some point of time. Leave your comments whether its good or bad. Sharing is valuable no matter what :)&lt;/div&gt;
&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihz_xksSLZMD521TCVuHyCUCaEy3vlfEFSrOgLABXKFZ8lsw-yA3da277fKwvx9oCRWQUA8q1CMlrx6Rm5rQsS0cKDnz3k53vQ8rBO8D-qTm6IMioN35t3zykKi_2cjazLS4MQg-VTTZQ/s72-c/Char.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>Cookies in ASP.NET</title><link>http://dotnetmasterindia.blogspot.com/2017/08/cookies-in-aspnet.html</link><category>Asp.Net</category><pubDate>Mon, 7 Aug 2017 03:54:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-2506598396311307590</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div align="left" style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;span style="box-sizing: border-box;"&gt;Cookies is a small piece of information stored on the client machine. This file is located on client machines "C:\Document and Settings\Currently_Login user\Cookie" path.&amp;nbsp; Its is used to store user preference information like Username, Password,City and PhoneNo etc on client machines. We need to import namespace called&amp;nbsp; Systen.Web.HttpCookie before we use cookie.&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&lt;b style="box-sizing: border-box;"&gt;Type of Cookies?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif;"&gt;
&lt;li style="box-sizing: border-box;"&gt;&lt;div align="left" style="box-sizing: border-box; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;Persist Cookie - A cookie has not have expired time Which is called as Persist Cookie&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;&lt;div align="left" style="box-sizing: border-box; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;Non-Persist Cookie - A cookie has expired time Which is called as Non-Persist Cookie&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div align="left" style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;b style="box-sizing: border-box;"&gt;How to create a cookie?&amp;nbsp;&lt;/b&gt;&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;Its really easy to create a cookie in the Asp.Net with help of Response object or HttpCookie&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&lt;u style="box-sizing: border-box;"&gt;&lt;b style="box-sizing: border-box;"&gt;Example 1&lt;/b&gt;&lt;/u&gt;:&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="box-sizing: border-box; color: #2b91af;"&gt;HttpCookie&lt;/span&gt;&amp;nbsp;userInfo =&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue;"&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style="box-sizing: border-box; color: #2b91af;"&gt;HttpCookie&lt;/span&gt;(&lt;span style="box-sizing: border-box; color: #a31515;"&gt;"userInfo"&lt;/span&gt;);&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; userInfo[&lt;span style="box-sizing: border-box; color: #a31515;"&gt;"UserName"&lt;/span&gt;] =&amp;nbsp;&lt;span style="box-sizing: border-box; color: #a31515;"&gt;"Annathurai"&lt;/span&gt;;&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; userInfo[&lt;span style="box-sizing: border-box; color: #a31515;"&gt;"UserColor"&lt;/span&gt;] =&amp;nbsp;&lt;span style="box-sizing: border-box; color: #a31515;"&gt;"Black"&lt;/span&gt;;&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; userInfo.Expires.Add(&lt;span style="box-sizing: border-box; color: blue;"&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style="box-sizing: border-box; color: #2b91af;"&gt;TimeSpan&lt;/span&gt;(0, 1, 0));&lt;/span&gt;&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;; line-height: 15.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Cookies.Add(userInfo);&lt;/span&gt;&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;u style="box-sizing: border-box;"&gt;&lt;b style="box-sizing: border-box;"&gt;Example 2&lt;/b&gt;&lt;/u&gt;:&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Cookies[&lt;span style="box-sizing: border-box; color: #a31515;"&gt;"userName"&lt;/span&gt;].Value =&amp;nbsp;&lt;span style="box-sizing: border-box; color: #a31515;"&gt;"Annathurai"&lt;/span&gt;;&lt;/span&gt;&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;; line-height: 15.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Cookies[&lt;span style="box-sizing: border-box; color: #a31515;"&gt;"userColor"&lt;/span&gt;].Value =&amp;nbsp;&lt;span style="box-sizing: border-box; color: #a31515;"&gt;"Black"&lt;/span&gt;;&lt;/span&gt;&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&lt;b style="box-sizing: border-box;"&gt;How to retrieve from cookie?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;/span&gt;&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;Its easy way to retrieve cookie value form cookes by help of Request object.&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&lt;u style="box-sizing: border-box;"&gt;&lt;b style="box-sizing: border-box;"&gt;Example 1&lt;/b&gt;&lt;/u&gt;:&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue;"&gt;string&lt;/span&gt;&amp;nbsp;User_Name =&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue;"&gt;string&lt;/span&gt;&amp;nbsp;User_Color =&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User_Name = Request.Cookies[&lt;span style="box-sizing: border-box; color: #a31515;"&gt;"userName"&lt;/span&gt;].Value;&lt;/span&gt;&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;; line-height: 15.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;User_Color = Request.Cookies[&lt;span style="box-sizing: border-box; color: #a31515;"&gt;"userColor"&lt;/span&gt;].Value;&lt;/span&gt;&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;u style="box-sizing: border-box;"&gt;&lt;b style="box-sizing: border-box;"&gt;Example 2&lt;/b&gt;&lt;/u&gt;:&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue;"&gt;string&lt;/span&gt;&amp;nbsp;User_name =&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue;"&gt;string&lt;/span&gt;&amp;nbsp;User_color =&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="box-sizing: border-box; color: #2b91af;"&gt;HttpCookie&lt;/span&gt;&amp;nbsp;reqCookies = Request.Cookies[&lt;span style="box-sizing: border-box; color: #a31515;"&gt;"userInfo"&lt;/span&gt;];&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue;"&gt;if&lt;/span&gt;&amp;nbsp;(reqCookies !=&amp;nbsp;&lt;span style="box-sizing: border-box; color: blue;"&gt;null&lt;/span&gt;)&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User_name = reqCookies[&lt;span style="box-sizing: border-box; color: #a31515;"&gt;"UserName"&lt;/span&gt;].ToString();&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User_color = reqCookies[&lt;span style="box-sizing: border-box; color: #a31515;"&gt;"UserColor"&lt;/span&gt;].ToString();&lt;/span&gt;&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;; line-height: 15.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;br style="box-sizing: border-box;" /&gt;&amp;nbsp;&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;When we make request from client to&amp;nbsp;web&amp;nbsp;&lt;nobr id="itxt_nobr_13_0" style="box-sizing: border-box;"&gt;server&lt;img height="10" src="https://images.intellitxt.com/ast/adTypes/mag-glass_10x10.gif" style="border-width: 0px; box-sizing: border-box; display: inline !important; float: none; height: 10px; left: 1px; margin: 0px; max-width: 100%; padding: 0px; position: relative; top: 1px; width: 10px;" width="10" /&gt;&lt;/nobr&gt;, the web server process the request and give the lot of information with big pockets&amp;nbsp; which will have Header information, Metadata, cookies etc., Then repose object can do all the things with browser.&amp;nbsp;&lt;/span&gt;&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;/span&gt;&lt;b style="box-sizing: border-box;"&gt;&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;Cookie's common property:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;ol style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif;"&gt;
&lt;li style="box-sizing: border-box;"&gt;&lt;div align="left" style="box-sizing: border-box; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;Domain =&amp;gt; Which is used to associate cookies to domain.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;&lt;div align="left" style="box-sizing: border-box; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;Secure &amp;nbsp;=&amp;gt; We can enable secure cookie to set true(HTTPs).&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;&lt;div align="left" style="box-sizing: border-box; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;Value&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; We can manipulate individual cookie.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;&lt;div align="left" style="box-sizing: border-box; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;Values&amp;nbsp; =&amp;gt; We can manipulate cookies with key/value pair.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;&lt;div align="left" style="box-sizing: border-box; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;Expires =&amp;gt; Which is used to set expire date for the cookies.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div align="left" style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;b style="box-sizing: border-box;"&gt;Advantages of Cookie:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif;"&gt;
&lt;li style="box-sizing: border-box;"&gt;&lt;div align="left" style="box-sizing: border-box; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;Its clear text so user can able to read it.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;&lt;div align="left" style="box-sizing: border-box; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;We can store user preference information on the client machine.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;&lt;div align="left" style="box-sizing: border-box; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;Its easy way to maintain.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;div align="left" style="box-sizing: border-box; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
Fast accessing.&lt;/div&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div align="left" style="box-sizing: border-box; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;b style="box-sizing: border-box;"&gt;Disadvantages of Cookie&lt;/b&gt;&lt;/div&gt;
&lt;ol style="box-sizing: border-box;"&gt;
&lt;li style="box-sizing: border-box;"&gt;&lt;div align="left" style="box-sizing: border-box; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
If user clear cookie information we can't get it back.&lt;/div&gt;
&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;&lt;div align="left" style="box-sizing: border-box; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
No security.&lt;/div&gt;
&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;&lt;div align="left" style="box-sizing: border-box; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
Each request will have cookie information with page.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div align="left" style="box-sizing: border-box; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;b style="box-sizing: border-box;"&gt;How to clear the cookie information?&lt;/b&gt;&lt;/div&gt;
&lt;span style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ol style="background-color: white; box-sizing: border-box; color: #212121; font-family: &amp;quot;open sans&amp;quot;, sans-serif;"&gt;&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;
&lt;li style="box-sizing: border-box;"&gt;&lt;div align="left" style="box-sizing: border-box; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
we can clear cookie information from client machine on cookie folder&lt;/div&gt;
&lt;/li&gt;
&lt;/span&gt;
&lt;li style="box-sizing: border-box;"&gt;&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;&lt;/span&gt;&lt;div align="left" style="box-sizing: border-box; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;span style="box-sizing: border-box; font-family: &amp;quot;verdana&amp;quot;;"&gt;To set expires to cookie object&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;userInfo.Expires = DateTime.Now.AddHours(1);&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;It will clear the cookie with one hour duration.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>ASP.Net Worker Process and ISAPI</title><link>http://dotnetmasterindia.blogspot.com/2017/08/aspnet-worker-process-and-isapi.html</link><category>Asp.Net</category><pubDate>Mon, 7 Aug 2017 02:19:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-7305008969404929638</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #212121; line-height: 1.5; margin-bottom: 1em; margin-top: 1em;"&gt;
&lt;span style="box-sizing: border-box; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b style="box-sizing: border-box;"&gt;What is Worker Process?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="box-sizing: border-box;"&gt;"The "Process" which is responsible for processing Asp.net application request and sending back response to the client , is known as "Worker Process". All ASP.NET functionalities runs within the scope of this pr&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: xx-small;"&gt;ocess."&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;span style="box-sizing: border-box; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b style="box-sizing: border-box;"&gt;So finally I can write it...&lt;/b&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;"Process which is responsible for all asp.net requests and response cycle is known as worker process."&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;b style="box-sizing: border-box;"&gt;What about Worker process in Web Farm?&lt;/b&gt;&lt;br style="box-sizing: border-box;" /&gt;A Web farm contains multiple ASP.NET worker processes.&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;Each server in the group of servers handles a separate ASP.NET worker process.&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;b style="box-sizing: border-box;"&gt;What about Worker process in Web Garden?&lt;/b&gt;&lt;br style="box-sizing: border-box;" /&gt;A Web garden contains multiple ASP.NET worker processes.&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;Each CPU in the SMP server handles a separate ASP.NET worker process.&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;Let's See the Worker Process&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;Running IIS 5.0: Aspnet_wp.ex&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;Running IIS 6.0: W3wp.exe&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkYTJOTAiCUz1aKNo_i97DE62YNuUx6ObaDorGXRpxgGjfC92NffaiwJ9lYhRn5ybR0fx56fbOBUYyxdR5spEZFDass-fYykcLDMerAiBVKpBeL2ZSSzEZirLSMwTIUnU2y5wQHWsCcxM/s1600/figure1.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" data-original-height="471" data-original-width="482" height="312" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkYTJOTAiCUz1aKNo_i97DE62YNuUx6ObaDorGXRpxgGjfC92NffaiwJ9lYhRn5ybR0fx56fbOBUYyxdR5spEZFDass-fYykcLDMerAiBVKpBeL2ZSSzEZirLSMwTIUnU2y5wQHWsCcxM/s320/figure1.gif" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="box-sizing: border-box; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;b style="box-sizing: border-box;"&gt;ISAPI&lt;/b&gt;&lt;br style="box-sizing: border-box;" /&gt;ISAPI is the first and highest performance entry point into IIS for custom Web Request handling&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;ISAPI (Internet Server Application Program Interface) is a set of Windows program (APIs (DLL)) calls that let you write a Web server application that will run faster than a common gateway interface (CGI) application.&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;b style="box-sizing: border-box;"&gt;Let's technically see this...&lt;/b&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;When the first ASP.NET request comes in the DLL will spawn a new process in another EXE â€“ aspnet_wp.exe/w3wp.exe â€“ and route processing to this spawned process. This process in turn loads and hosts the .NET runtime. Every request that comes into the ISAPI DLL then routes to this worker process via Named Pipe calls.&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;A request starts on the browser where the user types in a URL, clicks on a hyperlink or submits an HTML form. Or a client application might make call against an ASP.NET based Web Service, which is also serviced by ASP.NET. On the server side the Web Server IIS picks up the request. At the lowest level ASP.NET interfaces with IIS through an ISAPI extension.&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;In IIS .aspx is mapped through an 'Application Extension' (aka. as a script map) that is mapped to the ASP.NET ISAPI dll - aspnet_isapi.dll. Every request that fires ASP.NET must go through an extension that is registered and points at aspnet_isapi.dll.&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;ISAPI is very low level it also is very fast, but fairly unmanageable for application level development. So, ISAPI has been mainly relegated for some time to providing bridge interfaces to other application or platforms. But ISAPI isn't dead by any means. In fact, ASP.NET on Microsoft platforms interfaces with IIS through an ISAPI extension that hosts .NET and through it the ASP.NET runtime. ISAPI provides the core interface from the Web Server and ASP.NET uses the unmanaged ISAPI code to retrieve input and send output back to the client. The content that ISAPI provides is available via common objects like HttpRequest and HttpResponse that expose the unmanaged data as managed objects with a nice and accessible interface.&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;b style="box-sizing: border-box;"&gt;What Kind of HTTP Server Is Needed to Run ISAPI?&lt;/b&gt;&lt;br style="box-sizing: border-box;" /&gt;To host Web sites, you must have an Internet server that supports the Hypertext Transfer Protocol (HTTP). If you have chosen an ISAPI-compliant Web server (for example, Microsoft Internet Information Server), you can take advantage of server extension DLLs to create small, fast Internet server applications.&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;A special kind of ISAPI DLL is called an ISAPI filter, which can be designated to receive control for every HTTP request. You can create an ISAPI filter for encryption or decryption, for logging, for request screening, or for other purposes.&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;b style="box-sizing: border-box;"&gt;ISAPI consists of two components:&lt;u style="box-sizing: border-box;"&gt;&amp;nbsp;Extensions and Filters&lt;/u&gt;.&amp;nbsp;&lt;/b&gt;These are the only two types of application that can be developed using ISAPI.&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;b style="box-sizing: border-box;"&gt;Extensions&lt;/b&gt;&lt;br style="box-sizing: border-box;" /&gt;ISAPI Extensions are true applications that run on IIS. They have access to all of the functionality provided by IIS. ISAPI extensions are implemented as DLLs that are loaded into a process that is controlled by IIS. Clients can access ISAPI extensions in the same way they access a static HTML page.&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;b style="box-sizing: border-box;"&gt;Filters&lt;/b&gt;&lt;br style="box-sizing: border-box;" /&gt;ISAPI filters are used to modify or enhance the functionality provided by IIS. They always run on an IIS server and filter every request until they find one they need to process. Filters can be programmed to examine and modify both incoming and outgoing streams of data.&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;Filters are implemented as DLL files and can be registered on an IIS server on a site level or a global level (i.e., apply to all sites on an IIS server). Filters are initialized when the worker process is started and listens to all requests to the site on which it is installed.&amp;nbsp;&lt;br style="box-sizing: border-box;" /&gt;&lt;br style="box-sizing: border-box;" /&gt;&lt;b style="box-sizing: border-box;"&gt;Common tasks performed by ISAPI filters include:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul style="background-color: white; box-sizing: border-box; color: #212121;"&gt;&lt;span style="box-sizing: border-box; font-family: Arial, Helvetica, sans-serif;"&gt;
&lt;li style="box-sizing: border-box;"&gt;Changing request data (URLs or headers) sent by the client&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;Controlling which physical file gets mapped to the URL&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;Controlling the user name and password used with anonymous or basic authentication&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;Modifying or analyzing a request after authentication is complete&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;Modifying a response going back to the client&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;Running custom processing on "access denied" responses&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;Running processing when a request is complete&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;Run processing when a connection with the client is closed&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;Performing special logging or traffic analysis.&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;Performing custom authentication.&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;Handling encryption and compression.&lt;/li&gt;
&lt;/span&gt;&lt;/ul&gt;
&lt;span style="background-color: white; box-sizing: border-box; color: #212121; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b style="box-sizing: border-box;"&gt;Example&lt;/b&gt;&lt;br style="box-sizing: border-box;" /&gt;Following are the main Server side scripting languages which support ISAPI.&lt;/span&gt;&lt;br /&gt;
&lt;ul style="box-sizing: border-box;"&gt;
&lt;li style="box-sizing: border-box;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;ASP&lt;/span&gt;&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;ASP.NET&lt;/span&gt;&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Perl&lt;/span&gt;&lt;/li&gt;
&lt;li style="box-sizing: border-box;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;PHP&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkYTJOTAiCUz1aKNo_i97DE62YNuUx6ObaDorGXRpxgGjfC92NffaiwJ9lYhRn5ybR0fx56fbOBUYyxdR5spEZFDass-fYykcLDMerAiBVKpBeL2ZSSzEZirLSMwTIUnU2y5wQHWsCcxM/s72-c/figure1.gif" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>What is the difference between Web Farm and Web Garden?</title><link>http://dotnetmasterindia.blogspot.com/2017/08/what-is-difference-between-web-farm-and.html</link><category>Asp.Net</category><pubDate>Mon, 7 Aug 2017 02:13:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-2794104606465974960</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="header" style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 0px; padding: 0px;"&gt;
&lt;div class="summary" id="ctl00_description" style="border: 0px; color: grey; margin: 0px; padding: 40px 0px 15px;"&gt;
The exact difference between web farm and web garden, and the advantages and disadvantages of using them.&lt;/div&gt;
&lt;span class="date" content="https://www.codeproject.com/script/Articles/Images/blog100x80.png" id="ctl00_thumbnailUrl" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="text" id="contentdiv" style="background-color: white; border: 0px; font-family: &amp;quot;segoe ui&amp;quot;, arial, sans-serif; font-size: 14px; margin: 0px; padding: 10px 0px 0px;"&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
I have been asked this question many times by different readers of my blog. They wanted to know about the fundamentals of Web Farms and Web Garden. In this blog post, I am going to explain the exact difference between web farm and web garden, and the advantages and disadvantages of using them. I have also described how to create web garden in different version of IIS.&lt;/div&gt;
&lt;h2 style="font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;
Overview&lt;/span&gt;&lt;/h2&gt;
&lt;div style="line-height: normal;"&gt;
Visual Studio has its own integrated ASP.NET engine which is used to run the ASP.NET Web application from Visual Studio.&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;ASP.NET Development Server is&amp;nbsp;&lt;/em&gt;responsible for executing all the requests and responses from the client. Now after the end of development, when you want to host the site on some server to allow other people to access, concept of web servers comes in between. A web server is responsible for providing the response for all the requests that are coming from clients. The below diagram shows the typical deployment structure of an ASP.NET Web application with a single IIS.&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
&lt;a href="http://abhijitjana.files.wordpress.com/2010/10/2.jpg" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;"&gt;&lt;img alt="2" border="0" class="aligncenter" height="182" hspace="0" src="https://abhijitjana.files.wordpress.com/2010/10/2_thumb.jpg?w=377&amp;amp;h=182" style="border: 0px; height: 182px; margin: 0px; max-width: 100%; overflow: auto; padding: 0px; width: 377px;" title="2" width="377" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
Clients request for resources and IIS process the request and send back to clients. If you want to know more details on&amp;nbsp;&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;How IIS Processes the request&lt;/strong&gt;, please read one of my articles about&amp;nbsp;&lt;a href="http://abhijitjana.net/2010/03/14/beginner%E2%80%99s-guide-how-iis-process-asp-net-request/" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;"&gt;“How IIS Process ASP.NET Request?”&lt;/a&gt;.&lt;/div&gt;
&lt;h2 style="font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;
Web Farm&lt;/span&gt;&lt;/h2&gt;
&lt;div style="line-height: normal;"&gt;
This is the case where you have only one web server and multiple clients requesting for resources from the same server. But when are is huge amount of incoming traffic for your web sites, one standalone server is not sufficient to process the request. You may need to use multiple servers to host the application and divide the traffic among them. This is called&amp;nbsp;&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;“Web Farm”&lt;/strong&gt;. So when you are hosting your single web site on multiple web servers over load balancer is called&amp;nbsp;&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;“Web Farm”&lt;/strong&gt;. The below diagram shows the overall representation of Web Farms.&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
&lt;a href="http://abhijitjana.files.wordpress.com/2010/10/webfarms.png" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;"&gt;&lt;img alt="Web Farms" border="0" class="aligncenter" height="232" hspace="0" src="https://abhijitjana.files.wordpress.com/2010/10/webfarms_thumb.png?w=498&amp;amp;h=232" style="border: 0px; height: 232px; margin: 0px; max-width: 100%; overflow: auto; padding: 0px; width: 498px;" title="Web Farms" width="498" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
In general web farm architecture, a single application is hosted on multiple IIS Server and those are connected with the VIP (Virtual IP) with Load Balancer. Load Balancer IPs are exposed to external world to access. So whenever some request will come to server from clients, it will first hit the Load Balancer, then based on the traffic on each server, LB distributes the request to the corresponding web server. These web servers may share the same DB server or may be they can use a replicated server in the back end.&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
So, in a single statement, when we host a web application over multiple web servers to distribute the load among them, it is called Web Farm.&lt;/div&gt;
&lt;h2 style="font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;
Web Garden&lt;/span&gt;&lt;/h2&gt;
&lt;div style="line-height: normal;"&gt;
Now, let’s have a look at what is Web Garden? Both the terms sound the same, but they are totally different from each other. Before starting with Web Garden, I hope you have a fundamental idea of what an Application Pool is and what a Worker Process is. If you have already read the article,&amp;nbsp;&lt;a href="http://abhijitjana.net/2010/03/14/beginner%E2%80%99s-guide-how-iis-process-asp-net-request/" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;"&gt;“How IIS Processes ASP.NET Request ?”&lt;/a&gt;, then I can expect that you now have a good idea about both of them.&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
Just to recall, when we are talking about requesting processing within IIS,&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;Worker Process&amp;nbsp;&lt;/em&gt;(&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;w3wp.exe&lt;/em&gt;) takes care of all of these. Worker Process runs the ASP.NET application in IIS. All the ASP.NET functionality inside IIS runs under the scope of worker process. Worker Process is responsible for handling all kinds of request, response, session data, cache data. Application Pool is the container of worker process. Application pool is used to separate sets of IIS worker processes and enables a better&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;security, reliability, and availability&lt;/em&gt;&amp;nbsp;for any web application.&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
&lt;a href="http://abhijitjana.files.wordpress.com/2010/10/apppools.png" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;"&gt;&lt;img alt="apppools" border="0" class="alignremoved" height="123" hspace="0" src="https://abhijitjana.files.wordpress.com/2010/10/apppools_thumb.png?w=448&amp;amp;h=123" style="border: 0px; height: 123px; margin: 0px; max-width: 100%; overflow: auto; padding: 0px; width: 448px;" title="apppools" width="448" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
Now, by default, each and every Application pool contains a single worker process. Application which contains the multiple worker process is called&amp;nbsp;&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;“Web Garden”&lt;/strong&gt;. Below is the typical diagram for a web garden application.&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
&lt;a href="http://abhijitjana.files.wordpress.com/2010/10/webgardenbasic.png" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;"&gt;&lt;img alt="WebGarden Basic" border="0" class="alignremoved" height="151" hspace="0" src="https://abhijitjana.files.wordpress.com/2010/10/webgardenbasic_thumb.png?w=437&amp;amp;h=151" style="border: 0px; height: 151px; margin: 0px; max-width: 100%; overflow: auto; padding: 0px; width: 437px;" title="WebGarden Basic" width="437" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
In the above diagram, you can see one of the applications containing the multiple worker processes, which is now a web garden.&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
So, a Web application hosted on multiple servers and access based on the load on servers is called Web Farms and when a single application pool contains multiple Worker processes, it is called a web garden.&lt;/div&gt;
&lt;h4 style="color: #111111; font-size: 16px; line-height: normal;"&gt;
Create Web Garden in IIS 6 and IIS 7&lt;/h4&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
Now, I am going to show how you can change the Number of Worker processes in both IIS 6 and IIS 7. For IIS 6, Right Click on Application Pool &amp;gt; Properties &amp;gt; Goto Performance Tab.&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
&lt;a href="http://abhijitjana.files.wordpress.com/2010/10/webgardeniis6.png" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;"&gt;&lt;img alt="WebGardenIIS6" border="0" height="243" hspace="0" src="https://abhijitjana.files.wordpress.com/2010/10/webgardeniis6_thumb.png?w=257&amp;amp;h=243" style="border: 0px; height: 243px; margin: 0px; max-width: 100%; overflow: auto; padding: 0px; width: 257px;" title="WebGardenIIS6" width="257" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
In the “Performance Tab” section, you would have one option called “Web Garden” where worker process sets to “1”, you can set the number of worker processes that you required.&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
For IIS 7, Right Click on Application Pool &amp;gt; Go To Advance Settings &amp;gt; In Process Model section, you will have “Maximum Worker Processes”. You can change it more than 1 to make it as a web garden.&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
&lt;a href="http://abhijitjana.files.wordpress.com/2010/10/webgardeniis7.png" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;"&gt;&lt;img alt="WebGardenIIS7" border="0" height="301" hspace="0" src="https://abhijitjana.files.wordpress.com/2010/10/webgardeniis7_thumb.png?w=249&amp;amp;h=301" style="border: 0px; height: 301px; margin: 0px; max-width: 100%; overflow: auto; padding: 0px; width: 249px;" title="WebGardenIIS7" width="249" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
In the above image, you can also check the definition of Web Garden.&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
You can find one of my previous articles on the basics of the same over&amp;nbsp;&lt;a href="http://www.dotnetfunda.com/articles/article713-difference-between-web-farm-and-web-garden.aspx" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;"&gt;here&lt;/a&gt;.&lt;/div&gt;
&lt;h2 style="font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;
Advantages of Web Farm and Web Garden&lt;/span&gt;&lt;/h2&gt;
&lt;div style="line-height: normal;"&gt;
Now, let’s have a look into the advantages of both the Web Farms and Web Gardens.&lt;/div&gt;
&lt;h3 style="font-size: 19px; line-height: normal;"&gt;
&lt;span style="color: #351c75;"&gt;
Advantages of Web Farm&lt;/span&gt;&lt;/h3&gt;
&lt;ul style="border: 0px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;It provides high availability. If any of the servers in the farm goes down, Load balancer can redirect the requests to other servers.&lt;/li&gt;
&lt;li style="border: 0px; color: #111111; line-height: normal; margin: 0px; padding: 0px;"&gt;Provides high performance response for client requests.&lt;/li&gt;
&lt;li style="border: 0px; color: #111111; line-height: normal; margin: 0px; padding: 0px;"&gt;Provides better scalability of the web application and reduces the failure of the application.&lt;/li&gt;
&lt;li style="border: 0px; color: #111111; line-height: normal; margin: 0px; padding: 0px;"&gt;Session and other resources can be stored in a centralized location to access by all the servers.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style="font-size: 19px; line-height: normal;"&gt;
&lt;span style="color: #351c75;"&gt;
Advantages of Web Garden&lt;/span&gt;&lt;/h3&gt;
&lt;ul style="border: 0px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Provides better application availability by sharing requests between multiple worker process.&lt;/li&gt;
&lt;li style="border: 0px; color: #111111; line-height: normal; margin: 0px; padding: 0px;"&gt;Web garden uses processor affinity where application can be swapped out based on preference and tag setting.&lt;/li&gt;
&lt;li style="border: 0px; color: #111111; line-height: normal; margin: 0px; padding: 0px;"&gt;Less consumption of physical space for web garden configuration.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 style="font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;
How to Manage Session in Web Farm Mode?&lt;/span&gt;&lt;/h2&gt;
&lt;div style="line-height: normal;"&gt;
While using session, requests are distributed among different servers. By default, session mode is set to In Proc where session data is stored inside worker process memory. But, in Web farm mode, we can share the session among all the servers using a single session store location by making it Out proc (State Server or SQL Server Mode). So, if some of the servers go down and request is transferred to the other server by the Load balancer, session data should be available for that request.&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
&lt;a href="http://abhijitjana.files.wordpress.com/2010/10/sessionwebfarm.png" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;"&gt;&lt;img alt="sessionWebfarm" border="0" height="235" hspace="0" src="https://abhijitjana.files.wordpress.com/2010/10/sessionwebfarm_thumb.png?w=432&amp;amp;h=235" style="border: 0px; height: 235px; margin: 0px; max-width: 100%; overflow: auto; padding: 0px; width: 432px;" title="sessionWebfarm" width="432" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
In the above diagram, you can see that we can both the IIS server sharing the same session data which is stored in out of worker process. You can read one of my previous articles “&lt;a href="http://www.codeproject.com/KB/aspnet/ExploringSession.aspx" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;"&gt;Exploring Session in ASP.NET&lt;/a&gt;” where I have explained how you can configure session mode for Out Process mode.&lt;/div&gt;
&lt;h2 style="font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;
How to Manage Session in Web Garden Mode?&lt;/span&gt;&lt;/h2&gt;
&lt;div style="line-height: normal;"&gt;
When we are using Web garden where request is being taken care of by different worker process, we have to make the session mode as out process session mode as described earlier. For Web Garden, we have to configure the out process within the same server but for different worker process.&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
&lt;a href="http://abhijitjana.files.wordpress.com/2010/10/webgardensession2.png" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;"&gt;&lt;img alt="webgardenSession2" border="0" height="168" hspace="0" src="https://abhijitjana.files.wordpress.com/2010/10/webgardensession2_thumb.png?w=264&amp;amp;h=168" style="border: 0px; height: 168px; margin: 0px; max-width: 100%; overflow: auto; padding: 0px; width: 264px;" title="webgardenSession2" width="264" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
While using Web garden with your application, you need make a couple of configuration settings in&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;web.config&lt;/em&gt;&amp;nbsp;in&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;&amp;lt;process Model&amp;gt;&lt;/code&gt;&amp;nbsp;section where you need to set certain properties like&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;cpuMask&lt;/code&gt;,&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;RequestLimit&lt;/code&gt;,&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;webGarden&lt;/code&gt;,&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;ClientConnectCheck&lt;/code&gt;, etc.&lt;/div&gt;
&lt;h2 style="font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;
Summary&lt;/span&gt;&lt;/h2&gt;
&lt;div style="line-height: normal;"&gt;
When we host a web application over multiple web servers to distribute the load among them, it is called Web Farm and when one application has multiple worker processes, it is called a Web garden.&lt;/div&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
In this blog post, I have explained the very basics of what a Web Farm is and what a Web Garden is. As this blog post contains the basic information to understand the fundamentals of web farms and web garden concept, I will be posting a separate article with details configuration setting for web garden and web farm. You can read the following articles for more information:&lt;/div&gt;
&lt;ul style="border: 0px; color: #111111; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;a href="http://www.iis-aid.com/articles/performance_testing/boosting_performance_using_an_iis_web_garden" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;"&gt;Boosting performance using an IIS web garden&lt;/a&gt;&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;a href="http://accidentaltechnologist.com/microsoft/how-to-configure-session-state-in-a-windows-web-farm/" style="border: 0px; color: purple; margin: 0px; outline: none !important; padding: 0px;"&gt;How-To Configure Session State in a Windows Web Farm&lt;/a&gt;&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;a href="http://www.dotnet-guide.com/role-of-web-gardens-and-web-farms-in-asp.net.html" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;"&gt;Role of Web gardens and web farms in ASP.NET&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="color: #111111; line-height: normal;"&gt;
Hope this will help you.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>Exploring Session in ASP.NET</title><link>http://dotnetmasterindia.blogspot.com/2017/08/exploring-session-in-aspnet.html</link><category>.net</category><category>Asp.Net</category><pubDate>Mon, 7 Aug 2017 02:07:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-1245253344477202080</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;h2 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;Introduction&lt;/span&gt;&lt;/h2&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
First of all, I would like to thank all the readers who have read and voted for my articles. In the Beginner's Guide series, I have written some articles on state management. Probably this is my last article on state management.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
This article will give you a very good understanding of session. In this article, I have covered the basics of session, different ways of storing session objects, session behavior in web farm scenarios, session on Load Balancer, etc. I have also explained details of session behavior in a live production environment. Hope you will enjoy this article and provide your valuable suggestions and feedback.&lt;/div&gt;
&lt;h2 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="2" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;What is Session?&lt;/span&gt;&lt;/h2&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Web is&amp;nbsp;&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;stateless&lt;/strong&gt;, which means a new instance of a web page class is re-created each time the page is posted to the server. As we all know, HTTP is a stateless protocol, it can't hold client information on a page. If the user inserts some information and move to the next page, that data will be lost and the user would not be able to retrieve that information. What do we need here? We need to store information. Session provides a facility to store information on server memory. It can support any type of object to store along with our own custom objects. For every client, session data is stored separately, which means session data is stored on a per client basis. Have a look at the following diagram:&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img alt="explor2.jpg" height="228" src="https://www.codeproject.com/KB/session/ExploringSession/explor2.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="246" /&gt;&lt;/div&gt;
&lt;div class="Caption" style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 12px; font-style: italic; font-weight: bold; margin: 0px; padding: 0px;"&gt;
Fig: For every client, session data is stored separately&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
State management using session is one of the best ASP.NET features, because it is secure, transparent from users, and we can store any kind of object in it. Along with these advantages, some times session can cause performance issues in high traffic sites because it is stored in server memory and clients read data from the server. Now let's have a look at the advantages and disadvantages of using session in our web applications.&lt;/div&gt;
&lt;h2 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="3" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;Advantages and disadvantages of Session?&lt;/span&gt;&lt;/h2&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Following are the basic advantages and disadvantages of using session. I have describe in details with each type of session at later point of time.&lt;/div&gt;
&lt;h4 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
&lt;span style="color: #351c75;"&gt;Advantages&lt;/span&gt;&lt;span style="color: #111111;"&gt;:&lt;/span&gt;&lt;/h4&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;It helps maintain user state and data all over the application.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;It is easy to implement and we can store any kind of object.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Stores client data separately.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Session is secure and transparent from the user.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
Disadvantages:&lt;/h4&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Performance overhead in case of large volumes of data/user, because session data is stored in server memory.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Overhead involved in serializing and de-serializing session data, because in the case of&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;StateServer&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;SQLServer&lt;/code&gt;&amp;nbsp;session modes, we need to serialize the objects before storing them.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Besides these, there are many advantages and disadvantages of session that are based on the session type. I have discussed all of them in the respective sections below.&lt;/div&gt;
&lt;h2 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="4" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;Storing and retrieving values from Session&lt;/span&gt;&lt;/h2&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Storing and retrieving values in session are quite similar to that in ViewState. We can interact with session state with the&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;System.Web.SessionState.HttpSessionState&lt;/code&gt;&amp;nbsp;class, because this provides the built-in session object in ASP.NET pages.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
The following code is used for storing a value to session:&lt;/div&gt;
&lt;div class="pre-action-link" id="premain915822" style="background-color: white; border: 0px; color: #999999; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; position: relative; text-align: right; width: 700px;"&gt;
&lt;span id="prehide915822" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span id="copycode915822" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre class="notranslate" id="pre915822" lang="cs" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 9pt; font-stretch: normal; line-height: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-break: break-word; word-wrap: break-word;"&gt;&lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt;Storing UserName in Session&lt;/span&gt;
Session[&lt;span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"&gt;UserName"&lt;/span&gt;] = txtUser.Text;&lt;/pre&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Now, let's see how we can retrieve values from session:&lt;/div&gt;
&lt;div class="pre-action-link" id="premain240585" style="background-color: white; border: 0px; color: #999999; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; position: relative; text-align: right; width: 700px;"&gt;
&lt;span id="prehide240585" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span id="copycode240585" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre class="notranslate" id="pre240585" lang="cs" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 9pt; font-stretch: normal; line-height: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-break: break-word; word-wrap: break-word;"&gt;&lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt;Check weather session variable null or not&lt;/span&gt;
&lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt; (Session[&lt;span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"&gt;UserName"&lt;/span&gt;] != &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;null&lt;/span&gt;)
{
    &lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt;Retrieving UserName from Session&lt;/span&gt;
    lblWelcome.Text = &lt;span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"&gt;Welcome : "&lt;/span&gt; + Session[&lt;span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"&gt;UserName"&lt;/span&gt;];
}
&lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;
{
 &lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt;Do Something else&lt;/span&gt;
}&lt;/pre&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
We can also store other objects in session. The following example shows how to store a&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;DataSet&lt;/code&gt;&amp;nbsp;in session.&lt;/div&gt;
&lt;div class="pre-action-link" id="premain250290" style="background-color: white; border: 0px; color: #999999; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; position: relative; text-align: right; width: 700px;"&gt;
&lt;span id="prehide250290" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span id="copycode250290" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre class="notranslate" id="pre250290" lang="cs" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 9pt; font-stretch: normal; line-height: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-break: break-word; word-wrap: break-word;"&gt;&lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt;Storing dataset on Session&lt;/span&gt;
Session[&lt;span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"&gt;DataSet"&lt;/span&gt;] = _objDataSet;&lt;/pre&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
The following code shows how we to retrieve that&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;DataSet&lt;/code&gt;&amp;nbsp;from session:&lt;/div&gt;
&lt;div class="pre-action-link" id="premain707472" style="background-color: white; border: 0px; color: #999999; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; position: relative; text-align: right; width: 700px;"&gt;
&lt;span id="prehide707472" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span id="copycode707472" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre class="notranslate" id="pre707472" lang="cs" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 9pt; font-stretch: normal; line-height: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-break: break-word; word-wrap: break-word;"&gt;&lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt;Check weather session variable null or not&lt;/span&gt;
&lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt; (Session[&lt;span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"&gt;DataSet"&lt;/span&gt;] != &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;null&lt;/span&gt;)
{
    &lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt;Retrieving UserName from Session&lt;/span&gt;
    DataSet _MyDs = (DataSet)Session[&lt;span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"&gt;DataSet"&lt;/span&gt;];
}
&lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;
{
    &lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt;Do Something else&lt;/span&gt;
}&lt;/pre&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
References:&lt;/h4&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms178581.aspx#CodeExamples" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;" title="Session Variables - MSDN"&gt;MSDN (read the session variable section)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="5" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;Session ID&lt;/span&gt;&lt;/h2&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
ASP.NET uses an 120 bit identifier to track each session. This is secure enough and can't be reverse engineered. When a client communicates with a server, only the session ID is transmitted between them. When the client requests for data, ASP.NET looks for the session ID and retrieves the corresponding data. This is done in the following steps:&lt;/div&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Client hits the web site and information is stored in the session.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Server creates a unique session ID for that client and stores it in the Session State Provider.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;The client requests for some information with the unique session ID from the server.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Server looks in the Session Providers and retrieves the serialized data from the state server and type casts the object.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Take a look at the the pictorial flow:&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="219" src="https://www.codeproject.com/KB/session/ExploringSession/explor3.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="616" /&gt;&lt;/div&gt;
&lt;div class="Caption" style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 12px; font-style: italic; font-weight: bold; margin: 0px; padding: 0px;"&gt;
Fig: Communication of client, web server, and State Provider&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
References:&lt;/h4&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.sessionid.aspx" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;"&gt;SessionID in MSDN&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="6" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;Session Mode and State Provider&lt;/span&gt;&lt;/h2&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
In ASP.NET, there are the following session modes available:&lt;/div&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;InProc&lt;/strong&gt;&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;StateServer&lt;/strong&gt;&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;SQLServer&lt;/strong&gt;&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;Custom&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
For every session state, there is a Session Provider. The following diagram will show you how they are related:&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="361" src="https://www.codeproject.com/KB/session/ExploringSession/explor5.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="522" /&gt;&lt;/div&gt;
&lt;div class="Caption" style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 12px; font-style: italic; font-weight: bold; margin: 0px; padding: 0px;"&gt;
Fig: Session state architecture&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
We can choose the session state provider based on which session state we are selecting. When ASP.NET requests for information based on the session ID, the session state and its corresponding provider are responsible for sending the proper information. The following table shows the session mode along with the provider name:&lt;/div&gt;
&lt;table class="ArticleTable" style="background-color: white; border-bottom-color: initial; border-bottom-style: initial; border-collapse: collapse; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-right-color: initial; border-right-style: initial; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px 1px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 0px; padding: 0px;"&gt;&lt;thead style="background-color: #ebf6ff; border: 0px; font-weight: bold; margin: 0px; padding: 0px;"&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Session State Mode&lt;/td&gt;&lt;td style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;State Provider&lt;/td&gt;&lt;/tr&gt;
&lt;/thead&gt;&lt;tbody style="border: 0px; margin: 0px; padding: 0px;"&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;InProc&lt;/strong&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;In-memory object&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;StateServer&lt;/strong&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;Aspnet_state.exe&lt;/em&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;SQLServer&lt;/strong&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Database&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;Custom&lt;/strong&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Custom provider&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Apart from that, there is another mode&amp;nbsp;&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;Off&lt;/strong&gt;. If we select this option, the session will be disabled for the application. But our objective is to use session, so we will look into the above four session state modes.&lt;/div&gt;
&lt;h2 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="8" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;Session States&lt;/span&gt;&lt;/h2&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Session state essentially means all the settings that you have made for your web application for maintaining the session. Session State itself is a big thing. It says all about your session configuration, either in the&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;web.config&lt;/em&gt;&amp;nbsp;or from the code-behind. In the&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;web.config&lt;/em&gt;,&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;&amp;lt;SessionState&amp;gt;&lt;/code&gt;&amp;nbsp;elements are used for setting the configuration of the session. Some of them are&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Mode&lt;/code&gt;,&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Timeout&lt;/code&gt;,&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;StateConnectionString&lt;/code&gt;,&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;CustomProvider&lt;/code&gt;, etc. I have discussed about each and every section of the connection string. Before I discuss Session Mode, take a brief overview of session events.&lt;/div&gt;
&lt;h2 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="9" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;Session Event&lt;/span&gt;&lt;/h2&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
There are two types of session events available in ASP.NET:&lt;/div&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Session_Start&lt;/code&gt;&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Session_End&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
You can handle both these events in the&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;global.asax&lt;/em&gt;&amp;nbsp;file of your web application. When a new session initiates, the&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;session_start&lt;/code&gt;&amp;nbsp;event is raised, and the&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Session_End&lt;/code&gt;&amp;nbsp;event raised when a session is abandoned or expires.&lt;/div&gt;
&lt;div class="pre-action-link" id="premain424518" style="background-color: white; border: 0px; color: #999999; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; position: relative; text-align: right; width: 700px;"&gt;
&lt;span id="prehide424518" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span id="copycode424518" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre class="notranslate" id="pre424518" lang="cs" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 9pt; font-stretch: normal; line-height: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-break: break-word; word-wrap: break-word;"&gt;&lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt; Session_Start(&lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;object&lt;/span&gt; sender, EventArgs e) 
{
    &lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt; Code that runs when a new session is started&lt;/span&gt;
}

&lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt; Session_End(&lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;object&lt;/span&gt; sender, EventArgs e) 
{
    &lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt; Code that runs when a session ends. &lt;/span&gt;
}&lt;/pre&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
References:&lt;/h4&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;a href="http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/iisbook/c06_application_and_session_events.mspx?mfr=true" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;" title="Application and Session Events"&gt;Application and Session Events&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="10" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;Session Mode&lt;/span&gt;&lt;/h2&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
I have already discussed about session modes in ASP.NET. Following are the different types of session modes available in ASP.NET:&lt;/div&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Off&lt;/code&gt;&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;InProc&lt;/code&gt;&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;StateServer&lt;/code&gt;&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;SQLServer&lt;/code&gt;&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Custom&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
If we set session&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Mode="off"&lt;/code&gt;&amp;nbsp;in&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;web.config&lt;/em&gt;, session will be disabled in the application. For this, we need to configure&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;web.config&lt;/em&gt;&amp;nbsp;the following way:&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="114" src="https://www.codeproject.com/KB/session/ExploringSession/explor1.gif" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="434" /&gt;&lt;/div&gt;
&lt;h3 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 19px; line-height: normal;"&gt;
&lt;span style="color: #351c75;"&gt;&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="11" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;InProc Session Mode&lt;/span&gt;&lt;/h3&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
This is the default session mode in ASP.NET. Its stores session information in the current Application Domain. This is the best session mode for web application performance. But the main disadvantage is that, it will lose data if we restart the server. There are some more advantages and disadvantages of the InProc session mode. I will come to those points later on.&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
&lt;a href="https://www.blogger.com/null" name="12" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;Overview of InProc session mode&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
As I have already discussed, in InProc mode, session data will be stored on the current application domain. So it is easily and quickly available.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="266" src="https://www.codeproject.com/KB/session/ExploringSession/explor6.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="274" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
InProc session mode stores its session data in a memory object on the application domain. This is handled by a worker process in the application pool. So if we restart the server, we will lose the session data. If the client request for data, the state provider read the data from an in-memory object and returns it to the client. In&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;web.config&lt;/em&gt;, we have to mention the session mode and also set the timeout.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img alt="explor3.gif" height="82" src="https://www.codeproject.com/KB/session/ExploringSession/explor3.gif" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="434" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
The above session timeout setting keeps the session alive for 30 minute. This is configurable from the code-behind too.&lt;/div&gt;
&lt;div class="pre-action-link" id="premain548270" style="background-color: white; border: 0px; color: #999999; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; position: relative; text-align: right; width: 700px;"&gt;
&lt;span id="prehide548270" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span id="copycode548270" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre class="notranslate" id="pre548270" lang="cs" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 9pt; font-stretch: normal; line-height: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-break: break-word; word-wrap: break-word;"&gt;Session.TimeOut=&lt;span class="code-digit" style="border: 0px; color: navy; margin: 0px; padding: 0px;"&gt;30&lt;/span&gt;;&lt;/pre&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
There are two types of session events available in ASP.NET:&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Session_Start()&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Session_End&lt;/code&gt;&amp;nbsp;and this is the only mode that supports the&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Session_End()&lt;/code&gt;&amp;nbsp;event. This event is called after the session timeout period is over. The general flow for the InProc session state is like this:&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="322" src="https://www.codeproject.com/KB/session/ExploringSession/explor7.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="154" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
When the&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Session_End()&lt;/code&gt;&amp;nbsp;is called depends on the session timeout. This is a very fast mechanism because no serialization occurs for storing and retrieving data, and data stays inside the same application domain.&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
&lt;a href="https://www.blogger.com/null" name="13" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;When should we use the InProc session mode?&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
InProc is the default session mode. It can be very helpful for a small web site and where the number of users is very less. We should avoid InProc in a Web Garden scenario (I will come to this topic later on).&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
&lt;a href="https://www.blogger.com/null" name="14" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;Advantages and disadvantages&lt;/h4&gt;
&lt;h5 style="background-color: white; color: grey; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal; margin-bottom: 2px;"&gt;
Advantages:&lt;/h5&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;It store session data in a memory object of the current application domain. So accessing data is very fast and data is easily available.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;There is not requirement of serialization to store data in InProc session mode.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Implementation is very easy, similar to using the ViewState.&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 style="background-color: white; color: grey; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal; margin-bottom: 2px;"&gt;
Disadvantages:&lt;/h5&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Although InProc session is the fastest, common, and default mechanism, it has a lot of limitations:&lt;/div&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;If the worker process or application domain is recycled, all session data will be lost.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Though it is the fastest, more session data and more users can affect performance, because of memory usage.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;We can't use it in web garden scenarios.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;This session mode is not suitable for web farm scenarios.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
As per the above discussion, we can conclude that InProc is a very fast session storing mechanism but suitable only for small web applications. InProc session data will get lost if we restart the server, or if the application domain is recycled. It is also not suitable for Web Farm and Web Garden scenarios.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Now we will have a look the other options available to overcome these problems. First comes the StateServer mode.&lt;/div&gt;
&lt;h3 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 19px; line-height: normal;"&gt;
&lt;span style="color: #351c75;"&gt;StateServer Session Mode&lt;/span&gt;&lt;span style="color: rgba(0, 0, 0, 0); font-weight: normal;"&gt;&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="15" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
&lt;a href="https://www.blogger.com/null" name="16" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;Overview of StateServer session mode&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
This is also called Out-Proc session mode. StateServer uses a stand-alone Windows Service which is independent of IIS and can also be run on a separate server. This session state is totally managed by&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;aspnet_state.exe&lt;/em&gt;. This server may run on the same system, but it's outside of the main application domain where your web application is running. This means if you restart your ASP.NET process, your session data will still be alive. This approaches has several disadvantages due to the overhead of the serialization and de-serialization involved, it also increases the cost of data access because every time the user retrieves session data, our application hits a different process.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="189" src="https://www.codeproject.com/KB/session/ExploringSession/explor8.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="410" /&gt;&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
&lt;a href="https://www.blogger.com/null" name="17" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;Configuration for StateServer session mode&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
In StateServer mode, session data is stored in a separate server which is independent of IIS and it is handled by&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;aspnet_state.exe&lt;/em&gt;. This process is run as a Windows Service. You can start this service from the Windows MMC or from the command prompt.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="176" src="https://www.codeproject.com/KB/session/ExploringSession/explor10.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="600" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
By default, the "Startup Type" of the ASP.NET state service is set to Manual; we have to set it to Automatic.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="368" src="https://www.codeproject.com/KB/session/ExploringSession/explor11.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="327" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
From the command prompt, just type "net start aspnet_state". By default, this service listens to TCP port 42424, but we can change the port from the Registry editor as show in the picture below:&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="165" src="https://www.codeproject.com/KB/session/ExploringSession/explor9.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="600" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Now have a look at the&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;web.config&lt;/em&gt;&amp;nbsp;configuration for the StateServer setting. For the StateServer setting, we need to specify the&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;stateConnectionString&lt;/code&gt;. This will identify the system that is running the state server. By default,&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;stateConnectionString&lt;/code&gt;&amp;nbsp;used the IP 127.0.0.1 (localhost) and port 42424.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img alt="explor9.gif" height="106" src="https://www.codeproject.com/KB/session/ExploringSession/explor9.gif" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="490" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
When we are using StateServer, we can configure the&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;stateNetworkTimeOut&lt;/code&gt;&amp;nbsp;attribute to specify the maximum number of seconds to wait for the service to respond before canceling the request. The default timeout value is 10 seconds.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img alt="explor10.gif" height="138" src="https://www.codeproject.com/KB/session/ExploringSession/explor10.gif" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="466" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
For using StateServer, the object which we are going to store should be serialized, and at the time of retrieving, we need to de-serialize it back. I have described this below with an example.&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
How the StateServer Session Mode works&lt;a href="https://www.blogger.com/null" name="18" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
We use the StateServer session mode to avoid unnecessary session data loss when restarting our web server. StateServer is maintained by the&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;aspnet_state.exe&lt;/em&gt;&amp;nbsp;process as a Windows service. This process maintains all the session data. But we need to serialize the data before storing it in StateServer session mode.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="258" src="https://www.codeproject.com/KB/session/ExploringSession/explor12.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="574" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
As shown in the above figure, when the client sends a request to the web server, the web server stores the session data on the state server. The StateServer may be the current system or a different system. But it will be totally independent of IIS. The destination of the StateServer will depend on the&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;web.config&lt;/em&gt;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;stateConnectionString&lt;/code&gt;&amp;nbsp;setting. If we set it to 127.0.0.1:42424, it will store data in the local system itself. For changing the StateServer destination, we need to change the IP, and make sure&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;aspnet_state.exe&lt;/em&gt;&amp;nbsp;is up and running on that system. Otherwise you will get the following exception while trying to store data on session.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="128" src="https://www.codeproject.com/KB/session/ExploringSession/explor14.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="600" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
When we are storing an object on session, it should be serialized. That data will be stored in the StateServer system using the State Provider. And at the time of retrieving the data, the State Provider will return the data. The complete flow is given in the picture below:&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="355" src="https://www.codeproject.com/KB/session/ExploringSession/explor15.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="276" /&gt;&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
Example of StateServer Session Mode&lt;a href="https://www.blogger.com/null" name="19" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Here is a simple example of using the StateServer session mode. I have created this sample web application directly on IIS so that we can easily understand its usage.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;Step 1&lt;/strong&gt;: Open Visual Studio &amp;gt; File &amp;gt; New &amp;gt; Web Sites. Choose Location as HTTP and create the web application.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="288" src="https://www.codeproject.com/KB/session/ExploringSession/explor16.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="445" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Now if you open IIS, you will see a virtual directory created with the name of your web application, in my case it is&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;StateServer&lt;/em&gt;.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="306" src="https://www.codeproject.com/KB/session/ExploringSession/explor17.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="339" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;Step 2&lt;/strong&gt;: Create s simple UI that will take the roll number and the name of a student. We will store the name and roll number in a state server session. I have also created a class&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;StudentInfo&lt;/code&gt;. This class is listed below:&lt;/div&gt;
&lt;div class="pre-action-link" id="premain760777" style="background-color: white; border: 0px; color: #999999; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; position: relative; text-align: right; width: 700px;"&gt;
&lt;span id="prehide760777" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span id="preShrink760777" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"&gt;Shrink&lt;/span&gt;&amp;nbsp;&lt;img id="preimg760777" src="https://www.codeproject.com/images/arrow-up-16.png" style="border: 0px; height: 16px; margin: 0px; max-width: 100%; opacity: 0.5; overflow: auto; padding: 0px; transition: opacity 0.1s linear 0ms; vertical-align: text-top; width: 16px;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span id="copycode760777" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre class="notranslate" id="pre760777" lang="cs" processed="true" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 9pt; font-stretch: normal; line-height: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-break: break-word; word-wrap: break-word;"&gt;&lt;span class="code-bracket" style="border: 0px; margin: 0px; padding: 0px;"&gt;[&lt;/span&gt;&lt;span class="code-sdkkeyword" style="border: 0px; color: #339999; margin: 0px; padding: 0px;"&gt;Serializable&lt;span class="code-none" style="border: 0px; color: black; margin: 0px; padding: 0px;"&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt; &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt; StudentInfo
{
    &lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt;Default Constructor&lt;/span&gt;
    &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt; StudentInfo()
    {
       
    }
    &lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;///&lt;/span&gt;&lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt; &lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;&amp;lt;&lt;/span&gt;&lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;summary&lt;/span&gt;&lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;    &lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;///&lt;/span&gt;&lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt; Create object of student Class
&lt;/span&gt;    &lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;///&lt;/span&gt;&lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt; &lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;&amp;lt;&lt;/span&gt;&lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;/summary&lt;/span&gt;&lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;    &lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;///&lt;/span&gt;&lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt; &lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;&amp;lt;&lt;/span&gt;&lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;param&lt;/span&gt;&lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt; &lt;/span&gt;&lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;name="intRoll"&lt;/span&gt;&lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;&amp;gt;&lt;/span&gt;Int RollNumber&lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;&amp;lt;&lt;/span&gt;&lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;/param&lt;/span&gt;&lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;    &lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;///&lt;/span&gt;&lt;span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"&gt; &lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;&amp;lt;&lt;/span&gt;&lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;param&lt;/span&gt;&lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt; &lt;/span&gt;&lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;name="strName"&lt;/span&gt;&lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;&amp;gt;&lt;/span&gt;String Name&lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;&amp;lt;&lt;/span&gt;&lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;/param&lt;/span&gt;&lt;span class="code-summarycomment" style="border: 0px; color: grey; margin: 0px; padding: 0px;"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;    &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt; StudentInfo(&lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt; intRoll, &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt; strName)
    {
        &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;this&lt;/span&gt;.Roll = intRoll;
        &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;this&lt;/span&gt;.Name = strName;
    }

    &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;private&lt;/span&gt; &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt; intRoll;
    &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;private&lt;/span&gt; &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt; strName;
    &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt; &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt; Roll
    {
        &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;get&lt;/span&gt;
        {
            &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;return&lt;/span&gt; intRoll;
        }
        &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;set&lt;/span&gt;
        {
            intRoll = &lt;span class="code-sdkkeyword" style="border: 0px; color: #339999; margin: 0px; padding: 0px;"&gt;value&lt;/span&gt;;
        }
    }

    &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt; &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt; Name
    {
        &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;get&lt;/span&gt;
        {
            &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;return&lt;/span&gt; strName;
        }
        &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;set&lt;/span&gt;
        {
            strName = &lt;span class="code-sdkkeyword" style="border: 0px; color: #339999; margin: 0px; padding: 0px;"&gt;value&lt;/span&gt;;
        }
    }
}&lt;/pre&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Now have a look at the code-behind. I have added two buttons: one for storing session and another for retrieving session.&lt;/div&gt;
&lt;div class="pre-action-link" id="premain992561" style="background-color: white; border: 0px; color: #999999; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; position: relative; text-align: right; width: 700px;"&gt;
&lt;span id="prehide992561" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span id="copycode992561" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre class="notranslate" id="pre992561" lang="cs" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 9pt; font-stretch: normal; line-height: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-break: break-word; word-wrap: break-word;"&gt;&lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;protected&lt;/span&gt; &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt; btnSubmit_Click(&lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;object&lt;/span&gt; sender, EventArgs e)
{
    StudentInfo _objStudentInfo = 
      &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt; StudentInfo(&lt;span class="code-sdkkeyword" style="border: 0px; color: #339999; margin: 0px; padding: 0px;"&gt;Int32&lt;/span&gt;.Parse( txtRoll.Text) ,txtUserName.Text);
    Session[&lt;span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"&gt;objStudentInfo"&lt;/span&gt;] = _objStudentInfo;
    ResetField();
}
&lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;protected&lt;/span&gt; &lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt; btnRestore_Click(&lt;span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"&gt;object&lt;/span&gt; sender, EventArgs e)
{
    StudentInfo _objStudentInfo = (StudentInfo) Session[&lt;span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"&gt;objStudentInfo"&lt;/span&gt;];
    txtRoll.Text = _objStudentInfo.Roll.ToString();
    txtUserName.Text = _objStudentInfo.Name;
}&lt;/pre&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;Step 3&lt;/strong&gt;: Configure your&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;web.config&lt;/em&gt;&amp;nbsp;for state server as I have already explained. And please make sure&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;aspnet_state.exe&lt;/em&gt;&amp;nbsp;is up and running on the configured server.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;Step 4&lt;/strong&gt;: Run the application.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="194" src="https://www.codeproject.com/KB/session/ExploringSession/explor18.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="282" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Enter the data, click on Submit.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
There are the following tests that I have made which will totally explain how exactly StateServer is useful.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;First&lt;/strong&gt;: Remove the [&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Serializable&lt;/code&gt;&amp;nbsp;] keyword from the&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;StudentInfo&lt;/code&gt;&amp;nbsp;class and try to run the application. When you click on the Submit button, you will get the following error:&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="173" src="https://www.codeproject.com/KB/session/ExploringSession/explor19.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="600" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Which clearly says that you have to serialize the object before storing it.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;Second&lt;/strong&gt;: Run the application, store data by clicking on the Submit button. Restart IIS.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="234" src="https://www.codeproject.com/KB/session/ExploringSession/explor20.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="411" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
In the case of InProc, you will have already lost your session data, but with StateServer, click on Restore Session and you will get your original data, because StateServer data does not depend on IIS. It keeps it separately.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;Third&lt;/strong&gt;: Stop&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;aspnet_state.exe&lt;/em&gt;&amp;nbsp;from the Windows Services MMC and submit the data. You will get the following error:&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="128" src="https://www.codeproject.com/KB/session/ExploringSession/explor21.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="600" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
because your State Server process is not running. So please keep in mind these three points when using StateServer mode.&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
Advantages and Disadvantages&lt;a href="https://www.blogger.com/null" name="20" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Based on the above discussion:&lt;/div&gt;
&lt;h5 style="background-color: white; color: grey; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal; margin-bottom: 2px;"&gt;
Advantages:&lt;/h5&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;It keeps data separate from IIS so any issues with IIS will not hamper session data.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;It is useful in web farm and web garden scenarios.&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 style="background-color: white; color: grey; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal; margin-bottom: 2px;"&gt;
Disadvantages:&lt;/h5&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Process is slow due to serialization and de-serialization.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;State Server always needs to be up and running.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
I am stopping here on StateServer, you will find some more interesting points on it in the Load Balancer, Web Farm, and Web Garden section.&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
References:&lt;/h4&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms178586.aspx" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;"&gt;State Server Session Mode&lt;/a&gt;&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms972429.aspx" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;" title="ASP.Net Session State"&gt;ASP.NET Session State&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 19px; line-height: normal;"&gt;
&lt;span style="color: #351c75;"&gt;SQLServer Session Mode&lt;/span&gt;&lt;span style="color: rgba(0, 0, 0, 0); font-weight: normal;"&gt;&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="21" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
&lt;a href="https://www.blogger.com/null" name="22" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;Overview of SQL Server Session Mode&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
This session mode provide us more secure and reliable session management in ASP.NET. In this session mode, session data is serialized and stored in A SQL Server database. The main disadvantage of this session storage method is the overhead related with data serialization and de-serialization. It is the best option for using in web farms though.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="188" src="https://www.codeproject.com/KB/session/ExploringSession/explor22.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="317" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
To setup SQL Server, we need these SQL scripts:&lt;/div&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;For installing:&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;InstallSqlState.sql&lt;/em&gt;&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;For uninstalling:&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;UninstallSQLState.sql&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
The easiest way to configure SQL Server is using the&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;aspnet_regsql&lt;/em&gt;&amp;nbsp;command.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
I have explained in detail the use of these files in the configuration section. This is the most useful state management in web farm scenarios.&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
When should we use SQLServer Session Mode?&lt;a href="https://www.blogger.com/null" name="23" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;SQL Server session mode is a more reliable and secure session state management.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;It keeps data in a centralized location (database).&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;We should use the SQLServer session mode when we need to implement session with more security.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;If there happens to be frequent server restarts, this is an ideal choice.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;This is the perfect mode for web farm and web garden scenarios (I have explained this in detail later).&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;We can use SQLServer session mode when we need to share session between two different applications.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
Configuration for SQLServer Session Mode&lt;a href="https://www.blogger.com/null" name="24" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
In SQLServer session mode, we store session data in SQL Server, so we need to first provide the database connection string in&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;web.config&lt;/em&gt;. The&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;sqlConnectionString&lt;/code&gt;&amp;nbsp;attribute is used for this.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
After we setup the connection string, we need to configure the SQL Server. I will now explain how to configure your your SQL Server using the&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;aspnet_regsql&lt;/em&gt;&amp;nbsp;command.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;Step 1&lt;/strong&gt;: From command prompt, go to your Framework version directory. E.g.:&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;c:\windows\microsoft.net\framework\&amp;lt;version&amp;gt;&lt;/em&gt;.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;Step 2&lt;/strong&gt;: Run the&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;aspnet_regsql&lt;/em&gt;&amp;nbsp;command with the following parameters:&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="54" src="https://www.codeproject.com/KB/session/ExploringSession/explor23.gif" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="600" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Have a look at the parameters and their uses:&lt;/div&gt;
&lt;table class="ArticleTable" style="background-color: white; border-bottom-color: initial; border-bottom-style: initial; border-collapse: collapse; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-right-color: initial; border-right-style: initial; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px 1px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 0px; padding: 0px;"&gt;&lt;thead style="background-color: #ebf6ff; border: 0px; font-weight: bold; margin: 0px; padding: 0px;"&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td height="19" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Parameters&lt;/td&gt;&lt;td height="19" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Description&lt;/td&gt;&lt;/tr&gt;
&lt;/thead&gt;&lt;tbody style="border: 0px; margin: 0px; padding: 0px;"&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td height="20" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;-ssadd&lt;/td&gt;&lt;td height="20" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Add support for SQLServer mode session state.&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td height="20" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;-sstype p&lt;/td&gt;&lt;td height="20" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;P stands for Persisted. It persists the session data on the server.&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td height="21" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;-S&lt;/td&gt;&lt;td height="21" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Server name.&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td height="18" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;-U&lt;/td&gt;&lt;td height="18" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;User name.&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td height="13" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;-P&lt;/td&gt;&lt;td height="13" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Password.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
After you run the command, you will get the following message:&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="99" src="https://www.codeproject.com/KB/session/ExploringSession/explor24.gif" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="600" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
That's all.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;Step 3&lt;/strong&gt;: Open SQL Server Management Studio, check if a new database ASPState has been created, and there should be two tables:&lt;/div&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;ASPStateTempApplications&lt;/em&gt;&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;ASPStateTempSessions&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="250" src="https://www.codeproject.com/KB/session/ExploringSession/explor25.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="322" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Change the configuration string of the StateServer example and run the same sample application.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Just store the roll number and user name and click on the Submit button. Open the&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;ASPStateTempSessions&lt;/em&gt;&amp;nbsp;table from SQL Server Management Studio.. here is your session data:&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="74" src="https://www.codeproject.com/KB/session/ExploringSession/explor26.gif" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="600" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Now do the following test that I have already explained in the StateServer mode section:&lt;/div&gt;
&lt;ol style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Remove the&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Serialize&lt;/code&gt;&amp;nbsp;keyword from the&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;StydentInfo&lt;/code&gt;&amp;nbsp;class&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Reset IIS and click on Restore Session&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Stop SQL Server Services&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
I think I have explained the SQLServer session mode well.&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
Advantages and Disadvantages&lt;a href="https://www.blogger.com/null" name="25" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;h5 style="background-color: white; color: grey; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal; margin-bottom: 2px;"&gt;
Advantages:&lt;/h5&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Session data not affected if we restart IIS.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;The most reliable and secure session management.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;It keeps data located centrally, is easily accessible from other applications.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Very useful in web farms and web garden scenarios.&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 style="background-color: white; color: grey; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal; margin-bottom: 2px;"&gt;
Disadvantages:&lt;/h5&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Processing is very slow in nature.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Object serialization and de-serialization creates overhead for the application.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;As the session data is handled in a different server, we have to take care of SQL Server. It should be always up and running.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
References:&lt;/h4&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms178586.aspx" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;" title="Read SQL Server Mode Section"&gt;Read more about SQLServer mode&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 19px; line-height: normal;"&gt;
&lt;span style="color: #351c75;"&gt;&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="26" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;Custom Session Mode&lt;/span&gt;&lt;/h3&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
&lt;a href="https://www.blogger.com/null" name="27" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;Overview of Custom Session Mode&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Commonly we use the InProc, StateServer, or SQLServer session modes for our application, but we also need to know the fundamentals of the Custom session mode. This session mode is quite interesting, because Custom session gives full control to us to create everything, even the session ID. You can write your own algorithm to generate session IDs.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
You can implement custom providers that store session data in other storage mechanisms simply by deriving from the&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;SessionStateStoreProviderBase&lt;/code&gt;&amp;nbsp;class. You can also generate a new session ID by implementing&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;ISessionIDManager&lt;/code&gt;.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
These are the methods called during the implementation of Custom session:&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="147" src="https://www.codeproject.com/KB/session/ExploringSession/explor27.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="505" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
In the&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Initialize&lt;/code&gt;&amp;nbsp;method, we can set a custom provider. This will initialize the connection with that provider.&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;SetItemExpireCallback&lt;/code&gt;&amp;nbsp;is used to set&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;SessionTimeOut&lt;/code&gt;. We can register a method that will be called at the time of session expiration.&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;InitializeRequest&lt;/code&gt;&amp;nbsp;is called on every request and&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;CreateNewStoreData&lt;/code&gt;&amp;nbsp;is used to create a new instance of&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;SessionStateStoreData&lt;/code&gt;.&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
&lt;a href="https://www.blogger.com/null" name="28" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;When should we use Custom Session Mode?&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
We can use Custom session mode in the following cases:&lt;/div&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;We want to store session data in a place other than SQL Server.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;When we have to use an existing table to store session data.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;When we need to create our own session ID.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
What configuration do we need for it?&lt;a href="https://www.blogger.com/null" name="29" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
We need to configure our&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;web.config&lt;/em&gt;&amp;nbsp;like this:&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="106" src="https://www.codeproject.com/KB/session/ExploringSession/explor28.gif" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="538" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
If you want to explore this more, please check the References section.&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
Advantages and Disadvantages&lt;a href="https://www.blogger.com/null" name="30" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;h5 style="background-color: white; color: grey; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal; margin-bottom: 2px;"&gt;
Advantages:&lt;/h5&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;We can use an existing table for storing session data. This is useful when we have to use an existing database.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;It's not dependent on IIS, so restarting the web server does not have any effect on session data.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;We can crate our own algorithm for generating session ID.&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 style="background-color: white; color: grey; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal; margin-bottom: 2px;"&gt;
Disadvantages:&lt;/h5&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Processing of data is very slow.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Creating a custom state provider is a low-level task that needs to be handled carefully to ensure security.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
It is always recommended to use a third party provider rather than create your own.&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
References:&lt;/h4&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms178586.aspx" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;"&gt;Custom Mode&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;Overview of production deployment&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="31" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Production environments are where we deploy our applications on a live production server. It is a major and big challenge for web developers to deploy their applications on a live server, because in a big production environment, there are a large number of users and it is hard to handle the load for so many users with a single server. Here comes in the concepts of Web Farm, Load Balancer, Web Garden, etc.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Just a few months back, I deployed a web application in a live production environment which is accessed by millions of user and there were more than 10 Active Directory instances, more than 10 web servers over a Load Balancer, and several database server, Exchange Server, LCS Server, etc. The major risk involved in multiple servers is session management. The following picture shows a general diagram of production environments:&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="282" src="https://www.codeproject.com/KB/session/ExploringSession/explor33.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="497" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
I will try to explain the different scenarios that you need to keep in mind while deploying your application.&lt;/div&gt;
&lt;h3 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 19px; line-height: normal;"&gt;
&lt;span style="color: #351c75;"&gt;Application Pool&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="32" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
This is one of the most important things you should create for your applications in a production environment. Application pools are used to separate sets of IIS worker processes that share the same configuration. Application pools enable us to isolate our web application for better security, reliability, and availability. The worker process serves as the process boundary that separates each application pool so that when one worker process or application has an issue or is recycled, other applications or worker processes are not affected.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="231" src="https://www.codeproject.com/KB/session/ExploringSession/explor42.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="268" /&gt;&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
&lt;a href="https://www.blogger.com/null" name="33" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;Identity of Application Pool&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Application pool identity configuration is an important aspect of security in IIS 6.0 and IIS 7.0, because it determines the identity of the worker process when the process is accessing a resource. In IIS 7.0, there are three predefined identities that are the same as in IIS 6.0.&lt;/div&gt;
&lt;table class="ArticleTable" style="background-color: white; border-bottom-color: initial; border-bottom-style: initial; border-collapse: collapse; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-right-color: initial; border-right-style: initial; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px 1px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 0px; padding: 0px;"&gt;&lt;thead style="background-color: #ebf6ff; border: 0px; font-weight: bold; margin: 0px; padding: 0px;"&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Application Pool Identity&lt;/td&gt;&lt;td style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Description&lt;/td&gt;&lt;/tr&gt;
&lt;/thead&gt;&lt;tbody style="border: 0px; margin: 0px; padding: 0px;"&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;LocalSystem&lt;/code&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;&lt;div style="line-height: normal;"&gt;
Built-in account that has administrative privileges on the server. It can access both local and remote resources. For any kind accessing of server files or resources, we have to set the identity of the application pool to&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;LocalSystem&lt;/code&gt;.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;LocalServices&lt;/code&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Built-in account has privileges of an authenticated local user account. It does not have any network access permission.&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;NetworkServices&lt;/code&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;This is the default identity of Application Pool.&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;NetworkServices&lt;/code&gt;&amp;nbsp;has the privileges of an authenticated local user account.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
Creating and assigning Application Pool&lt;a href="https://www.blogger.com/null" name="34" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Open IIS Console, right click on Application Pool Folder &amp;gt; Create New.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="226" src="https://www.codeproject.com/KB/session/ExploringSession/explor29.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="298" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Give the Application Pool ID and click OK.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="217" src="https://www.codeproject.com/KB/session/ExploringSession/explor30.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="398" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Now, right click on the Virtual Directory (I am using StateServer web sites) and assign&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;StateServerAppPool&lt;/code&gt;&amp;nbsp;to the StateServer Virtual Directory.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="246" src="https://www.codeproject.com/KB/session/ExploringSession/explor31.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="254" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
So this StateServer web site will run independently with&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;StateServerAppPool&lt;/code&gt;. Any problem related with other applications will not affect this application. This is the main advantage of creating application pools separately.&lt;/div&gt;
&lt;h3 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 19px; line-height: normal;"&gt;
&lt;span style="color: #351c75;"&gt;&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="35" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;Web Garden&lt;/span&gt;&lt;/h3&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
By default, each application pool runs with a single worker process (&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;W3Wp.exe&lt;/em&gt;). We can assign multiple worker processes with a single application pool. An application pool with multiple worker processes is called a Web Garden. Many worker processes with the same Application Pool can sometimes provide better throughput performance and application response time. And each worker process should have its own Thread and memory space.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="230" src="https://www.codeproject.com/KB/session/ExploringSession/explor41.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="270" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
As shown in the picture, in IIS, there may be multiple application pools and each application pool will have at least one worker process. A Web Garden should contain multiple worker processes.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
There are certain restrictions in using a Web Garden with your web application. If we use the InProc session mode, our application will not work correctly because the session will be handled by a different worker process. To avoid this problem, we should use the OutProc session mode and we can use a session state server or SQL-Server session state.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;Main advantage&lt;/strong&gt;: The worker processes in a Web Garden share the requests that arrive for that particular application pool. If a worker process fails, another worker process can continue processing the requests.&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
How to Create a Web Garden?&lt;a href="https://www.blogger.com/null" name="36" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Right click on Application Pool &amp;gt; Go to Performance tab &amp;gt; Check Web Garden section (highlighted in picture):&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="266" src="https://www.codeproject.com/KB/session/ExploringSession/explor34.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="250" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
By default, it would be 1. Just change it to more than one.&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
How Session depends on Web Garden?&lt;a href="https://www.blogger.com/null" name="37" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
I have already explained that InProc is handled by a worker process. It keeps data inside its memory object. Now if we have multiple worker processes, then it would be very difficult to handle the session because each and every worker process has its own memory, so if my first request goes to WP1 and it keeps my session data and the second request goes to WP2, I am trying to retrieve session data and it will not be available, which will throw an error. So please avoid Web Gardens in InProc session mode.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
We can use StateServer or SQLServer session modes in Web Gardens because as I have already explained, these two session modes do not depend on worker processes. In my example, I have also explained that if you restart IIS, you are still able to access your session data.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
In short:&lt;/div&gt;
&lt;table class="ArticleTable" style="background-color: white; border-bottom-color: initial; border-bottom-style: initial; border-collapse: collapse; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-right-color: initial; border-right-style: initial; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px 1px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 0px; padding: 0px;"&gt;&lt;thead style="background-color: #ebf6ff; border: 0px; font-weight: bold; margin: 0px; padding: 0px;"&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td height="23" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Session Mode&lt;/td&gt;&lt;td height="23" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Recommended&lt;/td&gt;&lt;/tr&gt;
&lt;/thead&gt;&lt;tbody style="border: 0px; margin: 0px; padding: 0px;"&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td height="24" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;InProc&lt;/td&gt;&lt;td align="center" height="24" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;No&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td height="15" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;StateServer&lt;/td&gt;&lt;td align="center" height="15" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Yes&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td height="11" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;SQLServer&lt;/td&gt;&lt;td align="center" height="11" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Yes&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h3 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 19px; line-height: normal;"&gt;
&lt;span style="color: #351c75;"&gt;Web Farm and Load Balancer&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="38" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
This is the most common terms that are used in production deployments. These terms come in when we are using multiple web servers for deploying our applications. The main reason for using these is we have to distribute the load over multiple servers. A Load Balancer is used to distribute the load on multiple servers.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="282" src="https://www.codeproject.com/KB/session/ExploringSession/explor33.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="497" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
If we take a look at the above diagram, the client request the URL and it will hit a Load Balancer, which decides which server to access. The load balancer will distribute the traffic over all the different web servers.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Now how does this affect Session?&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
Handling Session in web farm and load balancer scenarios&lt;a href="https://www.blogger.com/null" name="39" style="border: 0px; color: inherit; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Handling session is one of the most challenging jobs in a web farm.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;InProc&lt;/strong&gt;: In InProc session mode, session data is stored in an in-memory object of the worker process. Each server will have its own worker process and will keep session data inside its memory.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="282" src="https://www.codeproject.com/KB/session/ExploringSession/explor35.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="587" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
If one server is down, and if the request goes to a different server, the user is not able to get session data. So it is not recommended to use InProc in Web Farms.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;StateServer&lt;/strong&gt;: I have already explained what a state server is and how to configure a state server, etc. For web farm scenarios, you can easily understand how much this is important because all session data will be stored in a single location.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img height="401" src="https://www.codeproject.com/KB/session/ExploringSession/explor36.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="479" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Remember, in a web farm, you have to make sure you have the same&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;&amp;lt;machinekey&amp;gt;&lt;/code&gt;&amp;nbsp;in all your web servers. Other things are the same as I have describe earlier. All&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;web.config&lt;/em&gt;&amp;nbsp;files will have the same configuration (&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;stateConnectionString)&lt;/code&gt;&amp;nbsp;for session state.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;SQL Server&lt;/strong&gt;: This is another approach, the best that we can use in a web farm. We need to configure the database first. The required steps have been explained covered.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img alt="explor37.jpg" height="395" src="https://www.codeproject.com/KB/session/ExploringSession/explor37.jpg" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="479" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
As shown in the above picture, all web server session data will be stored in a single SQL Server database. And it is easily accessible. Keep one thing in mind, you should serialize objects in both StateServer and SQLServer modes. If one of the web servers go down, the load balancer will distribute the load to other servers and the user will still be able to read session data from the server, because data is stored in a centralized database server.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
In summary, we can use either StateServer or SQLServer session mode in a web farm. We should avoid InProc.&lt;/div&gt;
&lt;h2 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;Session and Cookies&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="40" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Clients use cookies to work with session. Because clients need to present the appropriate session ID with each request. We can do this in the following ways:&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
Using cookies&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
ASP.NET creates a special cookie named&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;ASP.NET_SessionId&lt;/code&gt;&amp;nbsp;automatically when a session collection is used. This is the default. Session ID is transmitted through that cookie.&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
Cookie munging&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Some older browsers do not support cookies or the user may disable cookies in the browser, in that case, ASP.NET transmits session ID in a specially modified (or “munged”) URL.&lt;/div&gt;
&lt;h3 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 19px; line-height: normal;"&gt;
&lt;span style="color: #351c75;"&gt;How Cookie Munging works?&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="41" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
When the user requests for a page on a server, the server encoded the session ID and adds it with every HREF link in the page. When the user clicks on a link, ASP.NET decodes that session ID and passes it to the page that the user is requesting. Now the requesting page can retrieve session variables. This all happens automatically if ASP.NET detects that the user's browser does not support cookies.&lt;/div&gt;
&lt;h3 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 19px; line-height: normal;"&gt;
&lt;span style="color: #351c75;"&gt;&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="42" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;How to implement Cookie Munging?&lt;/span&gt;&lt;/h3&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
For this, we have to make our session state cookie-less.&lt;/div&gt;
&lt;h2 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="43" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;Removing Session&lt;/span&gt;&lt;/h2&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Following are the list of methods that are used to remove Session:&lt;/div&gt;
&lt;table class="ArticleTable" style="background-color: white; border-bottom-color: initial; border-bottom-style: initial; border-collapse: collapse; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-right-color: initial; border-right-style: initial; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-width: 1px 0px 0px 1px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 0px; padding: 0px;"&gt;&lt;thead style="background-color: #ebf6ff; border: 0px; font-weight: bold; margin: 0px; padding: 0px;"&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td align="center" height="28" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Method&lt;/td&gt;&lt;td align="center" height="28" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Description&lt;/td&gt;&lt;/tr&gt;
&lt;/thead&gt;&lt;tbody style="border: 0px; margin: 0px; padding: 0px;"&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td height="26" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Session.Remove(strSessionName);&lt;/code&gt;&lt;/td&gt;&lt;td height="26" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Removes an item from the session state collection.&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td height="30" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Session.RemoveAll()&lt;/code&gt;&lt;/td&gt;&lt;td height="30" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Removes all items from the session collection.&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td height="15" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Session.Clear()&lt;/code&gt;&lt;/td&gt;&lt;td height="15" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Remove all items from session collection. Note: There is no difference between&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Clear&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;RemoveAll&lt;/code&gt;.&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;RemoveAll()&lt;/code&gt;&amp;nbsp;calls&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Clear()&lt;/code&gt;&amp;nbsp;internally.&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;td height="15" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Session.Abandon()&lt;/code&gt;&lt;/td&gt;&lt;td height="15" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 1px 1px 0px; line-height: normal; margin: 0px; padding: 5px;"&gt;Cancels the current session.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="44" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;Enabling and disabling Session&lt;/span&gt;&lt;/h2&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
For performance optimization, we can enable or disable session because each and every page read and write access of the page involves some performance overhead. So it is always better to enable and disable session based on requirements rather than enable it always. We can enable and disable session state in two ways:&lt;/div&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Page level&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Application level&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
Page level&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
We can disable session state in page level using the&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;EnableSessionState&lt;/code&gt;&amp;nbsp;attribute in the&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Page&lt;/code&gt;&amp;nbsp;directive.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img alt="explor38.gif" height="18" src="https://www.codeproject.com/KB/session/ExploringSession/explor38.gif" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="410" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
This will disable the session activities for that particular page.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
The same way, we can make it read-only also. This will permit to access session data but will not allow writing data on session.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img alt="explor39.gif" height="26" src="https://www.codeproject.com/KB/session/ExploringSession/explor39.gif" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="442" /&gt;&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
Application level&lt;/h4&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Session state can be disabled for the entire web application using the&amp;nbsp;&lt;code style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;EnableSessionState&lt;/code&gt;&amp;nbsp;property in&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;Web.Config&lt;/em&gt;.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
&lt;img alt="explor40.gif" height="90" src="https://www.codeproject.com/KB/session/ExploringSession/explor40.gif" style="border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" width="410" /&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Generally we use page level because some pages may not require any session data or may only read session data.&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
References:&lt;/h4&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;a href="http://support.microsoft.com/kb/306996" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;" title="Enable and Disable Session"&gt;How to Disable ASP.NET Session State&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 style="background-color: white; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #0b5394;"&gt;&lt;span style="border-color: initial; border-image: initial; border-style: initial;"&gt;&lt;a href="https://www.blogger.com/null" name="46" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;Summary&lt;/span&gt;&lt;/h2&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Hope you are now really familiar with Session, its use, how to apply it in web farms, etc. To summarise:&lt;/div&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;The in-process (&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;InProc&lt;/strong&gt;) session provider is the fastest because of everything being stored inside memory. Session data will be lost if we restart the web server or if the worker process is recycled. You can use this in small web applications where the number of users is less. Do not use InProc in web farms.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;In&amp;nbsp;&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;StateServer&lt;/strong&gt;&amp;nbsp;session mode, session data is maintained by&amp;nbsp;&lt;em style="border: 0px; margin: 0px; padding: 0px;"&gt;aspnet_state.exe&lt;/em&gt;. It keeps session data out of the web server. So any issues with the web server does not affect session data. You need to serialized an object before storing data in StateServer session. We can use this safely in web farms.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;SQLServer&lt;/strong&gt;&amp;nbsp;session modes store data in SQL Server. We need to provide the connection string. Here we also need to serialize the data before storing it to session. This is very useful in production environments with web farms.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;We can use a&amp;nbsp;&lt;strong style="border: 0px; margin: 0px; padding: 0px;"&gt;Custom&lt;/strong&gt;&amp;nbsp;provider for custom data sources or when we need to use an existing table to store session data. We can also create custom session IDs in Custom mode. But it is not recommended to create your own custom provider. It is recommended to use a third party provider.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Hope you have enjoyed the article. Please give your suggestions and feedback for further improvements. Again thanks for reading.&lt;/div&gt;
&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item><item><title>The ASP.NET Worker Process and application domains (AppDomain)</title><link>http://dotnetmasterindia.blogspot.com/2017/08/the-aspnet-worker-process-and.html</link><category>.net</category><category>Asp.Net</category><pubDate>Mon, 7 Aug 2017 00:51:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4621816672443770981.post-4269681129894495380</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;h2 style="background-color: white; font-family: &amp;quot;segoe ui&amp;quot;, arial, sans-serif; font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;
Overview&lt;/span&gt;&lt;/h2&gt;
&lt;div style="background-color: white; font-family: &amp;quot;segoe ui&amp;quot;, arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
This article is an overview of the ASP.NET worker process in IIS5. IIS6 offers a slightly different architecture (maybe my next article).&lt;/div&gt;
&lt;h2 style="background-color: white; font-family: &amp;quot;segoe ui&amp;quot;, arial, sans-serif; font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;
Introduction&lt;/span&gt;&lt;/h2&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
One of the most important requirements for ASP.NET framework applications is reliability. The architecture of applications running inside the server process (in IIS,&amp;nbsp;&lt;i&gt;Inetinfo.exe&lt;/i&gt;) does not produce a solid foundation for building reliable applications that can continue to run over a long period of time. Too many resources are shared on the process level, and it is too easy for an error to bring down the entire server process.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
To solve this problem, ASP.NET provides an out-of-process execution model, which protects the server process from user code. It also enables you to apply heuristics to the lifetime of the process to improve the availability of your web applications. Does it scale up to its promises? Lets see, but before that, we should have a concept of AppDomains, marshalling and inter-process communication.&lt;/div&gt;
&lt;h2 style="background-color: white; font-family: &amp;quot;segoe ui&amp;quot;, arial, sans-serif; font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;
ASP.NET &amp;amp; application domains (AppDomain)&lt;/span&gt;&lt;/h2&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Every Windows application runs inside a certain process. Processes on the other hand own resources like memory and kernel objects. One single process can have multiple threads running inside it, which executes the code loaded in the process. Operating system takes the responsibility to protect processes from unexpectedly running into each other. Possible reasons behind this can be memory leaks in applications, out of bound memory access, null object referencing (GC not involved in this case) etc. If for some reason, one of the applications crashes; other applications running in other processes remain undisturbed. Processes provide a high level of application fault tolerance, which is why IIS and COM+ use them, when running in high isolation mode.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
So far so good, but there is one big problem with processes, which is they are an extremely expensive resource to produce and manage, since every process consumes memory. It is quite impractical to use large number of processes since they don’t scale well. Apart from that, communication between processes is also very resource consuming since we have to marshal objects by reference, serialize/deserialize and cross process boundaries, which passes several layers including operating system checks.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
However if we run multiple applications in the same process, we will use fewer resources, thus resulting in a faster execution cycle, since DLLs will only be loaded once, and we don’t have to sacrifice for out of boundary calls. There are downsides to this approach, as one application fails, others will be affected as well.&lt;/div&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
To overcome such issues, .NET introduced application domains, which have the same benefits as the process, but multiple application domains can run within a single process. Application domains can run safely in one single process because of the code verification feature of the CLR, which ensures that the code is managed and safe to run. Every instance of an ASP.NET application is created in an application domain within the ASP.NET worker process.&lt;/div&gt;
&lt;h2 style="background-color: white; font-family: &amp;quot;segoe ui&amp;quot;, arial, sans-serif; font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;
Worker process creation and recycling&lt;/span&gt;&lt;/h2&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Whenever an old worker process recycles, a newer one is created, which replaces the old one to serve requests. The configuration settings for the creation and control of the worker process are stored in the root configuration file for the computer,&amp;nbsp;&lt;i&gt;Machine.config&lt;/i&gt;. The process model is enabled by default. The process model supports two types of recycling: reactive and proactive. The 'userName' and 'password' attributes define the account under which the ASP.NET worker process runs. These default to 'machine' and 'autogenerate' respectively. These values tell ASP.NET to use the built-in ASPNET account and to use a cryptographically strong random password stored in the Local Security Authority (LSA) for that account.&lt;/div&gt;
&lt;h3 style="background-color: white; font-family: &amp;quot;segoe ui&amp;quot;, arial, sans-serif; font-size: 19px; line-height: normal;"&gt;
&lt;span style="color: #351c75; font-weight: normal;"&gt;
Reactive process recycling&lt;/span&gt;&lt;/h3&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Reactive process recycling occurs when a process is misbehaving or unable to serve requests. The process typically displays detectable symptoms, such as deadlocks, access violations, memory leaks, and so on, in order to trigger a process recycle. You can control the conditions that trigger a process restart by using the configuration settings described in the following table.&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
Setting description&amp;nbsp;&lt;/h4&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;code lang="xml" style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;requestQueueLimit&lt;/code&gt;: Handles deadlock conditions. The DWORD value is set to the maximum allowed number of requests in the queue, after which the worker process is considered to be misbehaving. When the number is exceeded, a new process is launched and the requests are reassigned. The default is 5000 requests.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;code lang="xml" style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;memoryLimit&lt;/code&gt;: Handles memory leak conditions. The DWORD value is set to the percentage of physical memory that the worker process can consume before it is considered to be misbehaving. When that percentage is exceeded, a new process is launched and the requests are reassigned. The default is 60%.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;code lang="xml" style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;shutdownTimeout&lt;/code&gt;: Specifies the amount of time the worker process has to shut itself down gracefully (string value in hr:min:sec format). When the time out expires, the ASP.NET ISAPI shuts down the worker process. The default is 00:00:05.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style="background-color: white; font-family: &amp;quot;segoe ui&amp;quot;, arial, sans-serif; font-size: 19px; line-height: normal;"&gt;
&lt;span style="color: #351c75;"&gt;
Proactive process recycling&lt;/span&gt;&lt;/h3&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
Proactive process recycling restarts the worker process periodically even if the process is healthy. This can be a useful way to prevent denials of service due to conditions the process model is unable to detect. A process can be restarted after a specific number of requests or after a time-out period has elapsed.&lt;/div&gt;
&lt;h4 style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: normal;"&gt;
Setting description&lt;/h4&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;code lang="xml" style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;timeout&lt;/code&gt;: String value in hr:min:sec format that configures the time limit after which a new worker process will be launched to take the place of the current one. The default is&amp;nbsp;&lt;code lang="xml" style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Infinite&lt;/code&gt;, a keyword indicating that the process should not be restarted.&amp;nbsp;&amp;nbsp;&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;code lang="xml" style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;idleTimeout&lt;/code&gt;: String value in hr:min:sec format that configures the amount of inactivity, after which the worker process is automatically shut down. The default is&amp;nbsp;&lt;code lang="xml" style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Infinite&lt;/code&gt;, a keyword indicating that the process should not be restarted.&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;code lang="xml" style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;requestLimit&lt;/code&gt;: DWORD value set to the number of requests after which a new worker process will be launched to take the place of the current one. The default is&amp;nbsp;&lt;code lang="xml" style="border: 0px; color: #990000; font-family: Consolas, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;"&gt;Infinite&lt;/code&gt;, a keyword indicating that the process should not be restarted.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 style="background-color: white; font-family: &amp;quot;segoe ui&amp;quot;, arial, sans-serif; font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;
Conclusion&lt;/span&gt;&lt;/h2&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
We are not done yet; the next part of this article will explain session state management, issues regarding working process recycling, best practices and performance tips. Please feel free to report things, which I have missed out or misreported. I will update them. I can be reached at hisandeepkiet@gmail.com.&lt;/div&gt;
&lt;h2 style="background-color: white; font-family: &amp;quot;segoe ui&amp;quot;, arial, sans-serif; font-size: 29px; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;"&gt;
&lt;span style="color: #351c75;"&gt;
References&lt;/span&gt;&lt;/h2&gt;
&lt;div style="background-color: white; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: normal;"&gt;
I have collected some text from the following resources:&lt;/div&gt;
&lt;ul style="background-color: white; border: 0px; color: #111111; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;"&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;&lt;a href="http://www.vbcentral.net/quickstart/aspplus/doc/procmodel.aspx" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;" target="_blank"&gt;www.vbcentral.net&lt;/a&gt;&lt;/li&gt;
&lt;li style="border: 0px; line-height: normal; margin: 0px; padding: 0px;"&gt;Professional ASP.NET by WROX&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>hisandeepkiet@gmail.com (Sandeep)</author></item></channel></rss>