<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1729044450077172400</id><updated>2025-04-27T02:58:41.010-07:00</updated><category term="ASP.NET"/><category term="vb.net"/><category term="Android"/><category term="General"/><category term="C#"/><category term="SQL"/><category term="Ajax"/><category term="ASP.NET  errors"/><category term="Interview questions"/><category term="Technology"/><category term="CSS"/><category term="PayPal"/><category term="XML"/><category term="Error"/><category term="MachineLearning"/><category term="Regex"/><category term="news"/><category term="Drupal 7"/><category term="LINQ"/><category term="connection string"/><category term=".ini"/><category term="E-Books"/><category term="Folder"/><category term="Log file"/><category term="Loop"/><category term="Read"/><category term="Search a Items in Array()"/><category term="Write"/><category term="google"/><title type='text'>DotNetCode</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>263</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-7302740155034525348</id><published>2020-04-11T06:22:00.001-07:00</published><updated>2020-04-11T06:22:56.462-07:00</updated><title type='text'>How to use Python in Visual studio Code IDE</title><content type='html'>&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;270&quot; src=&quot;https://www.youtube.com/embed/CHPWagospYU&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/7302740155034525348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2020/04/how-to-use-python-in-visual-studio-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/7302740155034525348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/7302740155034525348'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2020/04/how-to-use-python-in-visual-studio-code.html' title='How to use Python in Visual studio Code IDE'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/CHPWagospYU/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-4106759544986274767</id><published>2020-04-10T19:08:00.000-07:00</published><updated>2020-04-10T19:08:01.975-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Error"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>Install SSDT in visual studio 2015-Error 0x80070002: Failed to send request to URL: https://go.microsoft.com/fwlink/?LinkId=817280&amp;clcid=0x409</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi All,&lt;br /&gt;
&lt;br /&gt;
Here i have tried to install SSDT in Visual studio 2015 through online.But am not able to make it success.Everytime it has thrown below error at the some point, then i have tried various method to fix this issue but nothing get helped.&lt;br /&gt;
&lt;img alt=&quot;Install Visual Studio 2015 in Server without Internet Connection ...&quot; src=&quot;https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRk64OiuPZILK-4uXbJPLM76QCi3WEA7-VL8N-vjhfjwA24B3h-&amp;amp;usqp=CAU&quot; /&gt;&lt;br /&gt;
Finally i have found solution form the below link.Here you can download standalone installer for SSDT.After i tried this SSDT has installed Successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://docs.microsoft.com/en-us/previous-versions/mt186501(v=msdn.10)?redirectedfrom=MSDN&quot;&gt;https://docs.microsoft.com/en-us/previous-versions/mt186501(v=msdn.10)?redirectedfrom=MSDN&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Direct Link to Download the file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://go.microsoft.com/fwlink/?linkid=832313&amp;amp;clcid=0x409&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/4106759544986274767/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2020/04/install-ssdt-in-visual-studio-2015.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/4106759544986274767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/4106759544986274767'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2020/04/install-ssdt-in-visual-studio-2015.html' title='Install SSDT in visual studio 2015-Error 0x80070002: Failed to send request to URL: https://go.microsoft.com/fwlink/?LinkId=817280&amp;clcid=0x409'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-3817821562568067783</id><published>2020-04-08T01:04:00.003-07:00</published><updated>2020-04-08T01:04:44.416-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Error"/><title type='text'>AttributeError: module &#39;tensorflow&#39; has no attribute &#39;app&#39;</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Hi All,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;i have got this error while doing custom object detection in tensorflow.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Here the solution which i found&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;It occurs due to Tensorflow version&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; color: #242729; font-size: 15px;&quot;&gt;If it is TF2.0 then you need to replace&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #242729; font-size: 15px;&quot;&gt;&amp;nbsp;with&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; box-sizing: inherit; color: #242729; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;tf.compat.v1.flags&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Change the import tensorflow keyword&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Correct One:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt;&amp;nbsp;tensorflow.compat.v1&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;as&lt;/span&gt;&amp;nbsp;tf&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/3817821562568067783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2020/04/attributeerror-module-tensorflow-has-no.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/3817821562568067783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/3817821562568067783'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2020/04/attributeerror-module-tensorflow-has-no.html' title='AttributeError: module &#39;tensorflow&#39; has no attribute &#39;app&#39;'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-1732414662833618237</id><published>2020-04-07T09:17:00.000-07:00</published><updated>2020-04-07T09:17:30.334-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Error"/><category scheme="http://www.blogger.com/atom/ns#" term="MachineLearning"/><title type='text'>ImportError: No module named &#39;nets&#39;</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi All,&lt;br /&gt;
&lt;br /&gt;
i have got this error while doing custom object detection in tensorflow.&lt;br /&gt;
&lt;br /&gt;
Here the solution which i found&lt;br /&gt;
&lt;br /&gt;
step 1:&lt;br /&gt;
First you need to go to this path in the command prompt..&lt;br /&gt;
&lt;br /&gt;
....(local path)/tensorflow_models/models/slim&lt;br /&gt;
&lt;br /&gt;
Step 2:&lt;br /&gt;
if you have Build file in the folder then delete the file&lt;br /&gt;
&lt;br /&gt;
Step 3:&lt;br /&gt;
&lt;br /&gt;
Type Setup.py and press enter&lt;br /&gt;
&lt;br /&gt;
Now its start the installation.Issue will be solved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/1732414662833618237/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2020/04/importerror-no-module-named-nets.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/1732414662833618237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/1732414662833618237'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2020/04/importerror-no-module-named-nets.html' title='ImportError: No module named &#39;nets&#39;'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-4390748393638518671</id><published>2020-04-07T06:50:00.001-07:00</published><updated>2020-04-07T06:50:48.330-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MachineLearning"/><title type='text'>Getting started with Jupyter Notebook and machine learning in python</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/KQlncNXh_Mc/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/KQlncNXh_Mc?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/4390748393638518671/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2020/04/getting-started-with-jupyter-notebook.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/4390748393638518671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/4390748393638518671'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2020/04/getting-started-with-jupyter-notebook.html' title='Getting started with Jupyter Notebook and machine learning in python'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/KQlncNXh_Mc/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-4238787548453418274</id><published>2020-04-07T06:49:00.001-07:00</published><updated>2020-04-07T06:49:40.820-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MachineLearning"/><title type='text'>Introduction about CountVectorizer with an example in Machine Learning</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe width=&quot;320&quot; height=&quot;266&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/NhgGEE2BJJo/0.jpg&quot; src=&quot;https://www.youtube.com/embed/NhgGEE2BJJo?feature=player_embedded&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/4238787548453418274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2020/04/introduction-about-countvectorizer-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/4238787548453418274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/4238787548453418274'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2020/04/introduction-about-countvectorizer-with.html' title='Introduction about CountVectorizer with an example in Machine Learning'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/NhgGEE2BJJo/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-2896019976164229132</id><published>2017-11-01T03:50:00.002-07:00</published><updated>2017-11-01T03:50:58.627-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>How to use Table-Valued Parameters in sql?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: segoe-ui_normal, &amp;quot;Segoe UI&amp;quot;, Segoe, &amp;quot;Segoe WP&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 16px;&quot;&gt;Table-valued parameters are declared by using user-defined table types. You can use table-valued parameters to send multiple rows of data to a Transact-SQL statement or a routine, such as a stored procedure or function, without creating a temporary table or many parameters.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: segoe-ui_normal, &amp;quot;Segoe UI&amp;quot;, Segoe, &amp;quot;Segoe WP&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: segoe-ui_normal, &amp;quot;Segoe UI&amp;quot;, Segoe, &amp;quot;Segoe WP&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 16px;&quot;&gt;Advantage:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: segoe-ui_normal, &amp;quot;Segoe UI&amp;quot;, Segoe, &amp;quot;Segoe WP&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;ul class=&quot;lf-text-block lf-block&quot; data-lf-anchor-id=&quot;0595ed6943e1b8b478cd18466f7566a1:0&quot; style=&quot;background-color: white; color: #222222; font-family: segoe-ui_normal, &amp;quot;Segoe UI&amp;quot;, Segoe, &amp;quot;Segoe WP&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 16px; margin: 16px 0px 16px 38px; padding-bottom: 0px; padding-left: 0px; padding-right: 25px !important; padding-top: 0px; position: relative !important;&quot;&gt;
&lt;li style=&quot;list-style: disc outside none;&quot;&gt;&lt;div class=&quot;&quot; style=&quot;margin-top: 1rem; padding-right: 25px !important; position: relative !important;&quot;&gt;
Do not acquire locks for the initial population of data from a client.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;list-style: disc outside none;&quot;&gt;&lt;div style=&quot;margin-top: 1rem; padding-right: 25px !important; position: relative !important;&quot;&gt;
Provide a simple programming model.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;list-style: disc outside none;&quot;&gt;&lt;div style=&quot;margin-top: 1rem; padding-right: 25px !important; position: relative !important;&quot;&gt;
Enable you to include complex business logic in a single routine.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;list-style: disc outside none;&quot;&gt;&lt;div style=&quot;margin-top: 1rem; padding-right: 25px !important; position: relative !important;&quot;&gt;
Reduce round trips to the server.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;list-style: disc outside none;&quot;&gt;&lt;div style=&quot;margin-top: 1rem; padding-right: 25px !important; position: relative !important;&quot;&gt;
Can have a table structure of different cardinality.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;list-style: disc outside none;&quot;&gt;&lt;div style=&quot;margin-top: 1rem; padding-right: 25px !important; position: relative !important;&quot;&gt;
Are strongly typed.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;list-style: disc outside none;&quot;&gt;&lt;div style=&quot;margin-top: 1rem; padding-right: 25px !important; position: relative !important;&quot;&gt;
Enable the client to specify sort order and unique keys.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;list-style: disc outside none;&quot;&gt;&lt;div style=&quot;margin-top: 1rem; padding-right: 25px !important; position: relative !important;&quot;&gt;
Are cached like a temp table when used in a stored procedure. Starting with SQL Server 2012, table-valued parameters are also cached for parameterized queries.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;color: #222222; font-family: segoe-ui_normal, Segoe UI, Segoe, Segoe WP, Helvetica Neue, Helvetica, sans-serif;&quot;&gt;Disadvantage:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #222222; font-family: segoe-ui_normal, Segoe UI, Segoe, Segoe WP, Helvetica Neue, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul class=&quot;lf-text-block lf-block&quot; data-lf-anchor-id=&quot;8958ecaf6ff120bc1969b8c76b636a61:0&quot; style=&quot;background-color: white; color: #222222; font-family: segoe-ui_normal, &amp;quot;Segoe UI&amp;quot;, Segoe, &amp;quot;Segoe WP&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 16px; margin: 16px 0px 16px 38px; padding-bottom: 0px; padding-left: 0px; padding-right: 25px !important; padding-top: 0px; position: relative !important;&quot;&gt;
&lt;li style=&quot;list-style: disc outside none;&quot;&gt;&lt;div class=&quot;&quot; style=&quot;margin-top: 1rem; padding-right: 25px !important; position: relative !important;&quot;&gt;
SQL Server does not maintain statistics on columns of table-valued parameters.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;list-style: disc outside none;&quot;&gt;&lt;div style=&quot;margin-top: 1rem; padding-right: 25px !important; position: relative !important;&quot;&gt;
Table-valued parameters must be passed as input READONLY parameters to Transact-SQL routines. You cannot perform DML operations such as UPDATE, DELETE, or INSERT on a table-valued parameter in the body of a routine.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;list-style: disc outside none;&quot;&gt;&lt;div style=&quot;margin-top: 1rem; padding-right: 25px !important; position: relative !important;&quot;&gt;
You cannot use a table-valued parameter as target of a SELECT INTO or INSERT EXEC statement. A table-valued parameter can be in the FROM clause of SELECT INTO or in the INSERT EXEC string or stored procedure.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;list-style: disc outside none;&quot;&gt;&lt;div style=&quot;margin-top: 1rem; padding-right: 25px !important; position: relative !important;&quot;&gt;
&amp;nbsp;Compared to bulk operations that have a greater startup cost than table-valued parameters, table-valued parameters perform well for inserting less than 1000 rows.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;color: #222222; font-family: segoe-ui_normal, Segoe UI, Segoe, Segoe WP, Helvetica Neue, Helvetica, sans-serif;&quot;&gt;Code:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #222222; font-family: segoe-ui_normal, Segoe UI, Segoe, Segoe WP, Helvetica Neue, Helvetica, sans-serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span class=&quot;hljs-comment&quot; style=&quot;color: green; 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: 14px; white-space: pre;&quot;&gt;/* Create a table type. */&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt;  
&lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;CREATE&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;TYPE&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt; LocationTableType &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;AS&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;TABLE&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt;   
( LocationName &lt;/span&gt;&lt;span class=&quot;hljs-built_in&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hljs-number&quot; style=&quot;color: #222222; 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: 14px; white-space: pre;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt;)  
, CostRate &lt;/span&gt;&lt;span class=&quot;hljs-built_in&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt; );  
GO  

&lt;/span&gt;&lt;span class=&quot;hljs-comment&quot; style=&quot;color: green; 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: 14px; white-space: pre;&quot;&gt;/* Create a procedure to receive data for the table-valued parameter. */&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt;  
&lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;CREATE&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;PROCEDURE&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt; dbo. usp_InsertProductionLocation  
    @TVP LocationTableType READONLY  
    &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;AS&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt;   
    &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;SET&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt; NOCOUNT &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;ON&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt;  
    &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;INSERT&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;INTO&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt; AdventureWorks2012.Production.Location  
           (&lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt;  
           ,CostRate  
           ,&lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;Availability&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt;  
           ,ModifiedDate)  
        &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt; *, &lt;/span&gt;&lt;span class=&quot;hljs-number&quot; style=&quot;color: #222222; 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: 14px; white-space: pre;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;GETDATE&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt;()  
        &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt;  @TVP;  
        GO  

&lt;/span&gt;&lt;span class=&quot;hljs-comment&quot; style=&quot;color: green; 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: 14px; white-space: pre;&quot;&gt;/* Declare a variable that references the type. */&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt;  
&lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;DECLARE&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt; @LocationTVP &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;AS&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt; LocationTableType;  

&lt;/span&gt;&lt;span class=&quot;hljs-comment&quot; style=&quot;color: green; 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: 14px; white-space: pre;&quot;&gt;/* Add data to the table variable. */&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt;  
&lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;INSERT&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;INTO&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt; @LocationTVP (LocationName, CostRate)  
    &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;hljs-number&quot; style=&quot;color: #222222; 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: 14px; white-space: pre;&quot;&gt;0.00&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt;  
    &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;color: #0101fd; 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: 14px; white-space: pre;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt; AdventureWorks2012.Person.StateProvince;  

&lt;/span&gt;&lt;span class=&quot;hljs-comment&quot; style=&quot;color: green; 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: 14px; white-space: pre;&quot;&gt;/* Pass the table variable data to a stored procedure. */&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; 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: 14px; white-space: pre;&quot;&gt;&lt;i&gt;  
EXEC usp_InsertProductionLocation @LocationTVP;  
GO &lt;/i&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #222222; font-family: segoe-ui_normal, Segoe UI, Segoe, Segoe WP, Helvetica Neue, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/2896019976164229132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2017/11/how-to-use-table-valued-parameters-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/2896019976164229132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/2896019976164229132'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2017/11/how-to-use-table-valued-parameters-in.html' title='How to use Table-Valued Parameters in sql?'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-8044843143056067877</id><published>2017-09-29T04:32:00.000-07:00</published><updated>2017-09-29T04:32:42.418-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>How to improve SQL Performance when searching by date</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: #2a2a2a; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;If you have a&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;color: #2a2a2a; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;datetime&lt;/strong&gt;&lt;span style=&quot;color: #2a2a2a; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;column in a WHERE clause, and you need to convert it or use a data function, try to push the function to the literal expression.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #2a2a2a; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #2a2a2a; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;For the below two query , the First one take more query cost rather than the Second one,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #2a2a2a; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #2a2a2a; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;SELECT OrderID FROM dbo.Orders WHERE DATEADD(day, 15,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #2a2a2a; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;OrderDate) = &#39;07/23/1996&#39;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #2a2a2a; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #2a2a2a; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #2a2a2a; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #2a2a2a; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;SELECT OrderID FROM Orders WHERE OrderDate = DATEADD(day,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #2a2a2a; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;-15, &#39;07/23/1996&#39;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #2a2a2a; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #2a2a2a; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;In below Figure you can check the query cost&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXLhSSyeFIqD0OypJ9rAL8DpNdjE4cF2Jvt8yU2Ke9UXjtKQ96m26aPugLUyzVNqDG-xaQqdQewK-0e4pGUt8KhAoEP2qHYZuvAvzsu2Gjm6pmJ9Or0AT11kMTG36tyPpQdk2rsWr-_RI/s1600/Date.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;293&quot; data-original-width=&quot;690&quot; height=&quot;135&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXLhSSyeFIqD0OypJ9rAL8DpNdjE4cF2Jvt8yU2Ke9UXjtKQ96m26aPugLUyzVNqDG-xaQqdQewK-0e4pGUt8KhAoEP2qHYZuvAvzsu2Gjm6pmJ9Or0AT11kMTG36tyPpQdk2rsWr-_RI/s320/Date.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: #2a2a2a; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #2a2a2a; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/8044843143056067877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2017/09/how-to-improve-sql-performance-when.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/8044843143056067877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/8044843143056067877'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2017/09/how-to-improve-sql-performance-when.html' title='How to improve SQL Performance when searching by date'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXLhSSyeFIqD0OypJ9rAL8DpNdjE4cF2Jvt8yU2Ke9UXjtKQ96m26aPugLUyzVNqDG-xaQqdQewK-0e4pGUt8KhAoEP2qHYZuvAvzsu2Gjm6pmJ9Or0AT11kMTG36tyPpQdk2rsWr-_RI/s72-c/Date.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-779665955419173038</id><published>2017-09-29T01:29:00.002-07:00</published><updated>2017-09-29T01:29:57.972-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>How to create Dynamic Pivot Table in SQL?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Here below code, which describes to create Dynamic Pivot view from the Table.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Create table yourtable (itemID INT, part CHAR(1))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;INSERT INTO yourtable VALUES(1,&#39;A&#39;),(1,&#39;B&#39;),(2,&#39;A&#39;),(2,&#39;A&#39;),(2,&#39;A&#39;),(3,&#39;C&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;DECLARE @colsSorted AS NVARCHAR(2000), @sql AS NVARCHAR(4000)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;select @colsSorted = STUFF((select DISTINCT &#39;, &#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;+ quotename( Cast(ROW_NUMBER() OVER(PARTITION BY itemID ORDER BY part) as varchar(3)) ,&#39;]&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;FROM yourtable&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;FOR XML PATH (&#39;&#39;),type).value(&#39;.&#39;,&#39;varchar(max)&#39;), 1, 2, &#39;&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;--Print @colsSorted&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Set @sql=N&#39; if object_id(&#39;&#39;anewtable&#39;&#39;,&#39;&#39;U&#39;&#39;) is not null drop table anewtable ; with mycte as (SELECT ItemID, &#39;+ @colsSorted + &#39; FROM (&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Select ItemID,Part, Cast(ROW_NUMBER() OVER(PARTITION BY itemID ORDER BY part) as varchar(3)) as Cols&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;FROM yourtable&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;) src&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;PIVOT (Max(part) for Cols IN (&#39;+ @colsSorted +&#39;)) pvt )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Select *&amp;nbsp; &amp;nbsp;into aNewtable&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;from mycte;&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp;--print @sql&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp;exec sp_executesql @sql;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp;select * from aNewtable&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp;select * from yourtable&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;drop table yourtable&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Happy coding!!!!!!!!!!!!!!!!!!&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/779665955419173038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2017/09/how-to-create-dynamic-pivot-table-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/779665955419173038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/779665955419173038'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2017/09/how-to-create-dynamic-pivot-table-in-sql.html' title='How to create Dynamic Pivot Table in SQL?'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-3885665035429662191</id><published>2017-07-24T03:03:00.001-07:00</published><updated>2017-07-24T03:03:06.497-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET  errors"/><title type='text'>Office has detected a problem with this file. To help protect your computer this file cannot be opened.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi,&lt;br /&gt;
&lt;br /&gt;
If you got this below error on your code,&lt;br /&gt;
&lt;br /&gt;
Office has detected a problem with this file. To help protect your computer this file cannot be opened.&lt;br /&gt;
&lt;br /&gt;
Here you can find the solution to avoid such errors.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Just add this below line when you are initializing excel application.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;if you set it to&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: #eff0f1; border: 0px; 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-numeric: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;msoFileValidationSkip&lt;/code&gt;&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&amp;nbsp;before the&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: #eff0f1; border: 0px; 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-numeric: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Open&lt;/code&gt;&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&amp;nbsp;statement, it should bypass the file protection check.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;lang-cs prettyprint prettyprinted&quot; style=&quot;background-color: #eff0f1; border: 0px; color: #393318; 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-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; 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;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;excelApp&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;FileValidation&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;MsoFileValidationMode&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;msoFileValidationSkip&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/3885665035429662191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2017/07/office-has-detected-problem-with-this.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/3885665035429662191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/3885665035429662191'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2017/07/office-has-detected-problem-with-this.html' title='Office has detected a problem with this file. To help protect your computer this file cannot be opened.'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-811351254430731451</id><published>2017-07-10T04:13:00.003-07:00</published><updated>2017-07-10T04:13:43.166-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><title type='text'>How to get the value from HTML control to code behind?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Here you can find the value from HTML control to code behind using ASP.net&lt;br /&gt;
&lt;br /&gt;
if you still want to get or set values to HTML controls without runat=&quot;server&quot; then you can use Request.Form collection to get the value. You can use public property and embedded code blocks to set the value from server. Refer the code below,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ASPX&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;lt;input id=&quot;txt1&quot; name=&quot;txt1&quot; type=&quot;text&quot; value=&quot;Set in Client Side&quot; /&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;lt;input id=&quot;txt2&quot; name=&quot;txt2&quot; type=&quot;text&quot; value=&quot;&amp;lt;% =ServerValue %&amp;gt;&quot; /&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CodeBehind&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;i&gt;public string ServerValue = String.Empty;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;i&gt;protected void btnSave_Click(object sender, EventArgs e)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string ClientValue = Request.Form[&quot;txt1&quot;];&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ServerValue = &quot;Set in Server&quot;;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; }&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;i&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
Please like .....&lt;br /&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/811351254430731451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2017/07/how-to-get-value-from-html-control-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/811351254430731451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/811351254430731451'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2017/07/how-to-get-value-from-html-control-to.html' title='How to get the value from HTML control to code behind?'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-3711319750118475618</id><published>2017-02-19T06:47:00.000-08:00</published><updated>2017-02-19T06:47:04.335-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>How to Zip and Unzip a file from folder without using opensource in c#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
i would like to share the code to zip and unzip a file without using any opensource which is directly used reference file in dot net framework.&lt;br /&gt;
&lt;br /&gt;
Please add the reference file to ZipFile is contained in the assembly System.IO.Compression.FileSystem.&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;img alt=&quot;Image result for zip file&quot; class=&quot;rg_ic rg_i&quot; data-sz=&quot;f&quot; jsaction=&quot;load:str.tbn&quot; name=&quot;Sai8hmj_FsaKFM:&quot; src=&quot;data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBw8QEg0NDwwVDxAPEBYQDRAWFhUPDw8XIBYWIhUdFBgaKC0kGBslGxQUIzEhJSosLi4uGCEzODMsNyowLisBCgoKDg0OGxAQGzcmHCMsLS8sLCwuNTUsMC0sNy8sLCwtLCw3LSwsNywsLCwsLCwsLCssLCwrLCwsLCwsLCwsLP/AABEIAKAAoAMBEQACEQEDEQH/xAAcAAABBQEBAQAAAAAAAAAAAAAAAQIEBgcFAwj/xABCEAABAwICBAsHAgMHBQAAAAABAAIDBBEFEgYHITETFCIzQVNhcXOBsTI1UXKRssE0UiMloUKDk5TS4fAVFlRVYv/EABoBAQADAQEBAAAAAAAAAAAAAAABAwQFAgb/xAAuEQEAAgECAwgCAgIDAQAAAAAAAQIDBBETMjMSFCExUVJxgQWRQWEiwbHR4TT/2gAMAwEAAhEDEQA/ANxQCCLPKb2BtZc3UZ7drsxO0QupSNt3lnP7j9Vn4l/Wf297QM5/cfqnEv6z+zaBnP7j9U4l/Wf2bQTOf3H6qOJf1n9m0KbrZrZosOlfFPJE/hYgHse6N4BeL2c0grRpb2nJtMvN4jZiP/cOIf8AtKv/ADM/+pdNQm0tTjUreEiqcQlYdgc2aqe36hyBlbX4vBlM9ZXw5r5M89SzNbfa7tu8fVBZ9U+MVcleGS11RKzgJDkkmllZfZY2cSLrLq7TGPeFmON5bSJ3AjlHfbeuZXNeJj/Kf2umsbeTpRSZu/pXXw5oyR/bPauz0VzyEAgEAgEAgEEGXee9cfN1J+WmvkYqkhAigISoFI1w+7ZfGh+8LVo+r+3jJysMpYHSPjiZ7UjgxvQLk2C6qhq+j2H45QwimipqdzQ4uBc832lBSdNtJKmse2CpjYx1JJI3kXtc2Dt/yIOhqg94t8CT8LJrel9rMXM2uZ9nQj90g9CuNv4w0/xLpA22haq2ms7wqS4pM3f0rqYc0ZI/tTauz0VzyEAgEAgEAggy7z3rjZupPy018jFUkiBFCTSUFJ1we7ZfGi+8LTo+r+3jJysLglcxzZGHK5jg5p+BG5dZnaporS4tX07aoYy6PM5zcvBh24/FBVNPNFZKAxTS1XDvqnyFxy5DcZSSdu2+dBJ1Q+8G+BJ+Fk1vS+1mLmbJUP8A41M34En/AJ9FxN/84av4l2lrUlabbQpraazvBMbpcUmbv6V1cWWMkf2ptXY9WvIQCAQCAQQJt7u9cbN1J+Wmvk8yVUkhUJISoDSUSpOt/wB2y+NF94WnR9WPtXl5WJYdGx0sLZDljdI0SG9rNuL7e5ddnaWNHdHhsGI2/vv9kGb4q1jZp2RPL4myuERvmu0E5TfuQWnVF7wb4En4WPXdL7hZi5mul96mPsIH9Fw46kNc8qxLaoCBWuI2heq2ms7wiY3S4pA7v6Qupiyxkj+1Vq7Hq15CAQCAQc+b2nd64ubqT8tNfJ5kqp6NUBCVCTSUFK1ve7ZfGi+8LVourH2ry8rDAF12de9E8WwmGnbHWUZkmDnFzuDzbL7NqDn6c4lh04phQU/Alhfw3IyZrhuX0d9UEjVJ7wb4En4WPXdL7hbi5mqRTATh5OzhNp7Ny4NZ/wA92uY8FrW9nCAQK1xG0L1W01neETG6XHIHd/SF1MWWMkf2qtXY9WvIQCAQc2c8p3euJn6lvlpr5PO6qezSVAQlQGkqEqVrd93S+NF94WvRdWPtXl5WK4dVcDLDNlzcFI19t17G67DM17DdN8QqWCaDBjJGSQHCUWuN+9BmmlOG1Ucr6ippjBxmV72AkHpuQLfDMEHY1S+8G+BJ+Fi1/R+4W4eZps8RaSD5H4r5+Y2bEinrZwA1jyQNwtey9xktHhEomsJDauqP9q3fYL1xb+qOzV6tmqemYDyunFv6nZh6Nnl6ZifIBOLf1OzCZhtQ8yNBcSDf0WrRZLTmiJlXlrEVd1d5kCAQCDmTnlO71xM/Ut8tVfKHkSqXo0lQEJUJNJQUvW4f5dL40X3hatD1o+1eXlYpR05lkjhbbNI8Mbfdcmwv9V2WZrOB4FjlHEKaCWmyBxcMwLjc79qChaY4/V1T+L1ZYXUkkjAWNyi9wHd/sBB0NU369vgSfhYtf0fuFuHmbQe1cJrBKgNJRJCVAaSoErCudZ5+i16Hrwry8krGvomIIBAIOVUHlO71w8/Ut8tVfKHkSqXs0lQEJUBpKhKl62vd0vixfeFr0PWj4lXl5WJRvLSHNcWuabtI2EHoIK7TK0zRLC5qynbUS49UQuLnNLOF+B7XIK/p7o3FRcBIysNS6odIZCcpIIy7SQTcnMd/wQP1T/r2+BJ+Fh/IdH7hbh5m0ErhNZCVCTSUCXUBLqEpWE86zz9Fr0PXqqy8krIvo2IIBAIORUnlO71ws/Ut8tdOWHkSqXo0lQGkqEkJUCma2fd0vixfeFr0PWj4lXl5WM4eIzLCJeaMjRL0cm4zf0uu2ytK4not1o/xJEGbYnwXDTiA3iErhDtvyLnLv7LILRqp/Xt8CT8LD+Q6P3C3DzNmJXBbCEqA0lAihJFAl4TzrPP0WzQdeqvNySsq+jYQgEAg41SeU/vXBz9S3y105YeRKoezSVAaSgaSoSputg/y+TxYvvC16DrR8SrzcrE13GRqWrwg0jWnBX1JDnHhskQY652ZS8gu8kHC1k10T3U8DMOfRSRF5ka5jGcIDlykFuxwGV23tQeWqr9e3wJPwsP5Ho/cLcPM2UlcBsJdQkiBFARBMwjnWefotmg69VebklZV9GwhAIBBxKo8t/euBqOrb5bKcsPElUPRpKhJpKgISoSp2tb3fJ4sX3hbNB1o+JVZuVk2jdA2pqqSmf7EszWv7W73DzAI813WR9KxxtaGsa0Na0BrWjYGgbgAgqetLDI56CeRwGemHCxO6W7RmA7CEGaaq/17fBk/Cwfkej9wuwczZLrgNhFARAiAQTMI51nn6LZoOvVXm5JWVfRsIQCAQcOrPLf8y+f1HVt8tlOWHgSqHs0lQGkqEkuoFO1q+75PFi+8LZ+P68fEqs3IzTQT3jh/jj7XLvMj6LQV/WB7txHwD6hBkuqv9ePBk/Cwfkuh9wuwczY18+2EQCAQCCZhHOs8/RbNB16q83JKyr6NhCAQCDgVh5b/AJivntR1bfLbTlh4Eqh7IvIQlQGkolydKMIFbTTUubKXgFjt4Dgbtv2XCtwZuFki7xevajZnmg+h1ZFiNOaiExMhLpM4s5jyAbAEfG/9F9Bi1GPLySx2pavmv1fplKx7mRYNUzsabCUZGNf2tB2277KO9YfdCeHb0HHnYrTVlE+jmoZJYi1hlDS13wykH4gXBsvVM2O87VndE1mPOFV1b6KTUznVlS3I90eWKK4Lmg+0XEbPgLd65Ov1dckcOn20Yccx4yvy5bQEAgEAgmYRzrPP0WzQdeqvNySsq+jYQgEAgr9YeW/5ivnNT1bfLbTlhHVD2QlQEJUJNJQJdQCN4a5rjuB29mxa9DmjHliZ8p8FeWvar4AxPGzIXdo2g9y9X/HZqztWN4RGas+ZWBzLSEZbXyg73G2wd3StGmwW02+XL4eDxe8ZNq1eLG2AA6BYLkzO87y0lUAQCAQCCZhHOs8/RbNB16q83JKyr6NhCAQCCu1p5cnzFfN6nq2+W2nLDwJVD2aSoSQlQGkoEUJIoDmSubsa6w+GwjyutmLXZccdmJ3j+1dsVbeJriSbk3Pp3fBUZs98s73l6rSK+RFU9BAIBAIBBMwjnWefotmg69VebklZV9GwhAIBBW64/wAST5ivmtT1bfLdTlh4Eqh7NJUBLqEkQUzSjDMYkqHPoqrg4MjQG5w3lf2tllv02XTVptkrvKm9bzP+M+Co4/UYzQiPjGI7ZL5Gte1ziBvNrbu1b8FdLm37FPJTeclfOVp0Iqq19FWVNTK92ZrnUrnWzABjrkdl/RYdZXFGatKR8rsU2mszKJqsxipqXVgqKh0wYyIszW5JJkva3cPorPyWHHjivYjbz/084LzaZ3ceuxPE5sQqKOmrHN/ivEbSQ1rQO2y0UxYKYIyXr/DxNrzeYiXrijcfomcYkqi+NpGcgskA+YW3Lzj7nmnsxXxTbi18d140Ox3j1O2ZzQ2RrjHMBuzC20fC4IPmubq8HBydmPL+F+O/aru7izPYQCCZhHOs8/RbNB16q83JKyr6NhCAQCCtVx/iSfMV8zqetb5bqcsI91Q9kuoSRQEQc/HMWio4X1Ep2N2Nbuc93Q0dpVuHFbLeK1ebWisbyzDR/DJsZqpKup5lhHC2vl/+Y2eW/s712c+WukxRSnn/AB/2y0rOS28tSxFgbTztaA1rYHhoGwAZDYBcXHO+SJn1hrnyZ5qa9uv8OH1lXW/LctPmf9M2m85+nErMX4lilTV8GJODnfyC7gwb7PasbfRaKYeNpq0323iHibdnJMp2MafzV8T6OGiDOFs1+R5qXkX3ABote3aq8X4+uC0Xtby9Y2/29WzTaNohd9X+CSUdLklFpJZDM9v7LhoAPbZoXN12eMuXevlHgvxU7NfFZVjWBAIJmEc6zz9Fs0HXqrzckrKvo2EIBAIKxXc5J8xXzGq61vlvx8sI6oeyKAiAQYpp3jL6qrfHIckVPI6JjRystjZzrbLuNvwvo9FhjHiiY858f/GLLftW8VpwvT3DKaKOnhp5msYLDksuT0k8raSsOT8fnyWm1pjdbXNSsbQ7mHaUQYhDiAhY9vAQHPnAF8zJLWsT1ZWbJpb4L07X8z/xt/2sjJF4nZVtTXt1/hwesq3fluWnzP8ApTpvOfp4YMf55L40v2lesv8A8UfEIr1Wr3PxXDayIBAIBBMwjnWefotmg69VebklZV9GwhAIBBV6/nJPmK+Y1XWt8t+PlhHWd7IgEAggSYJSOLnOo4nOcbucWNJJ6SVbGfJEbRaf289ivob/ANBov/Ch/wANqcfL7p/Z2K+j3psNgiDxFTsjEgtIGtDQ8bbZrb/aP1Xm2S9tu1O+yYrEeRaPD4IcxhgZFmtmytDc1t17d5S2S9+adyKxHkRmG04fwwp2CUkkyBoD7nftScl5r2d/A7Mb7pS8JCAQCAQTMI51nn6LXoOvVXm5JWVfSMIQCAQcXE8NeXF7BmDtpHSCuNrNFebzekb7tWLLG20oPEJuqKw90z+2VvEp6jiE3VFO6Z/bJxKeo4hN1RTumf2ycSnqOITdUU7pn9snEp6jiE3VFO6Z/bJxKeo4hN1RTumf2ycSnqOITdUU7pn9snEp6jiE3VFO6Z/bJxKeo4hN1RTumf2ycSnqOITdUU7pn9snEp6jiE3VFO6Z/bJxKeo4hN1RTumf2ycSnqOITdUU7pn9snEp6jiE3VFO6Z/bJxaero4Th7mu4R4tYckdPmujodHelu3fw9IUZcsTG0OuuszhB//Z&quot; style=&quot;height: 160px; margin-left: 0px; margin-right: 0px; margin-top: 0px; width: 160px;&quot; /&gt;&lt;/div&gt;
&lt;pre class=&quot;lang-cs prettyprint prettyprinted&quot; style=&quot;background-color: #eff0f1; border: 0px; color: #393318; 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; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; 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; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt;To zip a file  &lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-cs prettyprint prettyprinted&quot; style=&quot;background-color: #eff0f1; border: 0px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif;&quot;&gt; System.IO.Compression.ZipFile.CreateFromDirectory(startPath, zipPath);&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-cs prettyprint prettyprinted&quot; style=&quot;background-color: #eff0f1; border: 0px; color: #393318; 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; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; 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; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt;To UnZip a File&lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-cs prettyprint prettyprinted&quot; style=&quot;background-color: #eff0f1; border: 0px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; color: #393318; 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; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif;&quot;&gt;System.IO.Compression.ZipFile.ExtractToDirectory(startPath, extractPath);&lt;/span&gt;he reference file to ZipFile is contained in the assembly System.IO.Compression.FileSystem. &lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/3711319750118475618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2017/02/how-to-zip-and-unzip-file-from-folder.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/3711319750118475618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/3711319750118475618'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2017/02/how-to-zip-and-unzip-file-from-folder.html' title='How to Zip and Unzip a file from folder without using opensource in c#'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-3047465768285048120</id><published>2016-07-03T22:34:00.001-07:00</published><updated>2016-07-03T22:34:14.121-07:00</updated><title type='text'>What is needed to configure a new extension for use in ASP.NET?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;Got&amp;nbsp;a question a while back from a customer asking how to enable ASP.NET pages with custom file extensions, so I played around a bit to see how to do it, and here’s what I came up with:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;1. Open up the IIS 5.1 or 6 management console, and navigate to the virtual directory (or web site) that you want to configure. Right-click the folder and select Properties.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;2. On the Directory (or Web Site)&amp;nbsp;tab, click the Configuration button.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;3. On the Mappings tab, click Add, and enter aspnet_isapi.dll (the path is under Windows\Microsoft.net\Framework\&amp;lt;version&amp;gt;\…check the existing mapping for .aspx if you need the exact path) as the Executable, and your desired extension under Extension (I used&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 700;&quot;&gt;.foo&lt;/span&gt;&lt;/em&gt;). Clear the “Check that file exists” box. Click OK (if OK is greyed out, tab around in the textboxes a bit, that usually seems to clear the issue that prevents it from being active). Click OK.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;4. In your web.config file (or the main web.config for the machine, if you want this to apply to all sites), add the following HttpHandler mapping (inside the &amp;lt;system.web&amp;gt; tags:&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;lt;httpHandlers&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add path=”*.foo” verb=”*” type=”System.Web.UI.PageHandlerFactory” validate=”true” /&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;lt;/httpHandlers&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;5.&amp;nbsp;Also in your web.config, add the following Build Provider mapping (goes between the &amp;lt;compilation&amp;gt; tags, you may need to edit the default tag, since in ASP.NET 2.0 it defaults to a self-closing tag):&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;lt;buildProviders&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add extension=”.foo” type=”System.Web.Compilation.PageBuildProvider” /&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;lt;/buildProviders&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;The complete &amp;lt;compilation tag should look similar to the following:&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;lt;compilation debug=”false” strict=”false” explicit=”true”&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;buildProviders&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&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;lt;add extension=”.foo” type=”System.Web.Compilation.PageBuildProvider” /&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/buildProviders&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;lt;/compilation&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;6. Add a new web form to the page (probably easiest to stick with single file pages for this), add controls, etc., and when you’re finished with the page, rename the extension to the one you configured in IIS.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; line-height: 20px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;7. Browse with IIS to test.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/3047465768285048120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2016/07/what-is-needed-to-configure-new.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/3047465768285048120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/3047465768285048120'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2016/07/what-is-needed-to-configure-new.html' title='What is needed to configure a new extension for use in ASP.NET?'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-3096308585258401942</id><published>2016-05-30T21:53:00.000-07:00</published><updated>2016-05-30T21:53:14.329-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="connection string"/><title type='text'>Create a SQL Connection Stringusing text file</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;ol style=&quot;background-color: white; color: #2a2a2a; line-height: 16.9546px;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;On the computer that requires the connection string, create a new file with a file extension of .udl.&lt;/span&gt;&lt;ol style=&quot;list-style-type: lower-alpha;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;To perform this task, you will have to be viewing file extensions. If you are unsure how to do that, see&lt;a href=&quot;http://social.technet.microsoft.com/wiki/contents/articles/how-to-view-file-name-extensions.aspx&quot; style=&quot;color: #00749e; cursor: pointer; outline: none; text-decoration: none;&quot; title=&quot;How to view file name extensions&quot;&gt;How To: View File Name Extensions&lt;/a&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;Create a new text file and then rename the three letter file extension .txt to .udl.&lt;/span&gt;&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;For example, if you create a file named ConnectionString.txt, just rename it to ConnectionString.udl.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;The rest of these steps will assume that the file is actually named ConnectionString.udl. If you created another file name with a .udl file extension, that is fine, just substitute the appropriate name as needed in the following instructions.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;Right-click&amp;nbsp;ConnectionString.udl that you just created and then click&amp;nbsp;&lt;strong&gt;Properties&lt;/strong&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;On the&amp;nbsp;&lt;strong&gt;Connection&lt;/strong&gt;&amp;nbsp;tab, fill out the connection properties according to the server, authentication type, and database name that you need.&amp;nbsp;This is typically something you would already know, but if you do&amp;nbsp;not, you may have to contact the database administrator or go look at the database connection properties yourself. If you&amp;nbsp;need help with that, check out the&amp;nbsp;&lt;a href=&quot;http://technet.microsoft.com/en-us/library/ms190458.aspx&quot; style=&quot;color: #00749e; cursor: pointer; outline: none; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Server Management How To Pages&quot;&gt;Server Management How To Pages&amp;nbsp;&lt;img border=&quot;0&quot; src=&quot;http://social.technet.microsoft.com/wiki/cfs-file.ashx/__key/communityserver-components-sitefiles/10_5F00_external.png&quot; style=&quot;height: auto !important; max-width: 100%; overflow: hidden;&quot; title=&quot;This link is external to TechNet Wiki. It will open in a new window.&quot; /&gt;&amp;nbsp;&lt;/a&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp;Click&amp;nbsp;&lt;strong&gt;Test Connection&lt;/strong&gt;. Hopefully it will succeed. If not, check the credentials, authentication type, and any firewalls (&lt;a href=&quot;http://technet.microsoft.com/en-us/library/ms175043.aspx&quot; style=&quot;color: #00749e; cursor: pointer; outline: none; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;How To: Configure a Windows Firewall for Database Engine Access&quot;&gt;How to: Configure a Windows Firewall for Database Engine Access&amp;nbsp;&lt;img border=&quot;0&quot; src=&quot;http://social.technet.microsoft.com/wiki/cfs-file.ashx/__key/communityserver-components-sitefiles/10_5F00_external.png&quot; style=&quot;height: auto !important; max-width: 100%; overflow: hidden;&quot; title=&quot;This link is external to TechNet Wiki. It will open in a new window.&quot; /&gt;&amp;nbsp;&lt;/a&gt;) between servers.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;img alt=&quot; &quot; src=&quot;http://social.technet.microsoft.com/wiki/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-05/6560.ConnectionProperties.JPG&quot; style=&quot;border: 0px solid currentcolor; height: auto !important; max-width: 100%; overflow: hidden;&quot; /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;Click&amp;nbsp;&lt;strong&gt;OK&lt;/strong&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;Open the url file and inside you will find the connection string. For example,&amp;nbsp;&lt;strong&gt;Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;InitialCatalog=FIMCertificateManagement;Data Source=FIMDC1&lt;/strong&gt;&amp;nbsp;(as shown in the following figure).&lt;strong&gt;&lt;img alt=&quot; &quot; src=&quot;http://social.technet.microsoft.com/wiki/resized-image.ashx/__size/953x123/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-05/6087.ConnectionString.JPG&quot; style=&quot;border: 0px solid currentcolor; height: auto !important; max-width: 100%; overflow: hidden;&quot; /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;Remove&amp;nbsp;&lt;strong&gt;Provider&lt;/strong&gt;&amp;nbsp;portion of the string.&amp;nbsp;Using&amp;nbsp;the example above, the connection string for&amp;nbsp;the application would be:&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;Integrated Security=SSPI;Persist Security Info=False;InitialCatalog=FIMCertificateManagement;Data Source=FIMDC1&lt;/strong&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/3096308585258401942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2016/05/create-sql-connection-stringusing-text.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/3096308585258401942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/3096308585258401942'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2016/05/create-sql-connection-stringusing-text.html' title='Create a SQL Connection Stringusing text file'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-1901957177605724596</id><published>2016-05-29T03:41:00.003-07:00</published><updated>2016-05-29T03:41:55.549-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>Difference between non unicode and unicode in sql server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; style=&quot;background-color: white; color: black;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;strong&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Non-Unicode&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Unicode&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;strong&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;(char, varchar, text)&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;(nchar, nvarchar, ntext)&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;Stores data in fixed or variable length&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;Same as non-Unicode&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;strong&gt;char&lt;/strong&gt;: data is padded with blanks to fill the field size. For example, if a char(10) field contains 5 characters the system will pad it with 5 blanks&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;strong&gt;nchar&lt;/strong&gt;: same as char&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;strong&gt;varchar&lt;/strong&gt;: stores actual value and does not pad with blanks&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;strong&gt;nvarchar&lt;/strong&gt;: same as varchar&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;requires&amp;nbsp;&lt;strong&gt;1 byte&lt;/strong&gt;&amp;nbsp;of storage&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;requires&amp;nbsp;&lt;strong&gt;2 bytes&lt;/strong&gt;&amp;nbsp;of storage&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;strong&gt;char&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong&gt;varchar&lt;/strong&gt;: can store up to&amp;nbsp;&lt;strong&gt;8000&lt;/strong&gt;&amp;nbsp;characters&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;strong&gt;nchar&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong&gt;nvarchar&lt;/strong&gt;: can store up to&amp;nbsp;&lt;strong&gt;4000&lt;/strong&gt;&amp;nbsp;characters&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Best suited for&amp;nbsp;&lt;strong&gt;US English&lt;/strong&gt;: &quot;One problem with data types that use 1 byte to encode each character is that the data type can only represent 256 different characters. This forces multiple encoding specifications (or code pages) for different alphabets such as European alphabets, which are relatively small. It is also impossible to handle systems such as the Japanese Kanji or Korean Hangul alphabets that have thousands of characters.&quot;&lt;sup&gt;1&lt;/sup&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;Best suited for systems that need to support at least one&amp;nbsp;&lt;strong&gt;foreign language&lt;/strong&gt;: &quot;The Unicode specification defines a single encoding scheme for most characters widely used in businesses around the world. All computers consistently translate the bit patterns in Unicode data into characters using the single Unicode specification. This ensures that the same bit pattern is always converted to the same character on all computers. Data can be freely transferred from one database or computer to another without concern that the receiving system will translate the bit patterns into characters incorrectly.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/1901957177605724596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2016/05/difference-between-non-unicode-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/1901957177605724596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/1901957177605724596'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2016/05/difference-between-non-unicode-and.html' title='Difference between non unicode and unicode in sql server'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-5194711220397702513</id><published>2014-08-12T22:38:00.001-07:00</published><updated>2014-08-13T22:03:01.680-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="General"/><title type='text'>How to earn money by posting articles and Link in blogger?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;i would like to share the different ways to earn money through online.There are many ways to work through online.Here i share method those who are ready to write content articles.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;If you are good writers then don&#39;t sit idle,its time to get popularize yourself through tech world.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;img src=&quot;http://www.techtreme.com/wp-content/uploads/2012/07/earn-money-online.jpg&quot; height=&quot;318&quot; id=&quot;irc_mi&quot; style=&quot;margin-top: 121px;&quot; width=&quot;450&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;Recently i found the site by posting content and your own URl links to popularize your blog or site.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;Already they are many sites doing certain type of work &lt;a href=&quot;http://www.vdsite.com/&quot;&gt;www.vdsite.com&lt;/a&gt; is the Indian site.they ready to popularize your writing skills and you blog site.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;Thing you have to do add your article or blog site URl to earn points from this site to improve your user level.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;Site address&amp;nbsp; &lt;a href=&quot;http://www.vdsite.com/&quot;&gt;www.vdsite.com&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/5194711220397702513/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2014/08/how-to-earn-money-byposting-articles.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/5194711220397702513'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/5194711220397702513'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2014/08/how-to-earn-money-byposting-articles.html' title='How to earn money by posting articles and Link in blogger?'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-2691303983979322937</id><published>2014-07-28T03:22:00.000-07:00</published><updated>2014-07-28T03:22:24.921-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><title type='text'>Show popup window to user when leaving from page in asp.net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&amp;nbsp;Refer the below link............&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://vdsite.com/Articles/241/how-to-show-popup-window-from-user-when-leaving-from-page-in-asp.net&quot; target=&quot;_blank&quot;&gt;http://vdsite.com/Articles/241/how-to-show-popup-window-from-user-when-leaving-from-page-in-asp.net&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/2691303983979322937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2014/07/show-popup-window-to-user-when-leaving.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/2691303983979322937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/2691303983979322937'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2014/07/show-popup-window-to-user-when-leaving.html' title='Show popup window to user when leaving from page in asp.net'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-719041746430831351</id><published>2014-06-19T22:27:00.002-07:00</published><updated>2014-06-19T22:27:39.614-07:00</updated><title type='text'>How to use Google map to show multiple location in Asp.net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Refer the below inks...........&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://dl.dropboxusercontent.com/u/38590623/Project/34.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://dl.dropboxusercontent.com/u/38590623/Project/34.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;a href=&quot;http://vdsite.com/Articles/203/Using-Google-map-to-show-multiple-location-from-Database-in-Asp.net&quot;&gt;http://vdsite.com/Articles/203/Using-Google-map-to-show-multiple-location-from-Database-in-Asp.net&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/719041746430831351/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2014/06/how-to-use-google-map-to-show-multiple.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/719041746430831351'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/719041746430831351'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2014/06/how-to-use-google-map-to-show-multiple.html' title='How to use Google map to show multiple location in Asp.net'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-6532518808045127567</id><published>2014-06-19T22:25:00.004-07:00</published><updated>2014-06-19T22:25:44.288-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ajax"/><title type='text'>How AJAX works with Advantage and Disadvantages in Asp.net </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Refer the below link......&lt;br /&gt;
&lt;img alt=&quot;&quot; class=&quot;img&quot; src=&quot;https://m.ak.fbcdn.net/external.ak/safe_image.php?d=AQA2yUpqZGyj-eHq&amp;amp;w=484&amp;amp;h=253&amp;amp;url=https%3A%2F%2Fdl.dropboxusercontent.com%2Fu%2F38590623%2FProject%2Fajaxcycle.jpg&amp;amp;cfs=1&quot; /&gt; &lt;br /&gt;
&lt;a href=&quot;http://vdsite.com/Articles/211/How-Ajax-Update-panel-work-in-Asp.net-also-advantages-and-Disadvantages-of-using-Ajax?&quot;&gt;http://vdsite.com/Articles/211/How-Ajax-Update-panel-work-in-Asp.net-also-advantages-and-Disadvantages-of-using-Ajax?&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/6532518808045127567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2014/06/how-ajax-works-with-advantage-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/6532518808045127567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/6532518808045127567'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2014/06/how-ajax-works-with-advantage-and.html' title='How AJAX works with Advantage and Disadvantages in Asp.net '/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-4870134870043781423</id><published>2014-04-24T01:12:00.003-07:00</published><updated>2014-04-24T01:12:32.285-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><title type='text'>Enhance webpage performance by caching images,CSS in asp.net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi.&lt;br /&gt;
&lt;br /&gt;
Refer the below link &lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;http://vdsite.com/Articles/90/Improve-webpage-performance-by-caching-images,CSS-in-asp.net&quot; style=&quot;color: #aa1818; display: block;&quot;&gt;Improve webpage performance by caching images,CSS in asp.net&lt;/a&gt;&lt;a href=&quot;http://vdsite.com/Articles/90/Improve-webpage-performance-by-caching-images,CSS-in-asp.net&quot; style=&quot;color: #aa1818; display: block;&quot;&gt;&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;http://vdsite.com/Articles/90/Improve-webpage-performance-by-caching-images,CSS-in-asp.net&quot;&gt;http://vdsite.com/Articles/90/Improve-webpage-performance-by-caching-images,CSS-in-asp.net&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/4870134870043781423/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2014/04/enhance-webpage-performance-by-caching.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/4870134870043781423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/4870134870043781423'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2014/04/enhance-webpage-performance-by-caching.html' title='Enhance webpage performance by caching images,CSS in asp.net'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-1944319439511509437</id><published>2014-01-14T07:35:00.001-08:00</published><updated>2014-01-14T07:35:17.453-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><title type='text'>How to Redirect to non-www-url to www domain with ASP.NET?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;b&gt;Hi&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;b&gt;you have to update to this setting in web.config file........&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;pre class=&quot;lang-cs prettyprint prettyprinted&quot; style=&quot;background-color: #eeeeee; border: 0px; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;SeoUrls&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;IHttpModule&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;background-color: transparent; border: 0px; color: grey; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#region IHttpModule Members&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;

  &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Init&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;HttpApplication&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; context&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
      context&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;PreRequestHandlerExecute&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;+=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OnPreRequestHandlerExecute&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;

  &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Dispose&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;

  &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;background-color: transparent; border: 0px; color: grey; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#endregion&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;

  &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;private&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OnPreRequestHandlerExecute&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;object&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; sender&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;EventArgs&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; e&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;HttpContext&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; ctx &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;HttpApplication&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; sender&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Context&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;IHttpHandler&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; handler &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; ctx&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Handler&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;

    &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;background-color: transparent; border: 0px; color: grey; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;// Only worry about redirecting pages at this point&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;background-color: transparent; border: 0px; color: grey; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;// static files might be coming from a different domain&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;handler &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;is&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Page&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Ctx&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Url&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Host&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;!=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;WebConfigurationManager&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;AppSettings&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;FullHost&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;])&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;UriBuilder&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; uri &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;UriBuilder&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ctx&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Url&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;

        uri&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Host&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;WebConfigurationManager&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;AppSettings&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;FullHost&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;];&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;

        &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;background-color: transparent; border: 0px; color: grey; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;// Perform a permanent redirect - I&#39;ve generally implemented this as an &lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;background-color: transparent; border: 0px; color: grey; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;// extension method so I can use Response.PermanentRedirect(uri)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;background-color: transparent; border: 0px; color: grey; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;// but expanded here for obviousness:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        response&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;AddHeader&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;Location&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; uri&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        response&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;StatusCode&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;301&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        response&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;StatusDescription&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;Moved Permanently&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        response&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;End&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;b&gt;Then register the class in your web.config:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;lang-cs prettyprint prettyprinted&quot; style=&quot;background-color: #eeeeee; border: 0px; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;b&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;httpModules&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;[...]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;add type&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;[Namespace.]SeoUrls, [AssemblyName], [Version=x.x.x.x, Culture=neutral, PublicKeyToken=933d439bb833333a]&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; name&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;SeoUrls&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;httpModules&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/1944319439511509437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2014/01/how-to-redirect-to-non-www-url-to-www.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/1944319439511509437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/1944319439511509437'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2014/01/how-to-redirect-to-non-www-url-to-www.html' title='How to Redirect to non-www-url to www domain with ASP.NET?'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-7483746333283432858</id><published>2013-12-31T20:23:00.001-08:00</published><updated>2013-12-31T20:23:28.716-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="news"/><title type='text'>Wish You Happy New Year----2014</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;img src=&quot;https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-prn1/1551564_560048160743856_641381572_n.jpg&quot; /&gt;&lt;br /&gt;
&lt;span style=&quot;color: #073763; font-family: Georgia, Times New Roman, serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;Wish you Happy new Year for all my Readers..This year fulfill all your goals get bright future and enjoy your life&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #073763; font-family: Georgia, Times New Roman, serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; line-height: 18.15625px;&quot;&gt;&lt;span style=&quot;color: #073763; font-family: Georgia, Times New Roman, serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;Happy New Year to you, your friends, families, peers, and colleagues and here’s to a fantastic 2014 together!&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; line-height: 18.15625px;&quot;&gt;&lt;span style=&quot;color: #073763; font-family: Georgia, Times New Roman, serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; line-height: 18.15625px;&quot;&gt;&lt;span style=&quot;color: #073763; font-family: Georgia, Times New Roman, serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;Keep Reading ..................&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/7483746333283432858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2013/12/wish-you-happy-new-year-2014.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/7483746333283432858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/7483746333283432858'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2013/12/wish-you-happy-new-year-2014.html' title='Wish You Happy New Year----2014'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-9129010558699985746</id><published>2013-07-21T11:01:00.002-07:00</published><updated>2013-07-21T11:01:20.036-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="Interview questions"/><title type='text'>ASP.Net Interview Questions Part 6</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves/&gt;
  &lt;w:TrackFormatting/&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF/&gt;
  &lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
   &lt;w:SplitPgBreakAndParaMark/&gt;
   &lt;w:DontVertAlignCellWithSp/&gt;
   &lt;w:DontBreakConstrainedForcedTables/&gt;
   &lt;w:DontVertAlignInTxbx/&gt;
   &lt;w:Word11KerningPairs/&gt;
   &lt;w:CachedColBalance/&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val=&quot;Cambria Math&quot;/&gt;
   &lt;m:brkBin m:val=&quot;before&quot;/&gt;
   &lt;m:brkBinSub m:val=&quot;--&quot;/&gt;
   &lt;m:smallFrac m:val=&quot;off&quot;/&gt;
   &lt;m:dispDef/&gt;
   &lt;m:lMargin m:val=&quot;0&quot;/&gt;
   &lt;m:rMargin m:val=&quot;0&quot;/&gt;
   &lt;m:defJc m:val=&quot;centerGroup&quot;/&gt;
   &lt;m:wrapIndent m:val=&quot;1440&quot;/&gt;
   &lt;m:intLim m:val=&quot;subSup&quot;/&gt;
   &lt;m:naryLim m:val=&quot;undOvr&quot;/&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;br /&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState=&quot;false&quot; DefUnhideWhenUsed=&quot;true&quot;
  DefSemiHidden=&quot;true&quot; DefQFormat=&quot;false&quot; DefPriority=&quot;99&quot;
  LatentStyleCount=&quot;267&quot;&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;0&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Normal&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;heading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;35&quot; QFormat=&quot;true&quot; Name=&quot;caption&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;10&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; Name=&quot;Default Paragraph Font&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;11&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtitle&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;22&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Strong&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;20&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;59&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Table Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Placeholder Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;No Spacing&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Revision&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;34&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;List Paragraph&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;29&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;30&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;19&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;21&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;31&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;32&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;33&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Book Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;37&quot; Name=&quot;Bibliography&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; QFormat=&quot;true&quot; Name=&quot;TOC Heading&quot;/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:&quot;Table Normal&quot;;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-priority:99;
	mso-style-qformat:yes;
	mso-style-parent:&quot;&quot;;
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin-top:0in;
	mso-para-margin-right:0in;
	mso-para-margin-bottom:10.0pt;
	mso-para-margin-left:0in;
	line-height:115%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:&quot;Times New Roman&quot;;
	mso-fareast-theme-font:minor-fareast;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;background: white; color: #3333ff; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; line-height: 115%; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Globalization -&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; line-height: 115%; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br style=&quot;-webkit-text-stroke-width: 0px; orphans: auto; widows: auto; word-spacing: 0px;&quot; /&gt;
&lt;br style=&quot;-webkit-text-stroke-width: 0px; orphans: auto; widows: auto; word-spacing: 0px;&quot; /&gt;
&lt;strong&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;What is
Globalization?&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white;&quot;&gt;&lt;br /&gt;
Globalization is the process of creating an application that meets the needs of
users from multiple cultures. This process involves translating the user
interface elements of an application into multiple languages, using the correct
currency, date and time format, calendar, writing direction, sorting rules, and
other issues. Accommodating these cultural differences in an application is
called localization.&lt;br /&gt;
&lt;br /&gt;
The Microsoft .NET Framework simplifies localization tasks substantially by
making its formatting, date/time, sorting, and other classes culturally aware.
Using classes from the System.Globalization namespace, you can set the
application’s current culture, and much of the work is done automatically!&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;What are the 3 different ways to globalize web
applications?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;Detect and redirect approach :&lt;/span&gt;&lt;/strong&gt;&lt;/b&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;In this approach we create a separate
Web application for each supported culture, and then detect the user’s culture
and redirect the request to the appropriate application. This approach is best
for applications with lots of text content that requires translation and few
executable components.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;Run-time adjustment approach :&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;In this approach we create a
single Web application that detects the user’s culture and adjusts output at
run time using format specifiers and other tools. This approach is best for simple
applications that present limited amounts of content.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;Satellite assemblies approach :&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;In this approach we create a single
Web application that stores culture-dependent strings in resource files that
are compiled into satellite assemblies. At run time, detect the user’s culture
and load strings from the appropriate assembly. This approach is best for
applications that generate content at run time or that have large executable
components.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;In ASP.NET, how do you detect the user&#39;s
language preference on his/her computer?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Use the Request object’s UserLanguages property to return a list of the user’s
language preferences. The first element of the array returned by UserLanguages
is the user’s current language on his/her computer.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;What are the steps to follow to get user&#39;s
culture at run time?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;To get the user’s culture at run time, follow these steps:&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;1.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Get the Request object’s UserLanguages
property.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;2.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Use the returned value with the
CultureInfo class to create an object representing the user’s current culture.&lt;br /&gt;
&lt;br /&gt;
For example, the following code gets the user’s culture and displays the
English name and the abbreviated name of the culture in a label the first time
the page is displayed:&lt;br /&gt;
private void Page_Load(object sender, System.EventArgs e)&lt;br /&gt;
{&lt;br /&gt;
// Run the first time the page is displayed&lt;br /&gt;
if (!IsPostBack)&lt;br /&gt;
{&lt;br /&gt;
// Get the user&#39;s preferred language.&lt;br /&gt;
string sLang = Request.UserLanguages[0];&lt;br /&gt;
// Create a CultureInfo object from it.&lt;br /&gt;
CultureInfo CurrentCulture = new CultureInfo(sLang);&lt;br /&gt;
lblCulture.Text = CurrentCulture.EnglishName + &quot;: &quot; +&lt;br /&gt;
CurrentCulture.Name;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;What are the advantages of using detect and
redirect approach to globalizing web applications?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;1.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Content is maintained separately, so
this approach allows the different applications to present very different information,
if needed.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;2.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Users can be automatically directed to
sites that are likely to be geographically close, and so can better meet their
needs.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;3.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Content files (Web forms and HTML
pages, for example) can be authored in the appropriate natural language without
the complexity of including resource strings.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;What are the disadvantages of using detect and
redirect approach to globalizing web applications?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;1.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Using this approach requires that the
executable portion of the Web application be compiled and deployed separately
to each culture-specific Web site.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;2.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;This approach requires more effort to
maintain consistency and to debug problems across Web sites.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;What is the use of culture attribute of the
globalization element in web.config?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;The Web.config file’s globalization element is used to create a
culture-specific Web application. The culture attribute of the globalization
element specifies how the Web application deals with various culture-dependent
issues, such as dates, currency, and number formatting.&lt;br /&gt;
&lt;br /&gt;
Web.config globalization settings in subordinate folders override the
globalization settings in the application’s root Web.config file. You can store
content for various cultures in subfolders within your application, add
Web.config files with the globalization settings for each culture, then direct
users to the appropriate folder based on the user’s CurrentCulture.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;The text on the webform is usually written from
left to right. How do you change the writing direction to &quot;right to
left&quot;?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
The wrting direction of a webform can be changed using the HTML dir attribute
as shown below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can use the dir attribute individually in panels, text boxes, or other
controls as well. Setting the dir attribute on the body element applies
right-to-left formatting to the entire page.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;What do you mean by neutral cultures?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;Neutral cultures represent general languages, such as English or Spanish,
rather than a specific language and region. When you set the culture attribute
for a Web application in Web.config, ASP.NET assigns that culture to all the
threads running for that Web application. Threads are the basic unit to which
the server allocates processor time. ASP.NET maintains multiple threads for a
Web application within the aspnet_wp.exe worker process.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;What are advantages of setting the culture
dynamically at the thread level over creating separate Web applications for
each culture?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;1.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;All cultures share the same
application code, so the application doesn’t have to be compiled and deployed
for each culture.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;2.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;The application resides at a single
Web address, you don’t need to redirect users to other Web applications.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;3.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;The user can choose from a full array
of available cultures.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;For what type of web applications setting the
culture dynamically is best suited?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;Setting the culture dynamically is best suited for simple Web applications
that don’t contain large amounts of text that must be translated into different
languages.&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;-webkit-text-stroke-width: 0px; orphans: auto; widows: auto; word-spacing: 0px;&quot; /&gt;
&lt;br style=&quot;-webkit-text-stroke-width: 0px; orphans: auto; widows: auto; word-spacing: 0px;&quot; /&gt;
&lt;br style=&quot;-webkit-text-stroke-width: 0px; orphans: auto; widows: auto; word-spacing: 0px;&quot; /&gt;
&lt;br style=&quot;-webkit-text-stroke-width: 0px; orphans: auto; widows: auto; word-spacing: 0px;&quot; /&gt;
&lt;b&gt;&lt;span style=&quot;background: white; color: #3333ff; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; line-height: 115%; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;DataSet&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: white; color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; line-height: 115%; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; float: none; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;-&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; line-height: 115%; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br style=&quot;-webkit-text-stroke-width: 0px; orphans: auto; widows: auto; word-spacing: 0px;&quot; /&gt;
&lt;br style=&quot;-webkit-text-stroke-width: 0px; orphans: auto; widows: auto; word-spacing: 0px;&quot; /&gt;
&lt;strong&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;What is a
DataSet?&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;span style=&quot;background: white;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: white;&quot;&gt;DataSet is an in-memory cache of
data.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;In which namespace is the DataSet class
present?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
System.Data&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;Can you add more than one table to a dataset?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;Yes&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;Can you enforce constarints and relations on
tables inside a DataSet?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;Yes, the DataSet consists of a collection of DataTable objects that you can
relate to each other with DataRelation objects. You can also enforce data
integrity in the DataSet by using the UniqueConstraint and ForeignKeyConstraint
objects.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;What happens when you invoke AcceptChanges()
method on a DataSet?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Invoking AcceptChanges() method on the DataSet causes AcceptChanges() method to
be called on each table within the DataSet.&lt;br /&gt;
&lt;br /&gt;
Both the DataRow and DataTable classes also have AcceptChanges() methods.
Calling AcceptChanges() at the DataTable level causes the AcceptChanges method
for each DataRow to be called.&lt;br /&gt;
&lt;br /&gt;
When you call AcceptChanges on the DataSet, any DataRow objects still in
edit-mode end their edits successfully. The RowState property of each DataRow also
changes. Added and Modified rows become Unchanged, and Deleted rows are
removed.&lt;br /&gt;
&lt;br /&gt;
If the DataSet contains ForeignKeyConstraint objects, invoking the
AcceptChanges method also causes the AcceptRejectRule to be enforced.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;Is there a way to clear all the rows from all
the tables in a DataSet at once?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;Yes, use the DataSet.Clear() method to clear all the rows from all the
tables in a DataSet at once.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;What is the difference between DataSet.Copy()
and DataSet.Clone()?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
DataSet.Clone() copies the structure of the DataSet, including all DataTable
schemas, relations, and constraints. Does not copy any data.&lt;br /&gt;
&lt;br /&gt;
DataSet.Copy() copies both the structure and data.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;How do you get a copy of the DataSet containing
all changes made to it since it was last loaded?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Use DataSet.GetChanges() method&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;What is the use of DataSet.HasChanges() Method?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
DataSet.HasChanges method returns a boolean true if there are any changes made
to the DataSet, including new, deleted, or modified rows. This method can be
used to update a DataSource only if there are any changes.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;How do you roll back all the changes made to a
DataSet since it was created?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;Invoke
the DataSet.RejectChanges() method to undo or roll back all the changes made to
a DataSet since it was created.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;What happnes when you invoke RejectChanges
method, on a DataSet that contains 3 tables in it?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
RejectChanges() method will be automatically invoked on all the 3 tables in the
dataset and any changes that were done will be rolled back for all the 3
tables.&lt;br /&gt;
&lt;br /&gt;
When the DataTable.RejectChanges method is called, any rows that are still in
edit-mode cancel their edits. New rows are removed. Modified and deleted rows
return back to their original state. The DataRowState for all the modified and
deleted rows will be flipped back to unchanged.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: major-latin;&quot;&gt;What is the DataSet.CaseSensitive property used
for?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
When you set the CaseSensitive property of a DataSet to true, string
comparisons for all the DataTables within dataset will be case sensitive. By
default the CaseSensitive property is false&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; line-height: 115%; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/9129010558699985746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2013/07/aspnet-interview-questions-part-6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/9129010558699985746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/9129010558699985746'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2013/07/aspnet-interview-questions-part-6.html' title='ASP.Net Interview Questions Part 6'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-6398494988535839877</id><published>2013-07-21T10:58:00.001-07:00</published><updated>2013-07-21T10:58:02.630-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="Interview questions"/><title type='text'>ASP.Net Interview Questions Part 5</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves/&gt;
  &lt;w:TrackFormatting/&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF/&gt;
  &lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
   &lt;w:SplitPgBreakAndParaMark/&gt;
   &lt;w:DontVertAlignCellWithSp/&gt;
   &lt;w:DontBreakConstrainedForcedTables/&gt;
   &lt;w:DontVertAlignInTxbx/&gt;
   &lt;w:Word11KerningPairs/&gt;
   &lt;w:CachedColBalance/&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val=&quot;Cambria Math&quot;/&gt;
   &lt;m:brkBin m:val=&quot;before&quot;/&gt;
   &lt;m:brkBinSub m:val=&quot;--&quot;/&gt;
   &lt;m:smallFrac m:val=&quot;off&quot;/&gt;
   &lt;m:dispDef/&gt;
   &lt;m:lMargin m:val=&quot;0&quot;/&gt;
   &lt;m:rMargin m:val=&quot;0&quot;/&gt;
   &lt;m:defJc m:val=&quot;centerGroup&quot;/&gt;
   &lt;m:wrapIndent m:val=&quot;1440&quot;/&gt;
   &lt;m:intLim m:val=&quot;subSup&quot;/&gt;
   &lt;m:naryLim m:val=&quot;undOvr&quot;/&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;br /&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState=&quot;false&quot; DefUnhideWhenUsed=&quot;true&quot;
  DefSemiHidden=&quot;true&quot; DefQFormat=&quot;false&quot; DefPriority=&quot;99&quot;
  LatentStyleCount=&quot;267&quot;&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;0&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Normal&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;heading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;35&quot; QFormat=&quot;true&quot; Name=&quot;caption&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;10&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; Name=&quot;Default Paragraph Font&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;11&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtitle&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;22&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Strong&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;20&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;59&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Table Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Placeholder Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;No Spacing&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Revision&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;34&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;List Paragraph&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;29&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;30&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;19&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;21&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;31&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;32&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;33&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Book Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;37&quot; Name=&quot;Bibliography&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; QFormat=&quot;true&quot; Name=&quot;TOC Heading&quot;/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:&quot;Table Normal&quot;;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-priority:99;
	mso-style-qformat:yes;
	mso-style-parent:&quot;&quot;;
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin-top:0in;
	mso-para-margin-right:0in;
	mso-para-margin-bottom:10.0pt;
	mso-para-margin-left:0in;
	line-height:115%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:&quot;Times New Roman&quot;;
	mso-fareast-theme-font:minor-fareast;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;br /&gt;
&lt;div style=&quot;background: white; line-height: 15.6pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #3333ff; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Exception Handling-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are Exceptions?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
Exceptions are unusual occurrences that happen within the logic of an
application.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are the 3 approaches to handle
exceptions in a Web application?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;1.&lt;/span&gt;&lt;/strong&gt;&lt;/b&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Use exception-handling structures to
deal with exceptions within the scope of a procedure. This technique is called
structured exception handling (SEH) in the Visual Studio .NET documentation.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;try&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;catch&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;finally&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;2.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Use error events to deal with
exceptions within the scope of an object.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Page_Error&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Global_Error&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Application_Error&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;3.&lt;/span&gt;&lt;/strong&gt;&lt;/b&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Use custom error pages to display
informational messages for unhandled exceptions within the scope of a Web
application.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Where will the control flow if an exception
occurs inside a try block?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;If a statement in a try block causes an exception, control flow passes
immediately to the next catch statement. When control flow passes to a catch
block, the statements contained in the catch block are processed to correct the
error or otherwise handle the exception.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Will the finally block gets executed, if an
exception occurs?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Yes, a finally block will always be executed irrespective of whether an
exception has occured or not.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is the main use of a finally block in
exception handling?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;Finally block is mainly used to free resources used within the try block.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you raise an exception?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Use the throw keyword to raise an exception. Use this keyword within your
exception-handling structure to immediately pass control flow to the catch
statement.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Will the following code block compile?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;try&lt;br /&gt;
{&lt;br /&gt;
throw new System.IO.FileNotFoundException();&lt;br /&gt;
}&lt;br /&gt;
catch (Exception E)&lt;br /&gt;
{&lt;br /&gt;
Response.Write(E.Message);&lt;br /&gt;
}&lt;br /&gt;
catch (System.IO.FileNotFoundException FNFE)&lt;br /&gt;
{&lt;br /&gt;
Response.Write(FNFE.Message);&lt;br /&gt;
}&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;No, a compile time error&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;A previous catch clause already
catches all exceptions of this or of a super type (&#39;System.Exception&#39;).&lt;br /&gt;
&lt;br /&gt;
Catch blocks are evaluated in the order in which they appear in code. The
exception declaration of each catch block determines which type of exception
the catch block handles. Always order catch blocks from most specific to most
general. So, in the preceding sample, FileNotFoundException should be placed
before the general Exception catch block.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is ApplicationException class used for?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;If you are creating a large application or creating components that are
used by other applications, you might want to define your own exception classes
based on the ApplicationException class. For example, the following code
defines a class for the UserLoggedOnException:&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;public class
UserLoggedOnException : System.ApplicationException&lt;br /&gt;
{&lt;br /&gt;
// Exception constructor (overloaded).&lt;br /&gt;
public UserLoggedOnException()&lt;br /&gt;
: this(&quot;The user is already logged on to the server&quot;, null)&lt;br /&gt;
{&lt;br /&gt;
}&lt;br /&gt;
public UserLoggedOnException(string message)&lt;br /&gt;
: this(message, null)&lt;br /&gt;
{&lt;br /&gt;
}&lt;br /&gt;
public UserLoggedOnException(string message, Exception inner)&lt;br /&gt;
: base(message, inner)&lt;br /&gt;
{&lt;br /&gt;
}&lt;br /&gt;
}&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
The preceding UserLoggedOnException class inherits its properties and methods
from the ApplicationException base class. The new exception class provides only
its own constructor to set the default message to display. This is a standard
practice.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are Error Events?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Another way to handle exceptions is through the Web objects’ built-in error
events. When an unhandled exception occurs in a Web application, ASP.NET fires
the error events shown below.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Page_Error :&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Occurs when an unhandled exception
occurs on the page. This event procedure resides in the Web form.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Global_Error :&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Occurs when an unhandled exception
occurs in the application. This event procedure resides in the Global.asax
file.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Application_Error :&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Occurs when an unhandled exception
occurs in the application. This event procedure resides in the Global.asax
file.&lt;br /&gt;
&lt;br /&gt;
Error events let you handle exceptions for an entire object in a single,
centralized location—the error event procedure. This is different from using
exception-handling structures, in which exceptions are handled within the
procedure where they occurred. You can use error events in the following ways:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;As a substitute for exception-handling
structures :&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;Because error events occur outside the scope of the procedure in which the
error occurred, you have less information about the steps leading up to the
exception and therefore less ability to correct the exception condition for the
user. However, using exception-handling events is fine for tasks where you
might not be able to correct the exception in code.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;As an adjunct to exception-handling
structures :&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
Error events can provide a centralized “backstop” against exceptions that were
not foreseen or handled elsewhere. Using the two exception-handling techniques
together lets you catch all exceptions before the user sees them, display a
reasonable message, and even record the exception in a log as part of an
ongoing effort to improve your application.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Give an example to show how error events can
be used to handle exceptions?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;To handle an exception using error events, follow these steps:&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;1.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;In the Page_Error event procedure, get
the exception that occurred using the GetLastError method.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;2.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Do something with the exception, such
as display a message to the user, take steps to correct the problem, or write
to an error log.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;3.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Clear the exception using the
ClearError method.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;4.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Redisplay the page. Web form
processing stops immediately when an exception occurs, so server controls and
other items on the page might not be displayed after the exception is cleared.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;5.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Add the following code to Page_Error
event procedure on the web page.&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;private void Page_Error(object
sender, System.EventArgs e)&lt;br /&gt;
{&lt;br /&gt;
// Get the error.&lt;br /&gt;
Exception ex = Server.GetLastError();&lt;br /&gt;
// Store the message in a session object.&lt;br /&gt;
Session[&quot;Error&quot;] = ex.Message;&lt;br /&gt;
// Clear the error message.&lt;br /&gt;
Server.ClearError();&lt;br /&gt;
// Redisplay this page.&lt;br /&gt;
Server.Transfer(&quot;ErrorEvents.aspx&quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;The preceding code stores the
exception message as a Session state variable before clearing the exception so
that the message can be displayed when the page is reloaded by the Transfer
method. The following code displays the saved exception message when the page
is redisplayed:&lt;br /&gt;
&lt;br /&gt;
Add the following code to Page_Load event procedure on the web page.&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;private void Page_Load(object
sender, System.EventArgs e)&lt;br /&gt;
{&lt;br /&gt;
// Display error. if any.&lt;br /&gt;
if (Session[&quot;Error&quot;] != null)&lt;br /&gt;
{&lt;br /&gt;
litError.Text = &quot;The following error occurred:&lt;br /&gt;
&quot; +&lt;br /&gt;
Session[&quot;Error&quot;].ToString();&lt;br /&gt;
// Clear the Session state variable.&lt;br /&gt;
Session[&quot;Error&quot;] = null;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Can you have a try block without a catch or a
finally block?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
No, you cannot have a try block without a catch or a finally block. A try block
cannot exist in isolation. A try block should be followed by either a catch
block or a finally block or both.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Is the following code legal?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;try&lt;br /&gt;
{&lt;br /&gt;
Response.Write(&quot;Try block executed&quot;);&lt;br /&gt;
}&lt;br /&gt;
finally&lt;br /&gt;
{&lt;br /&gt;
Response.Write(&quot;Finally block executed&quot;);&lt;br /&gt;
}&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Yes, it&#39;s legal. A try statement does not have to have a catch statement if it
has a finally statement.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is wrong with using the following type
of exception handler?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;catch(Exception E)&lt;br /&gt;
{&lt;br /&gt;
//Some Code&lt;br /&gt;
}&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;This handler catches exceptions
of type Exception, therefore, it catches any exception. This can be a poor
implementation because you are losing valuable information about the type of
exception being thrown and making your code less efficient. As a result, your
program may be forced to determine the type of exception before it can decide
on the best recovery strategy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Will the second catch block handle the
exception thrown by the first catch block?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;try&lt;br /&gt;
{&lt;br /&gt;
throw new System.IO.FileNotFoundException();&lt;br /&gt;
}&lt;br /&gt;
catch (System.IO.FileNotFoundException FNFE)&lt;br /&gt;
{&lt;br /&gt;
Response.Write(FNFE.Message);&lt;br /&gt;
throw new Exception();&lt;br /&gt;
}&lt;br /&gt;
catch(Exception E)&lt;br /&gt;
{&lt;br /&gt;
Response.Write(E.Message);&lt;br /&gt;
}&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
No. For a catch block to handle the exception, the statement that raised the
exception must be inside a try block.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What will happen to the exception raised by
the code in the following Button1_Click event procedure?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;protected void
Button1_Click(object sender, EventArgs e)&lt;br /&gt;
{&lt;br /&gt;
throw new Exception();&lt;br /&gt;
try&lt;br /&gt;
{&lt;br /&gt;
Response.Write(&quot;Hello&quot;);&lt;br /&gt;
}&lt;br /&gt;
catch (Exception E)&lt;br /&gt;
{&lt;br /&gt;
Response.Write(E.Message);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
The exception will not be handled by the catch block because the statement that
raised the exception must be inside a try block.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #3333ff; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Managed and Unmanaged Code-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is Managed Code and
Unmanaged Code?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
Microsoft ASP.NET Web applications run under the control of the common language
runtime (CLR). The CLR controls how the application’s assembly executes,
allocates, and recovers memory; therefore, ASP.NET applications are said to use
managed code. In contrast, most other Windows executables use unmanaged code
because the executable itself determines how memory is used.&lt;br /&gt;
&lt;br /&gt;
Examples of unmanaged code include the Microsoft Win32 API, legacy DLLs and
EXEs created for Windows applications prior to the Microsoft .NET Framework,
and COM objects.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is Platform Invoke or pinvoke?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;The process of executing native code from within a .NET assembly is called
platform invoke, or pinvoke for short. You use platform invoke to call the
Win32 API directly, to access existing (legacy) DLLs your company uses, or to
access procedures compiled to native code for performance reasons.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are the steps to follow to use Platform
Invoke?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
To use platform invoke, follow the following steps:&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;1.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Import the
System.Runtime.InteropServices namespace.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;2.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Declare the unmanaged procedure using
the DllImport attribute or the Declare statement.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;3.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Map the data types of the procedures
parameters to the equivalent .NET types.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;4.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Call the unmanaged procedure and test
its return value for success.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;5.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;If the procedure did not succeed,
retrieve and handle the exception code using the Marshal object’s
GetLastWin32Error method.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are the limitations of using Unmanaged
Code from within a .NET assembly?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Performance :&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;Although native-code DLLs can perform
some operations more quickly than equivalent code managed by the CLR, these
benefits might be offset by the time it takes to marshal the data to pass
between the unmanaged procedure and the .NET assembly.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Type safety :&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Unlike .NET assemblies, unmanaged
procedures might not be type-safe. This can affect the reliability of your .NET
application. In general, reliability is a paramount concern with ASP.NET Web
applications.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Code security :&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Unmanaged procedures do not use the
.NET Framework’s model for code security.&lt;br /&gt;
Versioning:Unmanaged code does not support .NET versioning; therefore,
assemblies that call unmanaged procedures might lose the benefit of being able
to coexist with other versions of the same assembly.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are COM objects?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;COM objects are another type of unmanaged code that you can use from .NET
assemblies. Because COM is widely used, Visual Studio includes built-in tools
for importing and using COM objects within .NET assemblies. Visual Studio also
includes the option of automatically registering .NET class library assemblies
for use from COM.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What happens when you add a
reference to a COM object from with in a dot net application?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;When you add a
reference to a COM object, Visual Studio automatically generates an interop
assembly for the object and places it in the project’s /bin folder. The interop
assembly is created from the COM object’s type information and contains the
metadata that the CLR uses to call the unmanaged code in the COM object. You
can then use COM objects from within .NET code the same way that you use .NET
classes.&lt;br /&gt;
&lt;br /&gt;
You can view this interop assembly using the Microsoft Intermediate Language
Disassembler (Ildasm.exe) included in the .NET Framework.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Can we create a .NET object for use from COM?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Yes, Visual Studio can automatically generate type library information and
register a .NET class library assembly for use from COM. These automatic tools
do not work for ASP.NET Web applications, so you must isolate the code you want
to use from COM in its own Class Library project.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you hide Public .NET Classes and other
public members from COM?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;In some cases, you might want to hide selected .NET classes from COM but
keep them public for use from other .NET assemblies. The ComVisible attribute
allows you to select which public .NET classes and members are included in the
generated type library. This attribute applies hierarchically for the assembly,
class, and member levels.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you handle exceptions between .NET and
COM?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
.NET handles errors through exception classes. COM handles errors through
32-bit data types called HRESULTs. All of the .NET exception classes include
HResult properties that map to COM HRESULT codes.&lt;br /&gt;
&lt;br /&gt;
If an exception occurs in a .NET object, the exception is automatically mapped
to the appropriate HRESULT and returned to COM. Similarly, if an exception
occurs in a COM object, the COM HRESULT is mapped to the appropriate exception
class, which is returned to .NET, where it can be handled just like any other
exception.&lt;br /&gt;
&lt;br /&gt;
If you are creating your own .NET exception classes for use with COM, be sure
to set the class’s HResult property so that the exception can be handled within
COM.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are the technical limitations of COM
Interop?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;The .NET Framework was developed to address the limitations of COM. Because
of this evolution, there are limits to the .NET features that you can use from
COM. The following list describes these limits:&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Static members :&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;COM requires objects to be
created before use, so it does not support .NET Static members.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;New members :&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;COM flattens the inheritance tree of
.NET objects, so members in a derived class that hides members inherited from a
base class are not callable.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Constructors with parameters :&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;COM can’t pass parameters to an
object’s constructor.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are the practical limitations of using
COM objects?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
The following are the practical limitations of using COM objects from .NET:&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Shared solutions might not allow COM objects
:&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;ASP.NET host
service providers that use nondedicated servers can limit or prohibit the
installation of COM objects on their servers.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;COM objects are prone to memory leaks :&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;COM uses reference counting to
determine when to destroy objects and free memory. It is possible for this
reference count to become incorrect, leaving objects in memory indefinitely.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Type libraries might be inaccurate :&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Because COM separates the object’s
description from its implementation, it’s possible for this description to not
accurately reflect the object. In this case, the generated interop assembly
will also include those inaccuracies.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;COM is unmanaged code :&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;All the limitations of unmanaged code
apply to COM objects as well.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #3333ff; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Tracing-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is an exception log?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
An exception log is a list of handled exceptions that occur while your
application is running. Reviewing the exception log periodically helps you
verify that exceptions are being handled correctly, are not occurring too
frequently, and are not preventing users from accomplishing tasks with your
application.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is Tracing and what are the adavantages
of using tracing to log exceptions?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;Tracing is a technique for recording events, such as exceptions, in an
application. There have always been ways to record errors in an application -
usually by opening a file and writing error messages to it. But tracing offers
the following significant advantages:&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Standardization:&lt;/span&gt;&lt;/strong&gt;Building
tracing into the .NET Framework ensures that programming techniques are the
same across all the applications you develop with the .NET Framework.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Built-in Web support:&lt;/span&gt;&lt;/strong&gt;ASP.NET
extends the .NET Framework tools by including information related to the
performance and behavior of Web requests.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Configuration:&lt;/span&gt;&lt;/strong&gt;You can turn
tracing on and off using settings in your application’s configuration file. You
don’t have to recompile your application to enable or disable tracing.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Performance:&lt;/span&gt;&lt;/strong&gt;While disabled,
tracing statements do not affect application performance.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you turn tracing on and off for an ASP.NET
web application?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Tracing can be turned on or off for an entire Web application or for an
individual page in the application:&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;1.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;To turn tracing on for an entire
application, in the application’s Web.config file, set the trace element’s
Enabled attribute to True.&lt;br /&gt;
Or&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;2.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;To turn tracing on for a single
page, set the DOCUMENT object’s Trace property to True in the Visual Studio
.NET Properties window. This sets the @ Page directive’s Trace attribute to
True in the Web form’s HTML.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Where is the trace output displayed by
default?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;By default, trace output is displayed at the end of each Web page.&lt;br /&gt;
&lt;br /&gt;
While this is fine for debugging purposes, you’ll generally want to write trace
output to a log file when you start testing your completed application. To
write trace messages to a log file for an entire application, in the
application’s Web.config file, set the trace element’s PageOutput attribute to
False. ASP.NET then writes trace output to the Trace.axd file in your
application’s root folder.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you specify, how many page requets
should be written to the trace log?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
The element&#39;s RequestLimit attribute can be used to specify how many page
requests to write to the trace log. For example, the following line from a
Web.config file turns on tracing for the application and writes the first 10
requests to the Trace.axd file:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you write trace messages to a log file
for only selected pages in an application?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;To write trace messages to a log file for only selected pages in an
application, follow these steps:&lt;br /&gt;
In the application’s Web.config file, set the trace element’s Enabled attribute
to True and PageOutput attribute to False.&lt;br /&gt;
For each Web page you want to exclude from tracing, set the @ Page directive’s
Trace attribute to False.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is the difference between Trace.Write()
and Trace.Warn() methods of a trace object?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
The Trace object provides the Write and Warn methods to allow you to write
messages to a request’s trace information. The two methods are identical with
one difference: messages written with Trace.Write are displayed in black,
whereas messages written with Trace.Warn are displayed in red.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you programatically check if tracing
is enabled?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;The Trace object’s IsEnabled property can be used to programatically check
if tracing is enabled.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you prevent from trace output being
written at the bottom of the web page?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
You can prevent from trace output being written at the bottom of the web page
by setting the trace element’s PageOutput attribute to False in the Web.config
file.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is the name of the file to which trace
log is written?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;Trace.axd&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Can you view Trace.axd from a remote machine?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;No, by default, you can view Trace.axd only from the local server running
the application. If you want to view the trace log from a remote machine, set the
trace element’s LocalOnly attribute to False in the Web.config file&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #3333ff; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Session State and Application State-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; margin-bottom: 12.0pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is a Session?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;A Session is a
unique instance of the browser. A single user can have multiple instances of
the browser running on his or her machine. If each instance visits your Web
application, each instance has a unique session.A session starts when a user
accesses a page on a Web site for the first time, at which time they are
assigned a unique session ID. The server stores the user&#39;s session ID in the
Session.SessionID property.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is the default session timeout period?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
20 minutes.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Where do you generally specify the Session
Timeout?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;You specify the Session Timeout setting in the web.config file.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Can you specify Session Timeout in a code
behind file?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Yes, can specify the Session.Timeout property as shown below in a code behind
file.&lt;br /&gt;
Session.Timeout = 10;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you end a user session?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;You can call the Session.Abandon() method to end a user session. If a user
then tries to access a page the server will assign them a new session ID and it
will clear all the previous session variables. You&#39;ll typically use
Session.Abandon() on log-out pages.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What type of data can you store in
Application State and Session State variables?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Application State and Session State variables are used to store data that you
want to keep for the lifetime of an application or for the lifetime of a
session. You can store any type of data in the Application or Session state,
including objects.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Are Application State or Session State
variables type safe?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;No, Application and Session state variables are created on the fly, without
variable name or type checking.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Do maintaining Session state affects
performance?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Yes&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Can you turn of Session state?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;Yes, Session state can be turned off at the application and page levels.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Are Application state variables available
throughout the current process?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Yes, Application state variables are available throughout the current process,
but not across processes. If an application is scaled to run on multiple
servers or on multiple processors within a server, each process has its own
Application state.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you disable Session state for a Web
form?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;To turn Session state off for a Web form set EnableSessionState property of
the Page to False.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you turn Session state off for an
entire web application?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
In the Web.config file, set the sessionstate tag to False.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are Application State variables?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Application State variables are global variables that are available from
anywhere in the application. All Sessions can access Application State
variables.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How to add and remove data to Application
State Variables?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
//Code to add data to Application State&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Application.Add(&quot;AppName&quot;,
&quot;Sample&quot;);&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
//Code to remove data from Application State&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Application.Remove(&quot;AppName&quot;);&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you remove all Application State
Variables data?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
//Code to remove all Application State Variables data&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Application.RemoveAll();&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #3333ff; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Transaction-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is a transaction?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
A transaction is a group of commands that change the data stored in a database.
The transaction, which is treated as a single unit, assures that the commands
are handled in an all-or-nothing fashion. if one of the commands fails, all of
the commands fail, and any data that was written to the database by the
commands is backed out. In this way, transactions maintain the integrity of
data in a database. ADO.NET lets you group database operations into
transactions.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is the main purpose of database
transactions?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;The main purpose of database transactions is to maintain the integrity of
data in a database.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you determine which SQL commands are
part of a transaction?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
You can determine what database commands belong in a transaction by using the
ACID test. Commands must be atomic, consistent, isolated, and durable.&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
Commands belong in a transaction if they are:&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Atomic:&lt;/span&gt;&lt;/strong&gt;In other words, they
make up a single unit of work. For example, if a customer moves, you want your
data entry operator to change all of the customer’s address fields as a single
unit, rather than changing street, then city, then state, and so on.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Consistent:&lt;/span&gt;&lt;/strong&gt;All the
relationships between data in a database are maintained correctly. For example,
if customer information uses a tax rate from a state tax table, the state
entered for the customer must exist in the state tax table.&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Isolated:&lt;/span&gt;&lt;/strong&gt;Changes
made by other clients can’t affect the current changes. For example, if two
data entry operators try to make a change to the same customer at the same
time, one of two things occurs: either one operator’s changes are accepted and
the other is notified that the changes weren’t made, or both operators are
notified that their changes were not made. In either case, the customer data is
not left in an indeterminate state.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Durable:&lt;/span&gt;&lt;/strong&gt;Once a change is
made, it is permanent. If a system error or power failure occurs before a set
of commands is complete, those commands are undone and the data is restored to
its original state once the system begins running again.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Why is transaction processing very important
for web applications?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;Transaction processing is very important for Web applications that use data
access, because Web applications are distributed among many different clients.
In a Web application, databases are a shared resource, and having many
different clients distributed over a wide area can present the below key
problems.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Contention for resources:&lt;/span&gt;&lt;/strong&gt;Several
clients might try to change the same record at the same time. This problem gets
worse the more clients you have.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Unexpected failures:&lt;/span&gt;&lt;/strong&gt;The
Internet is not the most reliable network around, even if your Web application
and Web server are 100 percent reliable. Clients can be unexpectedly
disconnected by their service providers, by their modems, or by power failures.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Web application life cycle:&lt;/span&gt;&lt;/strong&gt;Web
applications don’t follow the same life cycle as Windows applications—Web forms
live for only an instant, and a client can leave your application at any point
by simply typing a new address in his or her browser.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;List the steps in order to process a
transaction?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;1.Begin a transaction.&lt;br /&gt;
2.Process database commands.&lt;br /&gt;
3.Check for errors.&lt;br /&gt;
4.If errors occurred, restore the database to its state at the beginning of the
transaction. If no errors occurred, commit the transaction to the database.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Explain how a DataSet provides transaction
processing?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
DataSet provide transaction processing through the RejectChanges and Update
methods. DataSet also provide an AcceptChanges method that resets the state of
records in a data set to Unchanged. Data sets provide implicit transaction
processing, because changes to a data set are not made in the database until
you invoke the Update method on the data adapter object. This lets you perform
a set of commands on the data and then choose a point at which to make the
changes permanent in the database.&lt;br /&gt;
&lt;br /&gt;
If an error occurs during the Update method, none of the changes from the data
set is made in the database. At that point, you can either attempt to correct
the error and try the Update method again or undo the changes pending in the
data set using the data set’s RejectChanges method.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Give an example to show how DataSets provide
transaction processing?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Let us assume we have a DataGrid that displays employee information. Every row
also has a delete button, which when you click will delete that row. On this
page we also have a Restore and Commit buttons. When you click the Restore
button you should be able to restore the data to its previous state. When you
click the Commit button you should be able to update the database with the
deletions made in the DataSet.&lt;br /&gt;
&lt;br /&gt;
The code for Commit and Restore buttons is shown below.&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;private void
butRestore_Click(object sender, System.EventArgs e)&lt;br /&gt;
{&lt;br /&gt;
// Restore the data set to its original state.&lt;br /&gt;
dsContacts.RejectChanges();&lt;br /&gt;
// Refresh the data grid.&lt;br /&gt;
grdContacts.DataBind();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
private void butCommit_Click(object sender, System.EventArgs e)&lt;br /&gt;
{&lt;br /&gt;
int intRows;&lt;br /&gt;
// Update the database from the data set.&lt;br /&gt;
intRows = adptContacts.Update(dsContacts);&lt;br /&gt;
// Save changes to state variable.&lt;br /&gt;
Session[&quot;dsContacts&quot;] = dsContacts;&lt;br /&gt;
// Refresh the data grid.&lt;br /&gt;
grdContacts.DataBind();&lt;br /&gt;
}&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;The RejectChanges method in the
preceding butRestore_Click event procedure returns the data set to its state
before the row was deleted. The data set’s AcceptChanges method is the inverse
of RejectChanges—it resets the DataRowState property for all the changed rows
in a data set to Unchanged and removes any deleted rows.&lt;br /&gt;
&lt;br /&gt;
The AcceptChanges method prevents the Update method from making those changes
in the database, however, because Update uses the rows’ DataRowState property
to determine which rows to modify in the database. For this reason, the
AcceptChanges method is useful only when you do not intend to update a database
from the data set.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are the 3 types of transaction objects
available in ADO.NET?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;As we have 3 types of database connections in ADO.NET, there are also 3
types of transaction objects:&lt;br /&gt;
SqlTransaction&lt;br /&gt;
OracleTransaction&lt;br /&gt;
OleDbTransaction&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are the steps involved in using a
transaction object in ADO.NET?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
1.Open a database connection.&lt;br /&gt;
2.Create the transaction object using the database connection object’s
BeginTransaction method.&lt;br /&gt;
3.Create command objects to track with this transaction, assigning the
Transaction property of each command object to the name of the transaction
object created in step 2.&lt;br /&gt;
4.Execute the commands. Because the purpose of transaction processing is to
detect and correct errors before data is written to the database, this is
usually done as part of an error-handling structure.&lt;br /&gt;
5.Commit the changes to the database or restore the database state, depending
on the success of the commands.&lt;br /&gt;
Close the database connection.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What property of a transaction object
determines how concurrent changes to a database are handled?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;IsolationLevel property of the transaction object is used to determine how
concurrent changes to a database are handled.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are different isolation levels of a
transaction object in ADO.NET?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;ReadUncommitted:&lt;/span&gt;&lt;/strong&gt;&lt;/b&gt;Does not
lock the records being read. This means that an uncommitted change can be read
and then rolled back by another client, resulting in a local copy of a record
that is not consistent with what is stored in the database. This is called a
dirty read because the data is inconsistent.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Chaos:&lt;/span&gt;&lt;/strong&gt;Behaves the same way as
ReadUncommitted, but checks the isolation level of other pending transactions
during a write operation so that transactions with more restrictive isolation
levels are not overwritten.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;ReadCommitted:&lt;/span&gt;&lt;/strong&gt;Locks the
records being read and immediately frees the lock as soon as the records have
been read. This prevents any changes from being read before they are committed,
but it does not prevent records from being added, deleted, or changed by other
clients during the transaction. This is the default isolation level.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;RepeatableRead:&lt;/span&gt;&lt;/strong&gt;Locks the
records being read and keeps the lock until the transaction completes. This
ensures that the data being read does not change during the transaction.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Serializable:&lt;/span&gt;&lt;/strong&gt;Locks the entire
data set being read and keeps the lock until the transaction completes. This
ensures that the data and its order within the database do not change during
the transaction.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is the default isolation level in a
transaction?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
ReadCommitted&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is a Save Point in a transaction in
ADO.NET?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
SqlConnection object provide one transaction capability that is unavailable for
OLE database connections: the ability to create save points within a
transaction. Save points let you restore the database state to a specific
position within the current transaction. To set a save point within a SQL
transaction, use the Save method as shown below.&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;TransactionObject.Save(&quot;FirstStep&quot;);&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you restore a SQL transaction to a
specific save point?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
To restore a SQL transaction to a save point, specify the name of the save
point in the Rollback method as shown below.&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;TransactionObject.Rollback(&quot;FirstStep&quot;);&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #3333ff; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;User Controls-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are ASP.NET Custom
controls?&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
Custom controls extend the tools available to Web developers. Using custom
controls, you can encapsulate key aspects of the visual interface and program
logic that you want to reuse throughout your application, or throughout your
organization.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are the 3 types of custom controls in
ASP.NET?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
Microsoft Visual Studio .NET provides three types of custom control for use on
Web forms.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;1. Web user controls&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
These combine existing server and HTML controls by using the Visual Studio .NET
Designer to create functional units that encapsulate some aspect of the user
interface. User controls reside in content files, which must be included in the
project in which the controls are used.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;2. Composite custom controls&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
These create new controls from existing server and HTML controls. Although
similar to user controls, composite controls are created in code rather than
visually, and therefore they can be compiled into an assembly (.dll), which can
be shared between multiple applications and used from the Toolbox in Visual
Studio .NET.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;3. Rendered custom controls&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
These create entirely new controls by rendering HTML directly rather than using
composition. These controls are compiled and can be used from the Toolbox, just
like composite controls, but you must write extra code to handle tasks that are
performed automatically in composite controls.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are the limitations of user controls in
ASP.NET?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
As the user controls are not compiled into assemblies, they have the following
limitations:&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;1.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;A copy of the control must exist in
each Web application project in which the control is used.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;2.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;User controls can’t be loaded in the
Visual Studio .NET Toolbox; instead, you must create them by dragging the
control from Solution Explorer to the Web form.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;3.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;User control code is initialized after
the Web form loads, which means that user control property values are not
updated until after the Web form’s Load event.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are the steps to follow for creating and
using a user control in a Web application?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;1.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Add a Web user control page (.ascx) to
your project.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;2.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Draw the visual interface of the
control in the designer.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;3.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Write code to create the control’s
properties, methods, and events.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;4.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Use the control on a Web form by
dragging it from Solution Explorer to the Web form on which you want to include
it.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;5.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Use the control from a Web form’s code
by declaring the control at the module level and then using the control’s
methods, properties, and events as needed within the Web form.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you identify user controls?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
User controls are identified by their .ascx file extensions.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is the base class from which user
controls derive?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
User controls derive from System.Web.UI.UserControl base class. This base class
provides the base set of properties and methods you use to create the control.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are the steps to follow to create
properties and methods for the user control that you can use from a Web form?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
To create properties and methods for the user control that you can use from a
Web form, follow these steps:&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;1.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Create the public property or method
that you want to make available on the containing Web form.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;2.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Write code to respond to events that
occur for the controls contained within the user control. These event
procedures do the bulk of the work for the user control.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;3.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;If the property or method needs to
retain a setting between page displays, write code to save and restore settings
from the control’s ViewState.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What happens when you drag a user control
from solution explorer and drop it on a web form?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
When you drag a user control from solution explorer and drop it on a web form,
Visual Studio .NET generates a @Register directive and HTML tags to create the
control on the Web form.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #3333ff; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Custom Controls-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are composite custom
controls?&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
Composite custom controls combine one or more server or HTML controls within a
single control class, which can be compiled along with other control classes to
create an assembly (.dll) that contains a custom control library. Once created,
the custom control library can be loaded into Visual Studio .NET and used in
the same way as the standard server and HTML controls.&lt;br /&gt;
&lt;br /&gt;
Composite custom controls are functionally similar to user controls, but they
reside in their own assemblies, so you can share the same control among
multiple projects without having to copy the control to each project, as you
must do with user controls. However, composite controls are somewhat more
difficult to create because you can’t draw them visually using the Visual
Studio .NET Designer.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are the steps to follow create and use a
custom control in a Web application?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;1.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Create a solution containing a custom
control project.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;2.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Add a Web application project to the
solution, and set it as the startup project. You will use the Web application
project to test the custom control during development.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;3.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Add a project reference from the Web
application to the custom control project, and add an HTML @Register directive
and control element to use the custom control on a Web form.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;4.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Create the custom control’s visual
interface by adding existing controls to it through the custom control’s
CreateChildControls method.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;5.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Add the properties, methods, and
events that the custom control provides.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;6.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Build and test the custom control.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;In general what is the base class for every
composite custom control?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
System.Web.UI.WebControls.WebControl&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Which directive is used to add a custom
control to a Web form?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
Register directive.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are the 3 Register directive&#39;s
attributes?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;TagPrefix&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
This name identifies the group that the user control belongs to. For example,
the tag prefix for ASP.NET server controls is “asp”. You use this prefix to
create a naming convention to organize your custom controls.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Namespace&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
This is the project name and namespace within the custom control assembly that
contains the controls to register. Microsoft Visual Basic .NET uses the project
name as an implicit namespace, so for controls written in Visual Basic .NET,
use the project name.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Assembly&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
This is the name of the assembly (.dll) containing the custom controls. The
control assembly must be referenced by the Web application. Referencing the
assembly maintains a copy of it in the Web application’s /bin directory.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are the differences between User
Controls and Custom Controls?&lt;/span&gt;&lt;/strong&gt;&lt;/b&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;1.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;User Controls are easy to create where
as Custom Controls are difficult to create.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;2.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;User Controls cannot be compiled into
an assembly, where as Custom Controls can be compiled into an assembly.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;3.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;User Controls cannot be added to tool
box, where as Custom controls can be added to the toolbox.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;4.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;You need to have a copy of user
control in every project where you want to use it, where as this is not the
case with custom controls. You can install a single copy of the Web custom
control in the global assembly cache and share it between applications, which
makes maintenance easier.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;5.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;User controls are used for reusing
existing user interface elements and code, but are not useful for developing
reusable components for multiple web applications.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/6398494988535839877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2013/07/aspnet-interview-questions-part-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/6398494988535839877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/6398494988535839877'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2013/07/aspnet-interview-questions-part-5.html' title='ASP.Net Interview Questions Part 5'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1729044450077172400.post-9154629744249031044</id><published>2013-07-21T10:56:00.003-07:00</published><updated>2013-07-21T10:56:56.839-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="Interview questions"/><title type='text'>ASP.Net Interview Questions Part4</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves/&gt;
  &lt;w:TrackFormatting/&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF/&gt;
  &lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
   &lt;w:SplitPgBreakAndParaMark/&gt;
   &lt;w:DontVertAlignCellWithSp/&gt;
   &lt;w:DontBreakConstrainedForcedTables/&gt;
   &lt;w:DontVertAlignInTxbx/&gt;
   &lt;w:Word11KerningPairs/&gt;
   &lt;w:CachedColBalance/&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val=&quot;Cambria Math&quot;/&gt;
   &lt;m:brkBin m:val=&quot;before&quot;/&gt;
   &lt;m:brkBinSub m:val=&quot;--&quot;/&gt;
   &lt;m:smallFrac m:val=&quot;off&quot;/&gt;
   &lt;m:dispDef/&gt;
   &lt;m:lMargin m:val=&quot;0&quot;/&gt;
   &lt;m:rMargin m:val=&quot;0&quot;/&gt;
   &lt;m:defJc m:val=&quot;centerGroup&quot;/&gt;
   &lt;m:wrapIndent m:val=&quot;1440&quot;/&gt;
   &lt;m:intLim m:val=&quot;subSup&quot;/&gt;
   &lt;m:naryLim m:val=&quot;undOvr&quot;/&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;br /&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState=&quot;false&quot; DefUnhideWhenUsed=&quot;true&quot;
  DefSemiHidden=&quot;true&quot; DefQFormat=&quot;false&quot; DefPriority=&quot;99&quot;
  LatentStyleCount=&quot;267&quot;&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;0&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Normal&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;heading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;35&quot; QFormat=&quot;true&quot; Name=&quot;caption&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;10&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; Name=&quot;Default Paragraph Font&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;11&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtitle&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;22&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Strong&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;20&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;59&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Table Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Placeholder Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;No Spacing&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Revision&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;34&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;List Paragraph&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;29&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;30&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;19&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;21&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;31&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;32&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;33&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Book Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;37&quot; Name=&quot;Bibliography&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; QFormat=&quot;true&quot; Name=&quot;TOC Heading&quot;/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:&quot;Table Normal&quot;;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-priority:99;
	mso-style-qformat:yes;
	mso-style-parent:&quot;&quot;;
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin-top:0in;
	mso-para-margin-right:0in;
	mso-para-margin-bottom:10.0pt;
	mso-para-margin-left:0in;
	line-height:115%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:&quot;Times New Roman&quot;;
	mso-fareast-theme-font:minor-fareast;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;br /&gt;
&lt;div style=&quot;background: white; line-height: 15.6pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #3333ff; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Caching-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is caching?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;High-performance
Web applications should be designed with&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;caching&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;in mind. Caching is the technique of
storing frequently used items in memory so that they can be accessed more
quickly. Caching is important to Web applications because each time a Web form is
requested, the host server must process the Web form’s HTML and run Web form
code to create a response. By caching the response, all that work is bypassed.
Instead, the request is served from the reponse already stored in memory.&lt;br /&gt;
&lt;br /&gt;
Caching an item incurs considerable overhead, so it’s important to choose the
items to cache wisely. A Web form is a good candidate for caching if it is
frequently used and does not contain data that frequently changes. By storing a
Web form in memory, you are effectively freezing that form’s server-side
content so that changes to that content do not appear until the cache is
refreshed.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What directive is used to cache a web form?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;The&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;@OutputCache&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;page directive is used to cache a Web
form in the server’s memory.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is the use of duration attribute of
@OutputCache page directive?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;The&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;@OutputCache&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;directive’s&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Duration&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;attribute controls how long the page
is&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;cached&lt;/span&gt;&lt;/strong&gt;. For example if you
set the duration attribute to 60 seconds, the Web form is cached for 60
seconds.&lt;br /&gt;
&lt;br /&gt;
The first time any user requests the Web form, the server loads the response in
memory and retains that response for 60 seconds. Any subsequent requests during
that time receive the cached response.&lt;br /&gt;
&lt;br /&gt;
After the cache duration has expired, the next request for the Web form
generates a new response, which is then cached for another 60 seconds. Thus the
server processes the Web form once every 60 seconds at most.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are the 2 required attributes of the
@OutputCache directive?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;The @OutputCache directive has two required attributes:&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;1.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Duration&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;2.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;VaryByParam.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you
cache multiple responses from a single Web form?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;/b&gt;The&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;VaryByParam&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;attribute lets you cache multiple
responses from a single Web form based on varying HTTP POST or query string
parameters. Setting VaryByParam to None caches only one response for the Web
form, regardless of the parameters sent.&lt;br /&gt;
&lt;br /&gt;
You can also&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;cache&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;multiple responses from a
single Web form using the VaryByHeaders or VaryByCustom attribute.&lt;br /&gt;
&lt;br /&gt;
The VaryByCustom attribute lets you&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;cache&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;different responses based on a
custom string. To use VaryByCustom, override the GetVaryByCustomString method
in the Web application’s Global.asax file.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Is it possible to cache a web form without
using @OutputCache directive?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;Yes, you can&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;cache&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;a web form using the&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Response&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;object’s&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Cache&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;property, which returns an
HttpCachePolicy object for the response. The HttpCachePolicy object provides
members that are similar to the&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;OutputCache&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;directive’s attributes.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Give a simple example to show how to cache a
web form without using @OutputCache directive?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;For example, the following code caches the Web form’s response for 60
seconds:&lt;br /&gt;
private void Page_Load(object sender, System.EventArgs e)&lt;br /&gt;
{&lt;br /&gt;
// Cache this page&lt;br /&gt;
DateTimeLabel.Text = System.DateTime.Now.ToString();&lt;br /&gt;
// Set OutputCache Duration.
Response.Cache.SetExpires(System.DateTime.Now.AddSeconds(60));&lt;br /&gt;
// Set OutputCache VaryByParams.&lt;br /&gt;
Response.Cache.VaryByParams[&quot;None&quot;] = true;&lt;br /&gt;
// Set OutputCache Location.&lt;br /&gt;
Response.Cache.SetCacheability(HttpCacheability.Public);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
The preceding code is equivalent to the following OutputCache directive:&lt;br /&gt;
@ OutputCache Duration=&quot;5&quot; VaryByParam=&quot;None&quot;
Location=&quot;Any&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is @OutputCache directive’s Location
attribute and the HttpCachePolicy object’s SetCacheability property used for?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
The&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;@OutputCache&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;directive’s Location attribute and the
HttpCachePolicy object’s SetCacheability property determine where Microsoft
ASP.NET stores cached responses. By default, ASP.NET caches responses at any
available location that accepts cache items - the client, proxy servers, or the
host server. In practice, those locations might or might not allow caching, so
you can think of the&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Location/SetCacheability&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;setting as more of a request than a
command.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is HttpCachePolicy object’s
SetAllowResponseInBrowserHistory method used for?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;You can override the&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;cache location&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;settings using the&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;HttpCachePolicy&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;object’s
SetAllowResponseInBrowserHistory method. Setting that method to True allows the
response to be stored in the client’s history folder even if the location
setting is None or Server.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Which object can used to store
frequently used items in the server’s memory for quick retrieval?&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
Cache object can be used to store frequently used items in the server’s memory
for quick retrieval.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Is the cache object available for all web
forms with in a web application?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
Yes, the Cache object is global, that is, data stored in the Cache object is
available anywhere within a Web application. In this way, the Cache object is
very similar to the intrinsic Application object.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are the 3 different ways to store data
in the Cache object?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Use assignment.&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
Assigning a value to an unused key in the Cache object automatically creates
that key and assigns the value to that key. Assigning a value to a key that
already exists replaces the cached value with the assigned value.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Use the Insert method.&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;The Insert method uses parameters rather than assignment to create or
change cached data. Insert optionally accepts parameters to establish
dependencies and set expiration policy.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Use the Add method.&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;The Add method is similar to Insert; however, it requires all parameters
and returns an object reference to the cached data.&lt;br /&gt;
&lt;br /&gt;
For example, the following Cache statements all add the same item to the cache:&lt;br /&gt;
&lt;br /&gt;
using System.Web.Caching;&lt;br /&gt;
private void Page_Load(object sender, System.EventArgs e)&lt;br /&gt;
{&lt;br /&gt;
if(!IsPostBack)&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
{&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
Cache[&quot;NewItem&quot;] = &quot;Some string data&quot;;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
Cache.Add(&quot;NewItem&quot;, &quot;Some string data&quot;, null,
Cache.NoAbsoluteExpiration, System.TimeSpan.FromMinutes(1),
CacheItemPriority.Default, null);&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
Cache.Insert(&quot;NewItem&quot;, &quot;Some string data&quot;);&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are absoluteExpiration and
slidingExpiration parmeters of the Insert and Add methods?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;absoluteExpiration&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;A DateTime object that identifies when the data should be removed from the
cache. If you’re using sliding expiration, specify Cache.NoAbsoluteExpiration
for this parameter.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;slidingExpiration&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;A TimeSpan object that identifies how long the data should remain in the
cache after the data was last accessed. If you’re using absolute expiration,
specify Cache.NoSlidingExpiration for this parameter.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Which delegate can be used to notify the
application when items are removed from the cache?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
onRemoveCallback is used to notify the application when items are removed from
the cache.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you retrieve the value of a cache item
stored in the servers memory?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
You can retrieve the value of a cache item stored in the servers memory through
the item’s key, just as you do with the Application and Session objects.
Because cached items might be removed from memory, you should always check for
their existence before attempting to retrieve their value, as shown in the
following code:&lt;br /&gt;
&lt;br /&gt;
private void Button1_Click(object sender, EventArgs e)&lt;br /&gt;
{&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
if (Cache[&quot;ChachedItem&quot;] == null)&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
{&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
Lable1.Text = &quot;Cached Item not found.&quot;;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
}&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
else&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
{&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
Lable1.Text = Cache[&quot;ChachedItem&quot;].ToString();&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Which method can be used to remove data from
the cache?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
Cache object’s Remove method can be used to remove data from the cache as shown
in the following code example / sample.&lt;br /&gt;
&lt;br /&gt;
private void RemoveButton_Click(object sender, System.EventArgs e)&lt;br /&gt;
{&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
Cache.Remove(&quot;CachedItem&quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you control how long data is cached?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
The Cache object’s Add and Insert method parameters allow you to control how
long an item is stored in the server’s memory. In practice, these parameter
settings provide only indirect control of how long data remains in memory. If
your server runs low on available memory, ASP.NET recovers as much memory as
possible from expired cache items. If that’s not enough, ASP.NET will unload
unexpired items from the cache based on their priority and when they were last
accessed.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is CacheItemPriority enumeration used
for?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
CacheItemPriority enumeration is used to set the relative importance of cached
items. CacheItemPriority.NotRemoveable has the highest priority and
CacheItemPriority.Low has the lowest priority.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Which is the only &quot;event” provided by
Cache object?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
CacheItemRemoved &quot;event” is the only &quot;event” provided by Cache
object.&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you update the Cache object when data
changes?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
Items stored in the cache are often copies of data that is stored and
maintained elsewhere, such as records in a database. Use the Add and Insert
methods’ dependency parameter to establish a relationship between a cached data
item and an external source, such as a file, a folder, or a group of files.&lt;br /&gt;
&lt;br /&gt;
The dependency parameter accepts a CacheDependency object, which in turn
identifies the file, folder, or set of files to watch for changes. ASP.NET
checks the time stamp of the items in the CacheDependency object, if one of
those time stamps is later than the DateTime entered for the cached item,
ASP.NET unloads that item from the cache.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is fragment caching?&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
Caching parts of web form is called as&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;fragment caching&lt;/span&gt;&lt;/strong&gt;. Sometimes
you want to cache only part of a Web form response. For instance, a Web form
might contain many pieces of variable information plus a single large table
that almost never changes. In this case, you might place that table in a Web
user control and store the response for that control in cache. This technique
is called&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;fragment caching.&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are the steps to follow to cache parts
of web form?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
To cache part of a Web form, follow these steps:&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;1.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Place the controls and content that
you want to cache in a Web user control.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;2.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Set the caching attributes for that
Web user control.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;3.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Create an instance of the Web user
control on the Web form.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is PartialCaching attribute used for?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
You can include the&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;PartialCaching&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;attribute in the control’s class
declaration to enable&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;fragment
caching.&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are the OutputCache directive attributes
that apply only to user controls?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Shared&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
Cache a single response from a user control for use on multiple Web forms. By
default, ASP.NET caches a separate response for each Web form that uses a
cached user control. This attribute is only available in the .NET Framework
version 1.1 or later.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;VaryByControl&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
Cache multiple responses for a single user&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;control based&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;on the value of one or more
controls contained in the user control. Can you cache multiple versions of a user
control?Yes, You can cache multiple versions of a user control based on the
value of controls contained in a user control (VaryByControl) or based on a
custom string (VaryByCustom).&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;If a user control is read from the cache, can
you access its members from code?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
No, In general, cached controls are used to present data such as queries from a
database, rather than as interactive components. However, if you do need to
access a cached control from code, you must first check that the control
exists. If the control is read from the cache, you can’t access its members
from code. Control members are available only when the control is not read from
the cache, such as when the control is first instantiated and when it is
reloaded after its cache duration has expired.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;When caching is set at both the Web form and
user control levels, How does the cache settings interact?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
The cache location is determined by the Web form setting. Location settings on
a user control have no affect.&lt;br /&gt;
If the Web form’s cache duration is longer than the user control’s, both the
Web form response and the user control response will expire using the Web form
setting.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #3333ff; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Cookies-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; line-height: 15.6pt; orphans: auto; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are Cookies in ASP.NET?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
Cookies are small pieces of information stored on the client computer.Use
cookies to store small amounts of information on the client’s machine. Web
sites often use cookies to store user preferences or other information that is
client-specific. Because cookies can be refused, it is important to check
whether the browser allows them before you try to create them.They are limited
to storing only character data and they are limited to 4K in size.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are different types of Cookies?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;Session Cookies&lt;br /&gt;
Persistent Cookies&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are Session Cookies?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Session cookies are stored in-memory during the client browser session. When
the browser is closed the session cookies are lost.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How can you create Session Cookies?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;You can create session cookies by calling the Add method of the Cookies
collection on the Response object. The Cookies collection contains individual
cookie objects of type HttpCookie.&lt;br /&gt;
&lt;br /&gt;
//Code to create a UserName cookie containing the name David.&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;HttpCookie CookieObject = new
HttpCookie(&quot;UserName&quot;, &quot;David&quot;);&lt;br /&gt;
Response.Cookies.Add(CookieObject);&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
//Code to read the Cookie created above&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Request.Cookies[&quot;UserName&quot;].Value;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is the difference between Session
Cookies and Persistent Cookies?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;Persistent Cookies are same as Session Cookies except that, persistent
cookies have an expiration date. The expiration date indicates to the browser
that it should write the cookie to the client&#39;s hard drive. Keep in mind that
because a user can delete cookies from their machine that there is no guarantee
that a cookie you &quot;drop&quot; on a user machine will be there the next
time they visit your site.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are Persistent Cookies used for?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Persistent cookies are generally used to store information that identifies a
returning user to a Web site. Typical information found in Persistent Cookies
includes user names or user IDs.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you create a Persistent Cookie?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;You create a persistent cookie the same way as session cookies except that
you set the Expires property to a Date in the future which will store the
Cookie to the client computer harddrive.&lt;br /&gt;
&lt;br /&gt;
//Code to create a UserName Persistent Cookie that lives for 10 days&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;HttpCookie CookieObject = new
HttpCookie(&quot;UserName&quot;, &quot;David&quot;);&lt;br /&gt;
CookieObject.Expires = DateTime.Now.AddDays(10);&lt;br /&gt;
Response.Cookies.Add(CookieObject);&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
//Code to read the Cookie created above&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Request.Cookies[&quot;UserName&quot;].Value;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What is Cookie Dictionary?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
A cookie dictionary is a single cookie object that stores multiple pieces of
information. You use the Values property to access and assign new values to the
cookie dictionary.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Give an example using Cookie Dictionary?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;//Code to create a Cookie Dictionary&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;HttpCookie CookieObject = new
HttpCookie(&quot;UserPreference&quot;);&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
//Use the Values property to assign new values to the cookie dictionary&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;CookieObject.Values.Add(&quot;UserName&quot;,
&quot;David&quot;);&lt;br /&gt;
CookieObject.Values.Add(&quot;Country&quot;, &quot;USA&quot;);&lt;br /&gt;
CookieObject.Values.Add(&quot;PreviousVisit&quot;, DateTime.Now.ToString());&lt;br /&gt;
CookieObject.Expires = DateTime.MaxValue;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
//Add the Cookie to the client machine using the Response object&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Response.Cookies.Add(CookieObject);&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
//Code to read the Cookie created above&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000099; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;HttpCookie ObjectCookie =
Request.Cookies[&quot;UserPreference&quot;];&lt;br /&gt;
string UserName = ObjectCookie.Values[&quot;UserName&quot;];&lt;br /&gt;
string Country = ObjectCookie.Values[&quot;Country&quot;];&lt;br /&gt;
string PreviousVisit = ObjectCookie.Values[&quot;PreviousVisit&quot;];&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are the advantages of Using Cookies?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;1.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Cookies do not require any server
resources since they are stored on the client.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;2.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Cookies are easy to implement.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;3.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;You can configure cookies to expire
when the browser session ends (session cookies) or they can exist for a
specified length of time on the client computer (persistent cookies).&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;What are the disadvantages of Using Cookies?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;1.&lt;/span&gt;&lt;/strong&gt;&lt;/b&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Users can delete a cookies.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;2.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Users browser can refuse cookies,so
your code has to anticipate that possibility.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;3.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Cookies exist as plain text on the
client machine and they may pose a possible security risk as anyone can open
and tamper with cookies.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;How do you create a Cookie that never
expires?&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;To create a Cookie that never expires set the Expires property of the
Cookie object to DateTime.MaxValue.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Are Cookies secure?&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
No, Cookies are not secure. You must pay attention to the type of data you
store in cookies.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;1.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Cookies are not designed to store
critical information so storing passwords in a cookie is a bad idea.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;2.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Keep the lifetime of a cookie as short
as practically possible.&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;3.&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Encrypt cookie data to help protect
the values stored in the cookie.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://vbdotnetaddict.blogspot.com/&quot;&gt;DotNetcode&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbdotnetaddict.blogspot.com/feeds/9154629744249031044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vbdotnetaddict.blogspot.com/2013/07/aspnet-interview-questions-part4_5169.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/9154629744249031044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1729044450077172400/posts/default/9154629744249031044'/><link rel='alternate' type='text/html' href='http://vbdotnetaddict.blogspot.com/2013/07/aspnet-interview-questions-part4_5169.html' title='ASP.Net Interview Questions Part4'/><author><name>vijay</name><uri>http://www.blogger.com/profile/00369633356767263141</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>