<?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-2956116147975731201</id><updated>2024-09-01T07:11:13.655-07:00</updated><category term="Asp.net-Ajax"/><category term="ASP.Net"/><category term=".Net"/><category term=".Net 2.0"/><category term=".Net 3.0 features"/><category term=".Net 3.5 features"/><category term="C#"/><category term="Events and Delegates"/><category term="General"/><category term="Questions And Answers"/><category term="C# Keyword differences"/><category term="Design Patterns"/><category term="Infragistics"/><category term="MVC Page Life Cycle"/><category term="Master Page"/><category term="OOPS"/><category term="Oracle DataBase"/><category term="SQl Server"/><category term="SQl Server Performance"/><category term="VB Keyword differences"/><category term="VS-2013"/><category term="Web Services"/><category term="Xamarin"/><title type='text'>Dhinesh Paramasivam</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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>33</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2956116147975731201.post-6139193556590920866</id><published>2018-10-26T04:24:00.001-07:00</published><updated>2018-10-26T04:24:14.244-07:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Cross Apply vs Outer Apply&lt;/h3&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;CREATE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;TABLE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; #EmployeeDetails&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;      EmpId &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;PRIMARY&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;KEY&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;      EmpFirstName &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;VARCHAR&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;50&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;),&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;      EmpLastName &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;VARCHAR&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;50&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;),&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;      Department &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;VARCHAR&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;50&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;),&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;      DepartID &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;INT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;CREATE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;TABLE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; #EmpSalary&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;      EmpID &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;INT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;      EmpFullName &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;VARCHAR&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;80&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;),&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;      EmpSalary &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;INT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;      EmpWorkingYears &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;INT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;      DepartID &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;INT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;br /&gt;
　&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;Insert&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;into&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; #EmployeeDetails &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;1001&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Kate&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Thomas&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;IT&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;2&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;Insert&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;into&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; #EmployeeDetails &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;1002&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;John&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Wills&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;IT&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;2&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;Insert&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;into&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; #EmployeeDetails &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;1003&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Branda&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Pat&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Accounts&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;3&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;Insert&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;into&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; #EmployeeDetails &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;1004&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Sofia&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Kaul&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;HR&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;1&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;Insert&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;into&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; #EmployeeDetails &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;1005&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Tim&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Stouts&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;IT&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;2&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;Insert&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;into&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; #EmployeeDetails &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;1006&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Mick&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Presto&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Accounts&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;3&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;Insert&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;into&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; #EmployeeDetails &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;1007&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Steave&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Berg&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Trainee&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,null)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;Insert&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;into&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; #EmpSalary &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;1001&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Kate Thomas&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; 35000&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; 3&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; 2&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;Insert&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;into&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; #EmpSalary &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;1002&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;John Wills&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; 25000&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; 2&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; 2&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;Insert&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;into&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; #EmpSalary &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;1003&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Branda Pat&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; 20000&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; 2&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; 3&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;Insert&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;into&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; #EmpSalary &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;1004&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Sofia Kaul&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; 18000&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; 1&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; 1&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;Insert&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;into&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; #EmpSalary &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;1005&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Tim Stouts&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; 25000&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; 2&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; 2&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;Insert&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;into&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; #EmpSalary &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;1006&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Mick Presto&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; 28000&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;3&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; 3&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;Insert&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;into&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; #EmpSalary &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;1007&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Petro johnson&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; 8000&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;1&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;null)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;Insert&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;into&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; #EmpSalary &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;1008&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: x-small;&quot;&gt;&#39;Christie Pic&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; 6000&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;1&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;null)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;br /&gt;
--drop table #EmployeeDetails; drop table #EmpSalary&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;1.CROSS APPLY&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;The Cross Apply returns rows form the outer table (table on the left of the Apply operator) &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;that produces matching values from the table-valued function (which is on the right side of the operator). &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;The Cross Apply is equivalent to Inner Join, but it works with a table-valued function. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;SELECT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; e&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;EmpId&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;      e&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;EmpFirstName&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;      e&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;EmpLastName&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;      f&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;Salaryinc&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;FROM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;      #EmployeeDetails &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;AS&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; e&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;cross&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;apply&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;SELECT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;  EmpID&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; EmpFullName&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;  EmpSalary &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;AS&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; Salaryinc&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;FROM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;br /&gt;
  #Empsalary&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;WHERE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;  DepartID &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; e&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;DepartID&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; f&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&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/AVvXsEiRFJ2o3EYz_EbsCXpBUTKxj7IjMNGlgrHdWIGaH9StIjxFssdmkWQ-lVm__jLrwUZeF6Ye_OuzciNCwL1y9EzqrI45eQoFPGZ_WsruCWkynWRzrw9SszODbPKHmAkGayAyPW2UOLX5lfo/s1600/CROSS+apply.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;322&quot; data-original-width=&quot;323&quot; height=&quot;319&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRFJ2o3EYz_EbsCXpBUTKxj7IjMNGlgrHdWIGaH9StIjxFssdmkWQ-lVm__jLrwUZeF6Ye_OuzciNCwL1y9EzqrI45eQoFPGZ_WsruCWkynWRzrw9SszODbPKHmAkGayAyPW2UOLX5lfo/s320/CROSS+apply.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;

&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;2.OUTER APPLY&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;--The Outer Apply returns all the rows from the outer table (table on the left of the Apply operator), &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;--and rows that do not matches the condition from the table-valued function (which is on the right side of the operator), NULL values are displayed. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;SELECT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; e&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;EmpId&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;      e&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;EmpFirstName&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;      e&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;EmpLastName&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;      f&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;Salaryinc&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;FROM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;      #EmployeeDetails &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;AS&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; e&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;outer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;apply&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;SELECT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;  EmpID&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; EmpFullName&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;  EmpSalary &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;AS&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; Salaryinc&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;FROM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;br /&gt;
  #Empsalary&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;WHERE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;  DepartID &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; e&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;DepartID&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; f&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&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/AVvXsEhxvRATe7xQoQgMIZ2ymV-nc8kxmrzxtDzymsH8UQ4hu-kMDCZ_I0S7w7q1tsNMsRxqN5zAEgraAVMtecQRX_YMajTYRwm-mhkfL4GT1UO9alG6y1UXHfl3qRsUyItRnPOFznk1_E5ooqM/s1600/Outer+apply.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;327&quot; data-original-width=&quot;314&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxvRATe7xQoQgMIZ2ymV-nc8kxmrzxtDzymsH8UQ4hu-kMDCZ_I0S7w7q1tsNMsRxqN5zAEgraAVMtecQRX_YMajTYRwm-mhkfL4GT1UO9alG6y1UXHfl3qRsUyItRnPOFznk1_E5ooqM/s320/Outer+apply.png&quot; width=&quot;307&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/6139193556590920866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/6139193556590920866' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/6139193556590920866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/6139193556590920866'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2018/10/cross-apply-vs-outer-apply-create-table.html' title=''/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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/AVvXsEiRFJ2o3EYz_EbsCXpBUTKxj7IjMNGlgrHdWIGaH9StIjxFssdmkWQ-lVm__jLrwUZeF6Ye_OuzciNCwL1y9EzqrI45eQoFPGZ_WsruCWkynWRzrw9SszODbPKHmAkGayAyPW2UOLX5lfo/s72-c/CROSS+apply.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2956116147975731201.post-4454617136025446772</id><published>2017-01-09T03:00:00.000-08:00</published><updated>2017-01-09T03:00:03.510-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MVC Page Life Cycle"/><title type='text'>MVC Page Life Cycle</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;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy1W5BSTqELTVL23QSoza20-hKKuVa5MWUC0iEwNnQ4tMTrAGKQVdQfLI1bKNH_G7DyE1IGx68TqUuTvOtgLulx-SFYN8GDrBs_qzAjqoi7wtEo1NTr212luWmogbqmKCibipz5Vdfgu4/s1600/MVC+Page+Life+Cycle.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy1W5BSTqELTVL23QSoza20-hKKuVa5MWUC0iEwNnQ4tMTrAGKQVdQfLI1bKNH_G7DyE1IGx68TqUuTvOtgLulx-SFYN8GDrBs_qzAjqoi7wtEo1NTr212luWmogbqmKCibipz5Vdfgu4/s1600/MVC+Page+Life+Cycle.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/4454617136025446772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/4454617136025446772' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/4454617136025446772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/4454617136025446772'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2017/01/mvc-page-life-cycle.html' title='MVC Page Life Cycle'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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/AVvXsEgy1W5BSTqELTVL23QSoza20-hKKuVa5MWUC0iEwNnQ4tMTrAGKQVdQfLI1bKNH_G7DyE1IGx68TqUuTvOtgLulx-SFYN8GDrBs_qzAjqoi7wtEo1NTr212luWmogbqmKCibipz5Vdfgu4/s72-c/MVC+Page+Life+Cycle.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2956116147975731201.post-1709355883294732819</id><published>2017-01-09T00:10:00.002-08:00</published><updated>2017-01-09T00:12:05.513-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="VS-2013"/><category scheme="http://www.blogger.com/atom/ns#" term="Xamarin"/><title type='text'>Xamarin Mobile App Development - Microsoft</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Xamarin Mobile App Development&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Introduced by Microsoft to support Cross platform mobile app development&lt;/li&gt;
&lt;li&gt;Installation Steps&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://developer.xamarin.com/guides/android/getting_started/installation/windows/#activate&quot;&gt;https://developer.xamarin.com/guides/android/getting_started/installation/windows/#activate&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;It Supports both iOS &amp;amp; Android&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/1709355883294732819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/1709355883294732819' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/1709355883294732819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/1709355883294732819'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2017/01/xamarin-mobile-app-development.html' title='Xamarin Mobile App Development - Microsoft'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-5137968022250500189</id><published>2015-03-20T09:57:00.000-07:00</published><updated>2015-03-20T19:16:17.266-07:00</updated><title type='text'>MVC Interview Questions</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;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 15pt 0in 8.25pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;MVC - List of Questions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0in 0in 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Reading
these MVC interview questions does not mean you will go and clear MVC
interviews. The purpose of this article is to quickly brush up your MVC
knowledge before you go for MVC interviews. This article does not teach MVC,
it’s a last minute revision sheet before going for MVC interviews.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;If
you want to learn MVC from scratch, start by reading&amp;nbsp;&lt;a href=&quot;http://www.codeproject.com/Articles/207797/Learn-MVC-Model-View-Controller-step-by-step-in-7&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; padding: 0in;&quot;&gt;Learn MVC ( Model view
controller) step by step 7 days&lt;/span&gt;&lt;/a&gt;&amp;nbsp;or you can also start with my&amp;nbsp;&lt;a href=&quot;https://www.youtube.com/playlist?list=PL33C9E91F8CDD2BF7&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; padding: 0in;&quot;&gt;step by step MVC (Model View Controller) video series from
YouTube.&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;If
you want to learn MVC 5 in a short time i.e. 2 days a.k.a 16 hours below is a
video series for the same.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=Lp7nSImO5vk&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in; text-decoration: none;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype id=&quot;_x0000_t75&quot;
 coordsize=&quot;21600,21600&quot; o:spt=&quot;75&quot; o:preferrelative=&quot;t&quot; path=&quot;m@4@5l@4@11@9@11@9@5xe&quot;
 filled=&quot;f&quot; stroked=&quot;f&quot;&gt;
 &lt;v:stroke joinstyle=&quot;miter&quot;/&gt;
 &lt;v:formulas&gt;
  &lt;v:f eqn=&quot;if lineDrawn pixelLineWidth 0&quot;/&gt;
  &lt;v:f eqn=&quot;sum @0 1 0&quot;/&gt;
  &lt;v:f eqn=&quot;sum 0 0 @1&quot;/&gt;
  &lt;v:f eqn=&quot;prod @2 1 2&quot;/&gt;
  &lt;v:f eqn=&quot;prod @3 21600 pixelWidth&quot;/&gt;
  &lt;v:f eqn=&quot;prod @3 21600 pixelHeight&quot;/&gt;
  &lt;v:f eqn=&quot;sum @0 0 1&quot;/&gt;
  &lt;v:f eqn=&quot;prod @6 1 2&quot;/&gt;
  &lt;v:f eqn=&quot;prod @7 21600 pixelWidth&quot;/&gt;
  &lt;v:f eqn=&quot;sum @8 21600 0&quot;/&gt;
  &lt;v:f eqn=&quot;prod @7 21600 pixelHeight&quot;/&gt;
  &lt;v:f eqn=&quot;sum @10 21600 0&quot;/&gt;
 &lt;/v:formulas&gt;
 &lt;v:path o:extrusionok=&quot;f&quot; gradientshapeok=&quot;t&quot; o:connecttype=&quot;rect&quot;/&gt;
 &lt;o:lock v:ext=&quot;edit&quot; aspectratio=&quot;t&quot;/&gt;
&lt;/v:shapetype&gt;&lt;v:shape id=&quot;Picture_x0020_32&quot; o:spid=&quot;_x0000_i1056&quot; type=&quot;#_x0000_t75&quot;
 alt=&quot;http://www.codeproject.com/KB/aspnet/556995/mockup__1_.png&quot;
 href=&quot;https://www.youtube.com/watch?v=Lp7nSImO5vk&quot; target=&quot;&amp;quot;_blank&amp;quot;&quot;
 style=&#39;width:435pt;height:266.25pt;visibility:visible;mso-wrap-style:square&#39;
 o:button=&quot;t&quot;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png&quot;
  o:title=&quot;mockup__1_&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img alt=&quot;http://www.codeproject.com/KB/aspnet/556995/mockup__1_.png&quot; border=&quot;0&quot; height=&quot;355&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image002.jpg&quot; v:shapes=&quot;Picture_x0020_32&quot; width=&quot;580&quot; /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 15pt 0in 8.25pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;Need help to improve this article&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;I
have tried my level best to cover what questions i have faced in MVC
interviews. But i feel the below questions are not enough and in real MVC
interview&#39;s much more is asked. If you can share your question in the comment
below. I would love to incorporate them in this article so that others are
benefited.&lt;br /&gt;
If your question is great and i like it i will ship you a free copy of my&amp;nbsp;&lt;a href=&quot;http://www.flipkart.com/net-interview-questions-cd-rom-6th/p/itmdyuqzdqx8cvqx&quot; target=&quot;_blank&quot; title=&quot;.NET interview question and answer book&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; padding: 0in;&quot;&gt;.NET interview question book&lt;/span&gt;&lt;/a&gt;&amp;nbsp;only in India ( sorry
i am not so rich for outside countries).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;What_is_MVC(Model_view_controller)&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;What is MVC (Model View Controller)?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;MVC
is an architectural pattern which separates the representation and user
interaction. It’s divided into three broader sections, Model, View, and
Controller. Below is how each one of them handles the task.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0in 0in 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;The View is
responsible for the look and feel.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0in 0in 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Model represents the
real world object and provides data to the View.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0in 0in 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;The Controller is
responsible for taking the end user request and loading the appropriate Model
and View.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_31&quot; o:spid=&quot;_x0000_i1055&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/1.jpg&quot;
 style=&#39;width:155.25pt;height:135pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image003.jpg&quot;
  o:title=&quot;1&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img alt=&quot;http://www.codeproject.com/KB/aspnet/556995/1.jpg&quot; border=&quot;0&quot; height=&quot;180&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image003.jpg&quot; title=&quot;&quot; v:shapes=&quot;Picture_x0020_31&quot; width=&quot;207&quot; /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;Figure: MVC (Model
view controller)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Explain_MVC_application_life_cycle&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt; padding: 0in;&quot;&gt;Explain MVC application life cycle?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;There
are six broader events which occur in MVC application life cycle below diagrams
summarize it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_30&quot; o:spid=&quot;_x0000_i1054&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/MVCLifeCycle.jpg&quot;
 style=&#39;width:470.25pt;height:194.25pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image004.jpg&quot;
  o:title=&quot;MVCLifeCycle&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img alt=&quot;http://www.codeproject.com/KB/aspnet/556995/MVCLifeCycle.jpg&quot; border=&quot;0&quot; height=&quot;259&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image004.jpg&quot; v:shapes=&quot;Picture_x0020_30&quot; width=&quot;627&quot; /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;br /&gt;
Image Courtesy: -&amp;nbsp;&lt;a href=&quot;http://www.dotnetinterviewquestions.in/article_explain-mvc-application-life-cycle_210.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; padding: 0in;&quot;&gt;http://www.dotnetinterviewquestions.in/article_explain-mvc-application-life-cycle_210.html&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Any
web application has two main execution steps first understanding the request
and depending on the type of the request sending out appropriate response. MVC
application life cycle is not different it has two main phases first creating
the request object and second sending our response to the browser.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;Creating the request object: -&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;The request object creation has four major steps. Below is the
detail explanation of the same.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;Step 1 Fill route: -&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;MVC requests are mapped to route tables which in turn
specify which controller and action to be invoked. So if the request is the
first request the first thing is to fill the route table with routes
collection. This filling of route table happens in the global.asax file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;Step 2 Fetch route: -&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;Depending on the URL sent “UrlRoutingModule” searches the
route table to create “RouteData” object which has the details of which
controller and action to invoke.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;Step 3 Request context created: -&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;The “RouteData” object is used to create
the “RequestContext” object.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;Step 4 Controller instance created: -&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;This request object is sent to
“MvcHandler” instance to create the controller class instance. Once the
controller class object is created it calls the “Execute” method of the
controller class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;Creating Response object: -&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;This phase has two steps executing the action and finally
sending the response as a result to the view.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Is_MVC_suitable_for_both_windows_and_web&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;Is MVC suitable for both Windows and Web applications?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;The
MVC architecture is suited for a web application than Windows. For Window
applications, MVP, i.e., “Model View Presenter” is more applicable. If you are
using WPF and Silverlight, MVVM is more suitable due to bindings.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;What_are_the_benefits_of_using_MVC&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;What are the benefits of using MVC?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;There
are two big benefits of MVC:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0in 0in 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Separation of concerns
is achieved as we are moving the code-behind to a separate class file. By
moving the binding code to a separate class file we can reuse the code to a
great extent.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0in 0in 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Automated UI testing
is possible because now the behind code (UI interaction code) has moved to a
simple .NET class. This gives us opportunity to write unit tests and automate
manual testing.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Is_MVC_different_from_a_3_layered_archit&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;Is MVC different from a three layered architecture?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;MVC
is an evolution of a three layered traditional architecture. Many components of
the three layered architecture are part of MVC. So below is how the mapping
goes:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-collapse: collapse; border: none;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;Functionality&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;Three layered / tiered
  architecture&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt; width: 183.75pt;&quot; width=&quot;245&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;Model view controller
  architecture&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Look and Feel&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;User interface&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt; width: 183.75pt;&quot; width=&quot;245&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;View&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;UI logic&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;User interface&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt; width: 183.75pt;&quot; width=&quot;245&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Controller&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Business logic
  /validations&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Middle layer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt; width: 183.75pt;&quot; width=&quot;245&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Model&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Request is first
  sent to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;User interface&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt; width: 183.75pt;&quot; width=&quot;245&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Controller&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Accessing data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Data access layer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt; width: 183.75pt;&quot; width=&quot;245&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Data Access Layer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_29&quot; o:spid=&quot;_x0000_i1053&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/2.jpg&quot;
 style=&#39;width:468pt;height:285pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image005.jpg&quot;
  o:title=&quot;2&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img alt=&quot;http://www.codeproject.com/KB/aspnet/556995/2.jpg&quot; border=&quot;0&quot; height=&quot;380&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image005.jpg&quot; v:shapes=&quot;Picture_x0020_29&quot; width=&quot;624&quot; /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;Figure: Three layered
architecture&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;WhatisthelatestversionofMVC&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt; padding: 0in;&quot;&gt;What
is the latest version of MVC?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;MVC
6 is the latest version which is also termed as ASP VNEXT.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;WhatisthedifferencebetweeneachversionofM&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt; padding: 0in;&quot;&gt;What is the difference between each version of MVC 2, 3 , 4, 5 and
6?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;MVC 6&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;ASP.NET
MVC and Web API has been merged in to one.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Dependency
injection is inbuilt and part of MVC.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Side
by side - deploy the runtime and framework with your application&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Everything
packaged with NuGet, Including the .NET runtime itself.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;New
JSON based project structure.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;No
need to recompile for every change. Just hit save and refresh the browser.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Compilation
done with the new Roslyn real-time compiler.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;vNext
is Open Source via the .NET Foundation and is taking public contributions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;vNext
(and Rosyln) also runs on Mono, on both Mac and Linux today.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;MVC 5&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;One
ASP.NET&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Attribute
based routing&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Asp.Net
Identity&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Bootstrap
in the MVC template&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Authentication
Filters&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Filter
overrides&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;MVC 4&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;ASP.NET
Web API&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Refreshed
and modernized default project templates&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;New
mobile project template&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Many
new features to support mobile apps&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Enhanced
support for asynchronous methods&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;MVC 3&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Razor&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Readymade
project templates&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;HTML
5 enabled templates&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Support
for Multiple View Engines&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;JavaScript
and Ajax&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Model
Validation Improvements&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;MVC 2&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Client-Side
Validation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Templated
Helpers&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Areas&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Asynchronous
Controllers&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Html.ValidationSummary
Helper Method&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;DefaultValueAttribute
in Action-Method Parameters&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Binding
Binary Data with Model Binders&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;DataAnnotations
Attributes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Model-Validator
Providers&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;New
RequireHttpsAttribute Action Filter&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Templated
Helpers&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Display
Model-Level Errors&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;What_are_HTML_helpers_in_MVC&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt; padding: 0in;&quot;&gt;What
are HTML helpers in MVC?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;HTML
helpers help you to render HTML controls in the view. For instance if you want
to display a HTML textbox on the view , below is the HTML helper code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;= Html.TextBox(&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;LastName&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;) &lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; padding: 0in;&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;For
checkbox below is the HTML helper code. In this way we have HTML helper methods
for every HTML control that exists.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;= Html.CheckBox(&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;Married&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;) &lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; padding: 0in;&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;What_is_the_difference_between_HTMLTextB&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt; padding: 0in;&quot;&gt;What is the difference between “HTML.TextBox” vs
“HTML.TextBoxFor”?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Both
of them provide the same HTML output, “HTML.TextBoxFor” is strongly typed while
“HTML.TextBox” isn’t. Below is a simple HTML code which just creates a simple
textbox with “CustomerCode” as name.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;Html.TextBox(&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;CustomerCode&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Below
is “Html.TextBoxFor” code which creates HTML textbox using the property name
‘CustomerCode” from object “m”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;Html.TextBoxFor(m
=&amp;gt; m.CustomerCode)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;In
the same way we have for other HTML controls like for checkbox we have
“Html.CheckBox” and “Html.CheckBoxFor”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;What_are_routing_in_MVC&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt; padding: 0in;&quot;&gt;What is routing in MVC?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Routing
helps you to define a URL structure and map the URL with the controller.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;For
instance let’s say we want that when a user types “&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;http://localhost/View/ViewCustomer/&lt;/span&gt;&lt;/i&gt;”,
it goes to the “Customer” Controller and invokes the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;DisplayCustomer&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;action.
This is defined by adding an entry in to the&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;routes&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;collection using the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;maproute&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;function. Below
is the underlined code which shows how the URL structure and mapping with
controller and action is defined.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;routes.MapRoute(&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&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; &lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;View&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;, &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;// Route name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&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; &lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;View/ViewCustomer/{id}&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;, &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;// URL with parameters&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&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; &lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; { controller = &lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;Customer&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;,
action = &lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;DisplayCustomer&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;, &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;id
= UrlParameter.Optional }); &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;// Parameter defaults&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Where_is_the_route_mapping_code_written&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;Where is the route mapping code written?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;The
route mapping code is written in &quot;RouteConfig.cs&quot; file and registered
using &quot;global.asax&quot; application start event.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Can_we_map_multiple_URL’s_to_the_same_ac&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;Can we map multiple URL’s to the same action?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Yes,
you can, you just need to make two entries with different key names and specify
the same controller and action.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;explain&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt; padding: 0in;&quot;&gt;Explain attribute based routing in MVC?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;This
is a feature introduced in MVC 5. By using the &quot;Route&quot; attribute we
can define the URL structure. For example in the below code we have decorated
the &quot;GotoAbout&quot; action with the route attribute. The route attribute
says that the &quot;GotoAbout&quot; can be invoked using the URL structure
&quot;Users/about&quot;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;public
class HomeController : Controller&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Route(&quot;Users/about&quot;)]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public ActionResult GotoAbout()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return View();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;whatisthe&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt; padding: 0in;&quot;&gt;What is the advantage of defining route
structures in the code?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Most
of the time developers code in the action methods. Developers can see the URL structure
right upfront rather than going to the “routeconfig.cs” and see the lengthy
codes. For instance in the below code the developer can see right upfront that
the “GotoAbout” action can be invoked by four different URL structure.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;This
is much user friendly as compared to scrolling through the “routeconfig.cs”
file and going through the length line of code to figure out which URL
structure is mapped to which action.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;public
class HomeController : Controller&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Route(&quot;Users/about&quot;)]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Route(&quot;Users/WhoareWe&quot;)]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Route(&quot;Users/OurTeam&quot;)]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Route(&quot;Users/aboutCompany&quot;)]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public ActionResult GotoAbout()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return View();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;How_can_we_navigate_from_one_view_to_oth&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;How can we navigate from one view to another using a hyperlink?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;By
using the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;ActionLink&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;method as shown in the below code. The below code will
create a simple URL which helps to navigate to the “Home” controller and invoke
the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;GotoHome&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;action.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;= Html.ActionLink(&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;Home&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;Gotohome&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;) &lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; padding: 0in;&quot;&gt;%&amp;gt;&lt;/span&gt;&amp;nbsp;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;How_can_we_restrict_MVC_actions_to_be_in&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;How can we restrict MVC actions to be invoked only by GET or
POST?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;We
can decorate the MVC action with the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;HttpGet&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;or&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;HttpPost&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;attribute to restrict the type of HTTP
calls. For instance you can see in the below code snippet the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;DisplayCustomer&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;action
can only be invoked by&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;HttpGet&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;. If we try to make HTTP POST on&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;DisplayCustomer&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;,
it will throw an error.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;[HttpGet]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; ViewResult DisplayCustomer(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;int&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; id)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer
objCustomer = Customers[id];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; View(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;DisplayCustomer&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;,objCustomer);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;How_can_we_maintain_session_in_MVC&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;How can we maintain sessions in MVC?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Sessions
can be maintained in MVC by three ways: tempdata, viewdata, and viewbag.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;What_is_the_difference_between_tempdata_&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;What is the difference between tempdata, viewdata, and viewbag?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_28&quot; o:spid=&quot;_x0000_i1052&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/3.jpg&quot;
 style=&#39;width:334.5pt;height:249.75pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image006.jpg&quot;
  o:title=&quot;3&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img alt=&quot;http://www.codeproject.com/KB/aspnet/556995/3.jpg&quot; border=&quot;0&quot; height=&quot;333&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image006.jpg&quot; v:shapes=&quot;Picture_x0020_28&quot; width=&quot;446&quot; /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;Figure: Difference
between tempdata, viewdata, and viewbag&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0in 0in 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;Temp
data&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;- Helps to
maintain data when you move from one controller to another controller or from
one action to another action. In other words when you redirect, tempdata helps
to maintain data between those redirects. It internally uses session variables.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0in 0in 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;View
data&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;- Helps to
maintain data when you move from controller to view.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0in 0in 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;View
Bag&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;- It’s a dynamic
wrapper around view data. When you use&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;Viewbag&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;type, casting is not required. It uses
the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;dynamic&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;keyword
internally.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_27&quot; o:spid=&quot;_x0000_i1051&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/4.jpg&quot;
 style=&#39;width:146.25pt;height:200.25pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image007.jpg&quot;
  o:title=&quot;4&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img alt=&quot;http://www.codeproject.com/KB/aspnet/556995/4.jpg&quot; border=&quot;0&quot; height=&quot;267&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image007.jpg&quot; v:shapes=&quot;Picture_x0020_27&quot; width=&quot;195&quot; /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;Figure: dynamic
keyword&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0in 0in 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;Session
variables -&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;By using session
variables we can maintain data from any entity to any entity.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0in 0in 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;Hidden
fields and HTML controls -&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;Helps
to maintain data from UI to controller only. So you can send data from HTML
controls or hidden fields to the controller using POST or GET HTTP methods.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Below
is a summary table which shows the different mechanisms for persistence.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-collapse: collapse; border: none;&quot;&gt;
 &lt;thead&gt;
&lt;tr&gt;
   &lt;td style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt; width: 123pt;&quot; width=&quot;164&quot;&gt;
   &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;Maintains data between&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
   &lt;td style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt; width: 96pt;&quot; width=&quot;128&quot;&gt;
   &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;ViewData/ViewBag&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
   &lt;td style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt; width: 68.25pt;&quot; width=&quot;91&quot;&gt;
   &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;TempData&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
   &lt;td style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;&quot;&gt;
   &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;Hidden fields&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
   &lt;td style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt; width: 49.5pt;&quot; width=&quot;66&quot;&gt;
   &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;Session&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;/tr&gt;
&lt;/thead&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt; width: 123.0pt;&quot; width=&quot;164&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;Controller to Controller&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt; width: 96.0pt;&quot; width=&quot;128&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;No&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt; width: 68.25pt;&quot; width=&quot;91&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Yes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;No&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt; width: 49.5pt;&quot; width=&quot;66&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Yes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt; width: 123.0pt;&quot; width=&quot;164&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;Controller to View&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt; width: 96.0pt;&quot; width=&quot;128&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Yes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt; width: 68.25pt;&quot; width=&quot;91&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;No&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;No&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt; width: 49.5pt;&quot; width=&quot;66&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Yes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt; width: 123.0pt;&quot; width=&quot;164&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; padding: 0in;&quot;&gt;View to Controller&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt; width: 96.0pt;&quot; width=&quot;128&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;No&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt; width: 68.25pt;&quot; width=&quot;91&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;No&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Yes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid #CCCCCC 1.0pt; border-left: none; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-bottom-alt: solid #CCCCCC .75pt; mso-border-right-alt: solid #CCCCCC .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt; width: 49.5pt;&quot; width=&quot;66&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Yes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;WhatisdifferencebetweenTempDataandViewDa&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt; padding: 0in;&quot;&gt;What is difference between TempData and ViewData ?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;“TempData”
maintains data for the complete request while “ViewData” maintains data only
from Controller to the view.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Does“TempData”preservedatainthenextreque&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt; padding: 0in;&quot;&gt;Does “TempData” preserve data in the next request also?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;“TempData”
is available through out for the current request and in the subsequent request
it’s available depending on whether “TempData” is read or not.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;So
if “TempData” is once read it will not be available in the subsequent request.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;WhatistheuseofKeepandPeekin“TempData”&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt; padding: 0in;&quot;&gt;What is the use of Keep and Peek in “TempData”?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Once
“TempData” is read in the current request it’s not available in the subsequent
request. If we want “TempData” to be read and also available in the subsequent
request then after reading we need to call “Keep” method as shown in the code
below.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;@TempData[“MyData”];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;TempData.Keep(“MyData”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;The
more shortcut way of achieving the same is by using “Peek”. This function helps
to read as well advices MVC to maintain “TempData” for the subsequent request.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;string
str = TempData.Peek(&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;Td&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;).ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;If
you want to read more in detail you can read from this detailed blog on&amp;nbsp;&lt;a href=&quot;http://www.codeproject.com/Articles/818493/MVC-Tempdata-Peek-and-Keep-confusion&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; padding: 0in;&quot;&gt;MVC Peek and Keep&lt;/span&gt;&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;What_are_partial_views_in_MVC&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;What are partial views in MVC?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Partial
view is a reusable view (like a user control) which can be embedded inside
other view. For example let’s say all your pages of your site have a standard
structure with left menu, header, and footer as shown in the image below.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_26&quot; o:spid=&quot;_x0000_i1050&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/5.jpg&quot;
 style=&#39;width:185.25pt;height:176.25pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image008.jpg&quot;
  o:title=&quot;5&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img alt=&quot;http://www.codeproject.com/KB/aspnet/556995/5.jpg&quot; border=&quot;0&quot; height=&quot;235&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image008.jpg&quot; v:shapes=&quot;Picture_x0020_26&quot; width=&quot;247&quot; /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;Figure: Partial views
in MVC&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;For
every page you would like to reuse the left menu, header, and footer controls.
So you can go and create partial views for each of these items and then you
call that partial view in the main view.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;How_did_you_create_partial_view_and_cons&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;How did you create a partial view and consume it?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;When
you add a view to your project you need to check the “Create partial view”
check box.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_25&quot; o:spid=&quot;_x0000_i1049&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/6.jpg&quot;
 style=&#39;width:4in;height:279pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image009.jpg&quot;
  o:title=&quot;6&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img alt=&quot;http://www.codeproject.com/KB/aspnet/556995/6.jpg&quot; border=&quot;0&quot; height=&quot;372&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image009.jpg&quot; v:shapes=&quot;Picture_x0020_25&quot; width=&quot;384&quot; /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;Figure: Create partial
view&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Once
the partial view is created you can then call the partial view in the main view
using the&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;Html.RenderPartial&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;method
as shown in the below code snippet:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; Html.RenderPartial(&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;MyView&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;); &lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; padding: 0in;&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;How_can_we_do_validations_in_MVC&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;How can we do validations in MVC?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;One
of the easiest ways of doing validation in MVC is by using data annotations.
Data annotations are nothing but attributes which can be applied on model
properties. For example, in the below code snippet we have a simple&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;Customer&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;class with a
property&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;customercode&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;This&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;CustomerCode&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;property is
tagged with a&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;Required&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;data annotation attribute. In other words if this model is
not provided customer code, it will not accept it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;class&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; Customer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Required(ErrorMessage=&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;Customer code is
required&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;)]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; CustomerCode&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;set&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;get&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;}&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;In
order to display the validation error message we need to use the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;ValidateMessageFor&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;method
which belongs to the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;Html&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;helper class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; (Html.BeginForm(&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;PostCustomer&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;Home&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;,
FormMethod.Post))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;{ &lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; padding: 0in;&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;=Html.TextBoxFor(m =&amp;gt;
m.CustomerCode)&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; padding: 0in;&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;=Html.ValidationMessageFor(m
=&amp;gt; m.CustomerCode)&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; padding: 0in;&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;=&quot;submit&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;=&quot;Submit customer data&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; padding: 0in;&quot;&gt;%&amp;gt;&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Later
in the controller we can check if the model is proper or not by using the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;ModelState.IsValid&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;property
and accordingly we can take actions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; ActionResult PostCustomer(Customer obj)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;if&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; (ModelState.IsValid)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.Save();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; View(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;Thanks&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;else&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; View(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;Customer&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Below
is a simple view of how the error message is displayed on the view.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_24&quot; o:spid=&quot;_x0000_i1048&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/7.jpg&quot;
 style=&#39;width:311.25pt;height:105.75pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image010.jpg&quot;
  o:title=&quot;7&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img alt=&quot;http://www.codeproject.com/KB/aspnet/556995/7.jpg&quot; border=&quot;0&quot; height=&quot;141&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image010.jpg&quot; v:shapes=&quot;Picture_x0020_24&quot; width=&quot;415&quot; /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9pt;&quot;&gt;Figure: Validations in
MVC&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Can_we_display_all_errors_in_one_go&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;Can we display all errors in one go?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Yes,
we can; use the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;ValidationSummary&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;method from the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;Html&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;helper class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;=
Html.ValidationSummary() &lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; padding: 0in;&quot;&gt;%&amp;gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;What
are the other data annotation attributes for validation in MVC?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;If
you want to check string length, you can use&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;StringLength&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;[StringLength(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;160&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;)]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; FirstName { &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;get&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;set&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;In
case you want to use a regular expression, you can use the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;RegularExpression&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;attribute.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;[RegularExpression(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;@&quot;[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;)]&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; Email { &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;get&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;set&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;If
you want to check whether the numbers are in range, you can use the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;Range&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;attribute.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;[Range(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;10&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;25&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;)]&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;int&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; Age { &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;get&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;set&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Sometimes
you would like to compare the value of one field with another field, we can use
the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;Compare&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;attribute.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; Password { &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;get&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;set&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;; }[Compare(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;Password&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;)]&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; ConfirmPass { &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;get&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;set&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;In
case you want to get a particular error message , you can use the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;Errors&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;collection.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;var&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; ErrMessage = ModelState[&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;Email&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;].Errors[&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;0&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;].ErrorMessage;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;If
you have created the model object yourself you can explicitly call&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;TryUpdateModel&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;in
your controller to check if the object is valid or not.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;TryUpdateModel(NewCustomer);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;In
case you want add errors in the controller you can use the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;AddModelError&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;function.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;ModelState.AddModelError(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;FirstName&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;, &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;This is my server-side error.&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;How_can_we_enable_data_annotation_valida&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;How can we enable data annotation validation on client side?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;It’s
a two-step process: first reference the necessary jQuery files.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;script src=&quot;&amp;lt;/span&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;&lt;%= Url.Content(&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;~/Scripts/jquery-1.&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;5&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;.&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;1&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;.js&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;) %&gt;&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; type=&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&gt;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&lt;/&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;script&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&gt;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&lt;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;script&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;src&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;=&quot;&lt;%= Url.Content(&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;~&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;/&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;Scripts&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;/&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;jquery.validate.js&quot;)&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;%&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&gt;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot; type=&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;text/javascript&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;&gt;&lt;/script&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&lt;script cs=&quot;&quot; src=&quot;&amp;lt;/span&amp;gt;&amp;lt;span lang=&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;%= Url.Content(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;~/Scripts/jquery.validate.unobtrusive.js&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;) &lt;span style=&quot;border: 1pt none windowtext; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;%&gt;&lt;/span&gt;&quot;
type=&quot;text/javascript&quot;&gt;&lt;/script&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;The
second step is to call the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;EnableClientValidation&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;method.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;
Html.EnableClientValidation(); &lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; padding: 0in;&quot;&gt;%&amp;gt;&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;What_is_razor_in_MVC&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;What is Razor in MVC?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;It’s
a light weight view engine. Till MVC we had only one view type, i.e., ASPX.
Razor was introduced in MVC 3.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Why_razor_when_we_already_had_ASPX&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;Why Razor when we already have ASPX?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Razor
is clean, lightweight, and syntaxes are easy as compared to ASPX. For example, in
ASPX to display simple time, we need to write:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;=DateTime.Now&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; padding: 0in;&quot;&gt;%&amp;gt;&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;In
Razor, it’s just one line of code:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;@DateTime.Now&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;So_which_is_a_better_fit_Razor_or_ASPX&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;So which is a better fit, Razor or ASPX?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;As
per Microsoft, Razor is more preferred because it’s light weight and has simple
syntaxes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;How_can_you_do_authentication_and_author&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;How can you do authentication and authorization in MVC?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;You
can use Windows or Forms authentication for MVC.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;How_to_implement_windows_authentication_&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;How to implement Windows authentication for MVC?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;For
Windows authentication you need to modify the&amp;nbsp;&lt;i&gt;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;web.config&lt;/span&gt;&lt;/i&gt;&amp;nbsp;file
and set the authentication mode to Windows.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;authentication&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;mode&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;=&quot;Windows&quot;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;authorization&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;deny&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;users&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;=&quot;?&quot;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;authorization&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Then
in the controller or on the action, you can use the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;Authorize&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;attribute which
specifies which users have access to these controllers and actions. Below is
the code snippet for that. Now only the users specified in the controller and
action can access it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;[Authorize(Users= &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;@&quot;WIN-3LI600MWLQN\Administrator&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;)]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;class&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; StartController :
Controller&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;//&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;// GET: /Start/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
[Authorize(Users = &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;@&quot;WIN-3LI600MWLQN\Administrator&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;)]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; ActionResult Index()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; View(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;MyView&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;How_do_you_implement_forms_authenticatio&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;How do you implement Forms authentication in MVC?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Forms
authentication is implemented the same way as in ASP.NET. The first step is to
set the authentication mode equal to&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;Forms&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;. The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;loginUrl&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;points to a controller here rather than
a page.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;authentication&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;mode&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;=&quot;Forms&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;forms&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;loginUrl&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;=&quot;~/Home/Login&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;timeout&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;=&quot;2880&quot;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;authentication&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;We
also need to create a controller where we will check if the user is proper or
not. If the user is proper we will set the cookie value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; ActionResult Login()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;if&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; ((Request.Form[&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;txtUserName&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;] == &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;Shiv&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;) &amp;amp;&amp;amp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Request.Form[&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;txtPassword&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;] == &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;Shiv@123&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
FormsAuthentication.SetAuthCookie(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;Shiv&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;true&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; View(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;About&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;else&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; View(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;Index&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;All
the other actions need to be attributed with the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;Authorize&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;attribute so
that any unauthorized user making a call to these controllers will be
redirected to the controller (in this case the controller is “Login”) which
will do the authentication.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;[Authorize]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;PublicActionResult Default()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; View();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;[Authorize]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;publicActionResult About()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; View();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;How_to_implement_Ajax_in_MVC&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 22.5pt;&quot;&gt;How to implement AJAX in MVC?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;You
can implement AJAX in two ways in MVC:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0in 0in 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;AJAX libraries&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0in 0in 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;jQuery&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Below
is a simple sample of how to implement AJAX by using the “AJAX” helper library.
In the below code you can see we have a simple form which is created by using
the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;Ajax.BeginForm&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;&amp;nbsp;syntax.
This form calls a controller action called&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; padding: 0in;&quot;&gt;getCustomer&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;. So now the submit action click will be an
asynchronous AJAX call.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot; class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt; text-align: right;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 8.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;script language=&quot;&amp;lt;/span&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;javascript&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; OnSuccess(data1) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in; background-color: rgb(255, 255, 255);&quot;&gt;//
Do something here&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;&lt;%&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var AjaxOpt = &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; AjaxOptions{OnSuccess=&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;OnSuccess&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;};&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&lt;%
&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; (Ajax.BeginForm(&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;getCustomer&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;MyAjax&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;,AjaxOpt)) {
%&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&lt;input
id=&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;txtCustomerCode&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; type=&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;text&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; /&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&lt;input
id=&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;txtCustomerName&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; type=&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;text&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; /&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&lt;input
id=&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;Submit2&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; type=&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;submit&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; value=&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;submit&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;/&gt;&lt;/div&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&lt;%}
%&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;In
case you want to make AJAX calls on hyperlink clicks, you can use the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;Ajax.ActionLink&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;function
as shown in the below code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_23&quot; o:spid=&quot;_x0000_i1047&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/8.jpg&quot;
 style=&#39;width:228pt;height:144.75pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image011.jpg&quot;
  o:title=&quot;8&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;304&quot; height=&quot;193&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image011.jpg&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/8.jpg&quot; v:shapes=&quot;Picture_x0020_23&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-size: 9pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Figure: Implement AJAX
in MVC&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;So
if you want to create an AJAX asynchronous hyperlink by name&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;GetDate&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;which calls the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;GetDate&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;function in the
controller, below is the code for that. Once the controller responds, this data
is displayed in the HTML&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;DIV&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;tag named&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;DateDiv&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;=&quot;DateDiv&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;/&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;&lt;%&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;Ajax.ActionLink(&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;Get Date&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;GetDate&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; AjaxOptions {UpdateTargetId = &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;DateDiv&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; })&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;%&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;Below
is the controller code. You can see how the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;GetDate&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;function has a pause of 10 seconds.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;class&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; Default1Controller :
Controller&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; GetDate()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Thread.Sleep(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;10000&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; DateTime.Now.ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;The
second way of making an AJAX call in MVC is by using jQuery. In the below code
you can see we are making an AJAX POST call to a URL&amp;nbsp;&lt;i&gt;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;/MyAjax/getCustomer&lt;/span&gt;&lt;/i&gt;. This is done by using&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;$.post&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;. All this logic is
put into a function called&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;GetData&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;and you can make a call to the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;GetData&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;function on a
button or a hyperlink click event as you want.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;function GetData() &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;var&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; url = &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;/MyAjax/getCustomer&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $.post(url,
function (data) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;#txtCustomerCode&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;).val(data.CustomerCode);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;#txtCustomerName&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;).val(data.CustomerName);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;What_kind_of_events_can_be_tracked_in_AJ&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;What kind of events can be tracked in AJAX?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_22&quot; o:spid=&quot;_x0000_i1046&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/9.jpg&quot;
 style=&#39;width:348pt;height:110.25pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image012.jpg&quot;
  o:title=&quot;9&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;464&quot; height=&quot;147&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image012.jpg&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/9.jpg&quot; v:shapes=&quot;Picture_x0020_22&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-size: 9pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Figure: Tracked in
AJAX&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;What_is_the_difference_between_“ActionRe&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;What is the difference between ActionResult and ViewResult?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;ActionResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;is an abstract class while&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;ViewResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;derives from the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;ActionResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;class.&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;ActionResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;has several
derived classes like&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;ViewResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;JsonResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;FileStreamResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;, and so on.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;ActionResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;can be used to exploit polymorphism and dynamism. So if
you are returning different types of views dynamically,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;ActionResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;is the best
thing. For example in the below code snippet, you can see we have a simple
action called&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;DynamicView&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;. Depending on the flag (&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;IsHtmlView&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;) it will either return a&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;ViewResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;or&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;JsonResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; ActionResult DynamicView()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;if&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; (IsHtmlView)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; View(); &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// returns simple ViewResult&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;else&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; Json(); &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// returns JsonResult view&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;What_are_the_different_types_of_results_&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;What are the different types of results in MVC?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Note&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;: It’s difficult to
remember all the 12 types. But some important ones you can remember for the
interview are&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;ActionResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;ViewResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;, and&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;JsonResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;. Below is a detailed list for your interest:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;There
12 kinds of results in MVC, at the top is the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;ActionResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;class which is a
base class that can have 11 subtypes as listed below:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;1.&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;ViewResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;- Renders a
specified view to the response stream&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;2.&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;PartialViewResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;-
Renders a specified partial view to the response stream&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;3.&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;EmptyResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;- An empty
response is returned&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;4.&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;RedirectResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;-
Performs an HTTP redirection to a specified URL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;5.&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;RedirectToRouteResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;- Performs an HTTP redirection to a URL that is determined
by the routing engine, based on given route data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;6.&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;JsonResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;- Serializes a
given&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;ViewData&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;object to JSON format&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;7.&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;JavaScriptResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;-
Returns a piece of JavaScript code that can be executed on the client&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;8.&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;ContentResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;-
Writes content to the response stream without requiring a view&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;9.&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;FileContentResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;-
Returns a file to the client&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;10.&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;FileStreamResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;-
Returns a file to the client, which is provided by a&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;Stream&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;11.&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;FilePathResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;-
Returns a file to the client&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;What_are_“ActionFilters”in_MVC&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;What are ActionFilters in MVC?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;ActionFilters
help you to perform logic while an MVC action is executing or after an MVC
action has executed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_21&quot; o:spid=&quot;_x0000_i1045&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/10.jpg&quot;
 style=&#39;width:210pt;height:174pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image013.jpg&quot;
  o:title=&quot;10&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;280&quot; height=&quot;232&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image013.jpg&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/10.jpg&quot; v:shapes=&quot;Picture_x0020_21&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-size: 9pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Figure: ActionFilters
in MVC&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Action
filters are useful in the following scenarios:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;1.&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;Implement post-processing logic before the
action happens.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;2.&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;Cancel a current execution.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;3.&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;Inspect the returned value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;4.&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;Provide extra data to the action.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;You
can create action filters by two ways:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;Inline action filter.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;Creating an&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;ActionFilter&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;attribute.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;To
create an inline action attribute we need to implement the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;IActionFilter&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;interface.
The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;IActionFilter&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;interface
has two methods:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;OnActionExecuted&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;OnActionExecuting&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;. We can implement pre-processing logic or
cancellation logic in these methods.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;class&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; Default1Controller :
Controller , IActionFilter&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; ActionResult Index(Customer obj)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; View(obj);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;void&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;
IActionFilter.OnActionExecuted(ActionExecutedContext filterContext)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trace.WriteLine(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;Action
Executed&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;void&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;
IActionFilter.OnActionExecuting(ActionExecutingContext filterContext)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Trace.WriteLine(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;Action
is executing&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;The
problem with the inline action attribute is that it cannot be reused across
controllers. So we can convert the inline action filter to an action filter
attribute. To create an action filter attribute we need to inherit from&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;ActionFilterAttribute&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;and implement the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;IActionFilter&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;interface as shown in the below code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;class&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; MyActionAttribute :
ActionFilterAttribute , IActionFilter&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;void&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;
IActionFilter.OnActionExecuted(ActionExecutedContext filterContext)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trace.WriteLine(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;Action
Executed&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;void&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;
IActionFilter.OnActionExecuting(ActionExecutingContext filterContext)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Trace.WriteLine(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;Action
executing&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;Later
we can decorate the controllers on which we want the action attribute to
execute. You can see in the below code I have decorated the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;Default1Controller&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;with
the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;MyActionAttribute&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;class
which was created in the previous code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;[MyActionAttribute]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;class&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; Default1Controller :
Controller &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; ActionResult Index(Customer obj)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; View(obj);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;Can_we_create_our_custom_view_engine_usi&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;Can we create our custom view engine using MVC?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Yes,
we can create our own custom view engine in MVC. To create our own custom view
engine we need to follow three steps:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Let’
say we want to create a custom view engine where in the user can type a command
like “&lt;datetime&gt;” and it should display the current date and time.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Step 1&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;: We need to create a
class which implements the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;IView&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;interface. In this class we should write
the logic of how the view will be rendered in the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;render&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;function. Below
is a simple code snippet for that.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;class&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; MyCustomView : IView&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;private&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; _FolderPath; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// Define where&amp;nbsp; our views are stored&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; FolderPath&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;get&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; { &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; _FolderPath; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;set&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; { _FolderPath = value; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;void&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; Render(ViewContext viewContext, System.IO.TextWriter
writer)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// Parsing logic &lt;datetime&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// read the view file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; strFileData = File.ReadAllText(_FolderPath);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// we need to and replace &lt;datetime&gt;
datetime.now value&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; strFinal = strFileData.Replace(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;&lt;datetime&gt;&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;, DateTime.Now.ToString());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// this replaced data has to sent for display&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
writer.Write(strFinal); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Step 2&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;: We need to create a
class which inherits from&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;VirtualPathProviderViewEngine&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;and in this class we need to provide the
folder path and the extension of the view name. For instance, for Razor the
extension is “cshtml”; for aspx, the view extension is “.aspx”, so in the same
way for our custom view, we need to provide an extension. Below is how the code
looks like. You can see the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;ViewLocationFormats&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;is set to the&amp;nbsp;&lt;i&gt;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Views&lt;/span&gt;&lt;/i&gt;&amp;nbsp;folder and the extension is “&lt;i&gt;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;.myview&lt;/span&gt;&lt;/i&gt;”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;class&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; MyViewEngineProvider :
VirtualPathProviderViewEngine&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// We will create the object of Mycustome
view&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; MyViewEngineProvider() &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// constructor&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// Define the location of the View file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;this&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;.ViewLocationFormats = &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;new&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;[] { &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;~/Views/{1}/{0}.myview&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;, &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;~/Views/Shared/{0}.myview&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; }; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;//location and extension of our views&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;protected&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;override&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; IView CreateView(&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
ControllerContext controllerContext, &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; viewPath, &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; masterPath)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;var&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; physicalpath =
controllerContext.HttpContext.Server.MapPath(viewPath);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
MyCustomView obj = &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;new&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; MyCustomView(); &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// Custom view engine class&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
obj.FolderPath = physicalpath; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// set the path where the views will be
stored&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; obj; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// returned this view paresing&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// logic so that it can be registered in the
view engine collection&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;protected&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;override&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; IView CreatePartialView(ControllerContext
controllerContext, &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; partialPath)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;var&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; physicalpath = controllerContext.HttpContext.Server.MapPath(partialPath);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
MyCustomView obj = &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;new&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; MyCustomView(); &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// Custom view engine class&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
obj.FolderPath = physicalpath; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// set the path where the views will be
stored&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; obj;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// returned this view paresing logic&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// so that it can be registered in the view
engine collection&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Step 3&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;: We need to register
the view in the custom view collection. The best place to register the custom
view engine in the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;ViewEngines&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;collection is the&amp;nbsp;&lt;i&gt;&lt;span style=&quot;border:none windowtext 1.0pt;
mso-border-alt:none windowtext 0in;padding:0in&quot;&gt;global.asax&lt;/span&gt;&lt;/i&gt;&amp;nbsp;file.
Below is the code snippet for that.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;protected&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;void&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; Application_Start()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// Step3 :-&amp;nbsp;
register this object in the view engine collection&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
ViewEngines.Engines.Add(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;new&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; MyViewEngineProvider());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; …..&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Below
is a simple output of the custom view written using the commands defined at the
top.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_20&quot; o:spid=&quot;_x0000_i1044&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/11.jpg&quot;
 style=&#39;width:330pt;height:63pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image014.jpg&quot;
  o:title=&quot;11&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;440&quot; height=&quot;84&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image014.jpg&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/11.jpg&quot; v:shapes=&quot;Picture_x0020_20&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-size: 9pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Figure: Custom view
engine using MVC&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;If
you invoke this view, you should see the following output:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_19&quot; o:spid=&quot;_x0000_i1043&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/12.jpg&quot;
 style=&#39;width:309pt;height:69pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image015.jpg&quot;
  o:title=&quot;12&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;412&quot; height=&quot;92&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image016.jpg&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/12.jpg&quot; v:shapes=&quot;Picture_x0020_19&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;How_to_send_result_back_in_JSON_format_i&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;How to send result back in JSON format in MVC&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;In
MVC, we have the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;JsonResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;class by which we can return back data in JSON format.
Below is a simple sample code which returns back a&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;Customer&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;object in JSON
format using&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;JsonResult&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; JsonResult getCustomer()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer obj = &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; Customer();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.CustomerCode = &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;1001&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.CustomerName = &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;Shiv&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; Json(obj,JsonRequestBehavior.AllowGet);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Below
is the JSON output of the above code if you invoke the action via the browser.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_18&quot; o:spid=&quot;_x0000_i1042&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/13.jpg&quot;
 style=&#39;width:414pt;height:69pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image017.jpg&quot;
  o:title=&quot;13&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;552&quot; height=&quot;92&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image017.jpg&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/13.jpg&quot; v:shapes=&quot;Picture_x0020_18&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;What_is_“WebAPI”&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;What is WebAPI?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;HTTP
is the most used protocol. For the past many years, browser was the most
preferred client by which we consumed data exposed over HTTP. But as years
passed by, client variety started spreading out. We had demand to consume data
on HTTP from clients like mobile, JavaScript, Windows applications, etc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;For
satisfying the broad range of clients REST was the proposed approach. You can
read more about REST from the WCF chapter.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;WebAPI
is the technology by which you can expose data over HTTP following REST principles.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;But_WCF_SOAP_also_does_the_same_thing,_s&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;But WCF SOAP also does the same thing, so how does WebAPI
differ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;MsoNormalTable&quot; border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; style=&quot;border-collapse: collapse; border: none; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
 &lt;thead&gt;
&lt;tr&gt;
   &lt;td style=&quot;border-style: none solid solid none; border-bottom-color: rgb(204, 204, 204); border-bottom-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; padding: 3.75pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;&lt;/td&gt;
   &lt;td style=&quot;border-style: none solid solid none; border-bottom-color: rgb(204, 204, 204); border-bottom-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; padding: 3.75pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
   &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;SOAP&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
   &lt;td width=&quot;366&quot; style=&quot;width: 274.5pt; border-style: none solid solid none; border-bottom-color: rgb(204, 204, 204); border-bottom-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; padding: 3.75pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
   &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;WEB API&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
  &lt;/tr&gt;
&lt;/thead&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top:none;border-left:none;border-bottom:solid #CCCCCC 1.0pt;
  border-right:solid #CCCCCC 1.0pt;mso-border-bottom-alt:solid #CCCCCC .75pt;
  mso-border-right-alt:solid #CCCCCC .75pt;padding:3.75pt 3.75pt 3.75pt 3.75pt&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Size&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-top:none;border-left:none;border-bottom:solid #CCCCCC 1.0pt;
  border-right:solid #CCCCCC 1.0pt;mso-border-bottom-alt:solid #CCCCCC .75pt;
  mso-border-right-alt:solid #CCCCCC .75pt;padding:3.75pt 3.75pt 3.75pt 3.75pt&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Heavy weight because
  of complicated WSDL structure.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
  &lt;td width=&quot;366&quot; style=&quot;width:274.5pt;border-top:none;border-left:none;
  border-bottom:solid #CCCCCC 1.0pt;border-right:solid #CCCCCC 1.0pt;
  mso-border-bottom-alt:solid #CCCCCC .75pt;mso-border-right-alt:solid #CCCCCC .75pt;
  padding:3.75pt 3.75pt 3.75pt 3.75pt&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Light weight, only
  the necessary information is transferred.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top:none;border-left:none;border-bottom:solid #CCCCCC 1.0pt;
  border-right:solid #CCCCCC 1.0pt;mso-border-bottom-alt:solid #CCCCCC .75pt;
  mso-border-right-alt:solid #CCCCCC .75pt;padding:3.75pt 3.75pt 3.75pt 3.75pt&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Protocol&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-top:none;border-left:none;border-bottom:solid #CCCCCC 1.0pt;
  border-right:solid #CCCCCC 1.0pt;mso-border-bottom-alt:solid #CCCCCC .75pt;
  mso-border-right-alt:solid #CCCCCC .75pt;padding:3.75pt 3.75pt 3.75pt 3.75pt&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Independent of
  protocols.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
  &lt;td width=&quot;366&quot; style=&quot;width:274.5pt;border-top:none;border-left:none;
  border-bottom:solid #CCCCCC 1.0pt;border-right:solid #CCCCCC 1.0pt;
  mso-border-bottom-alt:solid #CCCCCC .75pt;mso-border-right-alt:solid #CCCCCC .75pt;
  padding:3.75pt 3.75pt 3.75pt 3.75pt&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Only for HTTP
  protocol&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top:none;border-left:none;border-bottom:solid #CCCCCC 1.0pt;
  border-right:solid #CCCCCC 1.0pt;mso-border-bottom-alt:solid #CCCCCC .75pt;
  mso-border-right-alt:solid #CCCCCC .75pt;padding:3.75pt 3.75pt 3.75pt 3.75pt&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Formats&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-top:none;border-left:none;border-bottom:solid #CCCCCC 1.0pt;
  border-right:solid #CCCCCC 1.0pt;mso-border-bottom-alt:solid #CCCCCC .75pt;
  mso-border-right-alt:solid #CCCCCC .75pt;padding:3.75pt 3.75pt 3.75pt 3.75pt&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;To parse SOAP
  message, the client needs to understand WSDL format. Writing custom code for
  parsing WSDL is a heavy duty task. If your client is smart enough to create
  proxy objects like how we have in .NET (add reference) then SOAP is easier to
  consume and call.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
  &lt;td width=&quot;366&quot; style=&quot;width:274.5pt;border-top:none;border-left:none;
  border-bottom:solid #CCCCCC 1.0pt;border-right:solid #CCCCCC 1.0pt;
  mso-border-bottom-alt:solid #CCCCCC .75pt;mso-border-right-alt:solid #CCCCCC .75pt;
  padding:3.75pt 3.75pt 3.75pt 3.75pt&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Output of WebAPI are
  simple string messages, JSON, simple XML format, etc. So writing parsing
  logic for that is very easy.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top:none;border-left:none;border-bottom:solid #CCCCCC 1.0pt;
  border-right:solid #CCCCCC 1.0pt;mso-border-bottom-alt:solid #CCCCCC .75pt;
  mso-border-right-alt:solid #CCCCCC .75pt;padding:3.75pt 3.75pt 3.75pt 3.75pt&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Principles&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-top:none;border-left:none;border-bottom:solid #CCCCCC 1.0pt;
  border-right:solid #CCCCCC 1.0pt;mso-border-bottom-alt:solid #CCCCCC .75pt;
  mso-border-right-alt:solid #CCCCCC .75pt;padding:3.75pt 3.75pt 3.75pt 3.75pt&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;SOAP follows WS-*
  specification.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
  &lt;td width=&quot;366&quot; style=&quot;width:274.5pt;border-top:none;border-left:none;
  border-bottom:solid #CCCCCC 1.0pt;border-right:solid #CCCCCC 1.0pt;
  mso-border-bottom-alt:solid #CCCCCC .75pt;mso-border-right-alt:solid #CCCCCC .75pt;
  padding:3.75pt 3.75pt 3.75pt 3.75pt&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;WebAPI follows REST
  principles. (Please refer to REST in WCF chapter.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;With_WCF_also_you_can_implement_REST,So_&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;With WCF you can implement REST, so why WebAPI?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;WCF
was brought into implement SOA, the intention was never to implement REST.
WebAPI is built from scratch and the only goal is to create HTTP services using
REST. Due to the one point focus for creating REST service, WebAPI is more
preferred.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;How to implement WebAPI in MVC&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 14.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Below
are the steps to implement WebAPI:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Step 1&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;: Create the project
using the WebAPI template.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_17&quot; o:spid=&quot;_x0000_i1041&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/14.jpg&quot;
 style=&#39;width:195pt;height:174pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image018.jpg&quot;
  o:title=&quot;14&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;260&quot; height=&quot;232&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image018.jpg&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/14.jpg&quot; v:shapes=&quot;Picture_x0020_17&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-size: 9pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Figure: Implement
WebAPI in MVC&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Step 2&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;: Once you have
created the project you will notice that the controller now inherits from&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;ApiController&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;and
you can now implement POST, GET, PUT, and DELETE methods of the HTTP protocol.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;class&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; ValuesController :
ApiController&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// GET api/values&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; IEnumerable&lt;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&gt; Get()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;new&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;[] { &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;value1&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;, &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;value2&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; };&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// GET api/values/5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; Get(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;int&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; id)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;value&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// POST api/values&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;void&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; Post([FromBody]&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; value)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// PUT api/values/5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;void&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; Put(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;int&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; id, [FromBody]&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; value)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;// DELETE api/values/5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;void&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; Delete(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;int&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; id)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Step 3&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;: If you make an HTTP
GET call you should get the below results:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_16&quot; o:spid=&quot;_x0000_i1040&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/15.jpg&quot;
 style=&#39;width:285.75pt;height:174.75pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image019.jpg&quot;
  o:title=&quot;15&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;381&quot; height=&quot;233&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image019.jpg&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/15.jpg&quot; v:shapes=&quot;Picture_x0020_16&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-size: 9pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Figure: HTTP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;HowcanwedetectthataMVCcontrolleriscalled&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;How can we detect that an MVC controller is called by POST or
GET?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;To
detect if the call on the controller is a POST action or a GET action we can
use the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;Request.HttpMethod&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;property as shown in the below code snippet.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; ActionResult SomeAction()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;if&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; (Request.HttpMethod == &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;POST&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; View(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;SomePage&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;else&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;return&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; View(&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;SomeOtherPage&quot;&lt;/span&gt;&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span lang=&quot;CS&quot; style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;WhatisBundlingandminificationinMVC&quot;&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;What is bundling and minification in MVC?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Bundling
and minification helps us improve request load times of a page thus increasing
performance.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;Howdoesbundlingincreaseperformance&quot;&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;How does bundling increase performance?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Web
projects always need CSS and script files. Bundling helps us combine multiple
JavaScript and CSS files in to a single entity thus minimizing multiple
requests in to a single request.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;For
example consider the below web request to a page . This page consumes two
JavaScript files&amp;nbsp;&lt;i&gt;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:
none windowtext 0in;padding:0in&quot;&gt;Javascript1.js&lt;/span&gt;&lt;/i&gt;and&amp;nbsp;&lt;i&gt;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Javascript2.js&lt;/span&gt;&lt;/i&gt;. So when this is page is requested it
makes three request calls:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;One for the Index
page.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;Two requests for the
other two JavaScript files:&amp;nbsp;&lt;i&gt;&lt;span style=&quot;border:none windowtext 1.0pt;
mso-border-alt:none windowtext 0in;padding:0in&quot;&gt;Javascript1.js&lt;/span&gt;&lt;/i&gt;&amp;nbsp;and&amp;nbsp;&lt;i&gt;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Javascript2.js&lt;/span&gt;&lt;/i&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;The
below scenario can become worse if we have a lot of JavaScript files resulting
in multiple requests, thus decreasing performance. If we can somehow combine
all the JS files into a single bundle and request them as a single unit that
would result in increased performance (see the next figure which has a single
request).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_15&quot; o:spid=&quot;_x0000_i1039&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/image1.png&quot;
 style=&#39;width:429pt;height:135pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image020.png&quot;
  o:title=&quot;image1&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;572&quot; height=&quot;180&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image020.png&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/image1.png&quot; v:shapes=&quot;Picture_x0020_15&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_14&quot; o:spid=&quot;_x0000_i1038&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/image2.png&quot;
 style=&#39;width:399pt;height:129pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image021.png&quot;
  o:title=&quot;image2&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;532&quot; height=&quot;172&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image021.png&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/image2.png&quot; v:shapes=&quot;Picture_x0020_14&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;SohowdoweimplementbundlinginMVC&quot;&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;So
how do we implement bundling in MVC?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Open&amp;nbsp;&lt;i&gt;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;BundleConfig.cs&lt;/span&gt;&lt;/i&gt;&amp;nbsp;from the&amp;nbsp;&lt;i&gt;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;App_Start&lt;/span&gt;&lt;/i&gt;&amp;nbsp;folder.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;center&quot; style=&quot;text-align: center; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape
 id=&quot;Picture_x0020_13&quot; o:spid=&quot;_x0000_i1037&quot; type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/image3.png&quot;
 style=&#39;width:140.25pt;height:129pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image022.png&quot;
  o:title=&quot;image3&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;187&quot; height=&quot;172&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image022.png&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/image3.png&quot; v:shapes=&quot;Picture_x0020_13&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;In&amp;nbsp;&lt;i&gt;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;BundleConfig.cs&lt;/span&gt;&lt;/i&gt;, add the JS files you want bundle into
a single entity in to the bundles collection. In the below code we are
combining all the javascript JS files which exist in the&amp;nbsp;&lt;i&gt;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Scripts&lt;/span&gt;&lt;/i&gt;&amp;nbsp;folder as a single unit in to the bundle
collection.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;bundles.Add(&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; ScriptBundle(&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;~/Scripts/MyScripts&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;).Include(&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;~/Scripts/*.js&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;)); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Below
is how your&amp;nbsp;&lt;i&gt;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:
none windowtext 0in;padding:0in&quot;&gt;BundleConfig.cs&lt;/span&gt;&lt;/i&gt;&amp;nbsp;file will look
like:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; BundleConfig&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; RegisterBundles(BundleCollection bundles)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bundles.Add(&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; ScriptBundle(&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;~/Scripts/MyScripts&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;).Include(&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;~/Scripts/*.js&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BundleTable.EnableOptimizations = &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Once
you have combined your scripts into one single unit we then to include all the
JS files into the view using the below code. The below code needs to be put in
the ASPX or Razor view.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;&lt;%&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;= Scripts.Render(&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;~/Scripts/MyScripts&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;)&amp;nbsp; &lt;span style=&quot;border: 1pt none windowtext; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;%&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;If
you now see your page requests you would see that script request is combined
into one request.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_12&quot; o:spid=&quot;_x0000_i1036&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/image4.png&quot;
 style=&#39;width:399pt;height:129pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image021.png&quot;
  o:title=&quot;image4&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;532&quot; height=&quot;172&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image021.png&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/image4.png&quot; v:shapes=&quot;Picture_x0020_12&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;Howcanyoutestbundlingindebugmode&quot;&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;How
can you test bundling in debug mode?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;If
you are in a debug mode you need to set&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;EnableOptimizations&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;to true in the&amp;nbsp;&lt;i&gt;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;bundleconfig.cs&lt;/span&gt;&lt;/i&gt;&amp;nbsp;file or else you will not see the
bundling effect in the page requests.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;BundleTable.EnableOptimizations
= &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;Explainminificationandhowtoimplementthes&quot;&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Explain minification and how to implement it&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Minification
reduces the size of script and CSS files by removing blank spaces , comments
etc. For example below is a simple javascript code with comments.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in; background-color: rgb(255, 255, 255);&quot;&gt;//
This is test&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;var
x = &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;x =
x + &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;x =
x * &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;After
implementing minification the JavaScript code looks like below. You can see how
whitespaces and comments are removed to minimize file size, thus increasing
performance.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;var
x=0;x=x+1;x=x*&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;Howtoimplementminification&quot;&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;How do we implement
minification?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;When
you implement bundling, minification is implemented by itself. In other words
the steps to implement bundling and minification are the same.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;ExplainAreasinMVC&quot;&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Explain Areas in MVC?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Areas
help you to group functionalities in to independent modules thus making your
project more organized. For example in the below MVC project we have four
controller classes and as time passes by if more controller classes are added
it will be difficult to manage. In bigger projects you will end up with 100’s
of controller classes making life hell for maintenance.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_11&quot; o:spid=&quot;_x0000_i1035&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/MVCArea1.jpg&quot;
 style=&#39;width:285pt;height:123.75pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image023.jpg&quot;
  o:title=&quot;MVCArea1&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;380&quot; height=&quot;165&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image023.jpg&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/MVCArea1.jpg&quot; v:shapes=&quot;Picture_x0020_11&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;If
we can group controller classes in to logical section like “Invoicing” and
“Accounting” that would make life easier and that’s what “Area” are meant to.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_10&quot; o:spid=&quot;_x0000_i1034&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/MVCArea2.png&quot;
 style=&#39;width:279pt;height:146.25pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image024.png&quot;
  o:title=&quot;MVCArea2&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;372&quot; height=&quot;195&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image024.png&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/MVCArea2.png&quot; v:shapes=&quot;Picture_x0020_10&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;You
can add an area by right clicking on the MVC solution and clicking on “Area”
menu as shown in the below figure.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_9&quot; o:spid=&quot;_x0000_i1033&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/MVCArea3.png&quot;
 style=&#39;width:469.5pt;height:168pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image025.png&quot;
  o:title=&quot;MVCArea3&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;626&quot; height=&quot;224&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image025.png&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/MVCArea3.png&quot; v:shapes=&quot;Picture_x0020_9&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;In
the below image we have two “Areas” created “Account” and “Invoicing” and in
that I have put the respective controllers. You can see how the project is
looking more organized as compared to the previous state.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_8&quot; o:spid=&quot;_x0000_i1032&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/MVCArea4.png&quot;
 style=&#39;width:296.25pt;height:309.75pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image026.png&quot;
  o:title=&quot;MVCArea4&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;395&quot; height=&quot;413&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image026.png&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/MVCArea4.png&quot; v:shapes=&quot;Picture_x0020_8&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;Explain_the_concept_of_View_Model_in_MVC&quot;&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Explain the concept of View Model in MVC?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;A
view model is a simple class which represents data to be displayed on the view.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;For
example below is a simple customermodel object with “CustomerName” and “Amount”
property.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;CustomerViewModel
obj = &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; CustomerViewModel();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;obj.Customer.CustomerName
= &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;Shiv&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;obj.Customer.Amount
= &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;But
when this “Customer” model object is displayed on the MVC view it looks
something as shown in the below figure. It has “CustomerName” , “Amount” plus “&lt;b&gt;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Customer Buying Level&lt;/span&gt;&lt;/b&gt;” fields on the view / screen.
“Customer buying Level” is a color indicationwhich indicates how aggressive the
customer is buying.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;“Customer
buying level” color depends on the value of the “Amount property. If the amount
is greater than 2000 then color is red , if amount is greater than 1500 then
color is orange or else the color is yellow.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;In
other words “Customer buying level” is an extra property which is calculated on
the basis of amount.&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;center&quot; style=&quot;text-align: center; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape
 id=&quot;Picture_x0020_7&quot; o:spid=&quot;_x0000_i1031&quot; type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/10_image.png&quot;
 style=&#39;width:326.25pt;height:79.5pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image027.png&quot;
  o:title=&quot;10_image&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;435&quot; height=&quot;106&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image027.png&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/10_image.png&quot; v:shapes=&quot;Picture_x0020_7&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;So
the Customer viewmodel class has three properties&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;“TxtCustomerName”
textbox takes data from “CustomerName” property as it is.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;“TxtAmount” textbox
takes data from “Amount” property of model as it is.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;“CustomerBuyingLevelColor”
displays color value depending on the “Amount “ value.&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;MsoNormalTable&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;374&quot; style=&quot;width: 280.5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;padding:0in 0in 0in 0in&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Customer Model&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
  &lt;td style=&quot;padding:0in 0in 0in 0in&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Customer ViewModel&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;padding:0in 0in 0in 0in&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;CustomerName&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
  &lt;td style=&quot;padding:0in 0in 0in 0in&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;TxtCustomerName&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;padding:0in 0in 0in 0in&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Amount&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
  &lt;td style=&quot;padding:0in 0in 0in 0in&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;TxtAmount&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;padding:0in 0in 0in 0in&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;padding:0in 0in 0in 0in&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;CustomerBuyingLevelColor&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;What_kind_of_logic_view_model_class_will&quot;&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;What kind of logic view model class will have?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;As
the name says view model this class has the gel code or connection code which
connects the view and the model.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;So
the view model class can have following kind of logics:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Color
transformation logic: -&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;For example you have a “Grade” property in model and you would
like your UI to display “red” color for high level grade, “yellow” color for
low level grade and “green” color of ok grade.&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Data
format transformation logic :-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Your model has a property “Status” with “Married” and “Unmarried”
value. In the UI you would like to display it as a checkbox which is checked if
“married” and unchecked if “unmarried”.&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Aggregation
logic: -&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;You have two differentCustomer
and Address model classes and you have view which displays both “Customer” and
“Address” data on one go.&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.0001pt; text-indent: -0.25in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-stretch: normal; font-size: 7pt; font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Structure
downsizing: -&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;You have “Customer” model with
“customerCode” and “CustomerName” and you want to display just “CustomerName”.
So you can create a wrapper around model and expose the necessary properties.&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;How can we use two ( multiple) models with a single view?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Let
us first try to understand what the interviewer is asking. When we bind a model
with a view we use the model dropdown as shown in the below figure. In the
below figure we can only select one model.&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;center&quot; style=&quot;text-align: center; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape
 id=&quot;Picture_x0020_6&quot; o:spid=&quot;_x0000_i1030&quot; type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/Display.png&quot;
 style=&#39;width:222.75pt;height:247.5pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image028.png&quot;
  o:title=&quot;Display&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;297&quot; height=&quot;330&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image028.png&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/Display.png&quot; v:shapes=&quot;Picture_x0020_6&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;But
what if we want to bind “Customer” as well as “Order” class to the view.&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;For
that we need to create a view model which aggregates both the classes as shown
in the below code. And then bind that view model with the view.&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; CustOrderVM&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp; Customer cust = &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; Customer();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; Order Ord = &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; Order();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;In
the view we can refer both the model using the view model as shown in the below
code.&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;&lt;%&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;= model.cust.Name &lt;span style=&quot;border: 1pt none windowtext; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;%&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;&lt;%&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;= model.Ord.Number &lt;span style=&quot;border: 1pt none windowtext; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;%&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;Explain_the_need_of_display_mode_in_MVC&quot;&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Explain the need of display mode in MVC?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Display
mode displays views depending on the device the user has logged in with. So we
can create different views for different devices anddisplay mode will handle
the rest.&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;For
example we can create a view “Home.aspx” which will render for the desktop
computers and&lt;a href=&quot;http://www.codeproject.com/Articles/556995/Home.Mobile.aspx&quot;&gt;Home.Mobile.aspx&lt;/a&gt;&amp;nbsp;for mobile devices. Now
when an end user sends a request to the MVC application, display mode checks
the “user agent” headers and renders the appropriate view to the device
accordingly.&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_5&quot; o:spid=&quot;_x0000_i1029&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/DisplayMode.jpg&quot;
 style=&#39;width:333.75pt;height:316.5pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image029.jpg&quot;
  o:title=&quot;DisplayMode&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;445&quot; height=&quot;422&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image029.jpg&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/DisplayMode.jpg&quot; v:shapes=&quot;Picture_x0020_5&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;ExplainMVCmodelbinders&quot;&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Explain MVC model binders?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Model
binder maps HTML form elements to the model. It acts like a bridge between HTML
UI and MVC model. Many times HTML UI names are different than the model
property names. So in the binder we can write the mapping logic between the UI
and the model.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;center&quot; style=&quot;text-align: center; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape
 id=&quot;Picture_x0020_4&quot; o:spid=&quot;_x0000_i1028&quot; type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/form.png&quot;
 style=&#39;width:342.75pt;height:160.5pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image030.png&quot;
  o:title=&quot;form&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;457&quot; height=&quot;214&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image030.png&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/form.png&quot; v:shapes=&quot;Picture_x0020_4&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;ExplaintheconceptofMVCScaffolding&quot;&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Explain the concept of MVC Scaffolding?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;Note
:- Do &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;not&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; get scared with the
word. Its actually a very simple thing.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Scaffolding
is a technique in which the MVC template helps to auto-generate CRUD code. CRUD
stands for create, read, update and delete.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;So
to generate code using scaffolding technique we need to select one of the types
of templates (leave the empty one).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;center&quot; style=&quot;text-align: center; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape
 id=&quot;Picture_x0020_3&quot; o:spid=&quot;_x0000_i1027&quot; type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/m1.png&quot;
 style=&#39;width:292.5pt;height:115.5pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image031.png&quot;
  o:title=&quot;m1&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;390&quot; height=&quot;154&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image031.png&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/m1.png&quot; v:shapes=&quot;Picture_x0020_3&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;For
instance if you choose “using Entity framework” template the following code is
generated.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_2&quot; o:spid=&quot;_x0000_i1026&quot;
 type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/m2.png&quot;
 style=&#39;width:418.5pt;height:300.75pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image032.png&quot;
  o:title=&quot;m2&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;558&quot; height=&quot;401&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image032.png&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/m2.png&quot; v:shapes=&quot;Picture_x0020_2&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;It
creates controller code, view and also table structure as shown in the below
figure.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;center&quot; style=&quot;text-align: center; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape
 id=&quot;Picture_x0020_1&quot; o:spid=&quot;_x0000_i1025&quot; type=&quot;#_x0000_t75&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/m3.png&quot;
 style=&#39;width:355.5pt;height:327.75pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image033.png&quot;
  o:title=&quot;m3&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img border=&quot;0&quot; width=&quot;474&quot; height=&quot;437&quot; src=&quot;file:///C:\Users\SASI\AppData\Local\Temp\msohtmlclip1\01\clip_image033.png&quot; alt=&quot;http://www.codeproject.com/KB/aspnet/556995/m3.png&quot; v:shapes=&quot;Picture_x0020_1&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;Whatdoesscaffoldinguseinternallytoconnec&quot;&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;What does scaffolding use internally to connect to database?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;It
uses Entity framework internally.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;HowcanwedoexceptionhandlinginMVC&quot;&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;How
can we do exception handling in MVC?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;In
the controller you can override the “OnException” event and set the “Result” to
the view name which you want to invoke when error occurs. In the below code you
can see we have set the “Result” to a view named as “Error”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;We
have also set the exception so that it can be displayed inside the view.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; HomeController : Controller&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;protected&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;override&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; OnException(ExceptionContext filterContext)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exception ex =
filterContext.Exception;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filterContext.ExceptionHandled = &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var model = &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;
HandleErrorInfo(filterContext.Exception, &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;Controller&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;Action&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filterContext.Result = &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; ViewResult()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&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;ViewName = &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;Error&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&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; ViewData = &lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;
ViewDataDictionary(model)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;To
display the above error in view we can use the below code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp; @Model.Exception;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;a name=&quot;HowcanyouhandlemultipleSubmitbuttonspoin&quot;&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;How can you handle multiple Submit buttons pointing to multiple
actions in a single MVC view?&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 22.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Let
us elaborate on what the interviewer wants to ask because the above question is
just a single liner and is not clear about what the interviewer wants.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Take
a scenario where you have a view with two submit buttons as shown in the below
code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&lt;form
action=&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;Action1&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; method=post&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&lt;input
type=”submit” name=”Submit1”/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&lt;input
type=”submit” name=”Submit2”&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/form&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;In
the above code when the end user clicks on any of the submit buttons it will
make a HTTP POST to “Action1”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;The
question from the interviewer is:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;“What if we have want that on “Submit1” button click it should
invoke “Action1” and on the “Submit2” button click it should invoke “Action2”.”&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Now
that we have understood the question let us answer the question in a detailed
manner. There are two approaches to solve the above problem one is the normal
HTML way and the other is the “Ajax” way.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;In
the HTML way we need to create two forms and place the “Submit” button inside
each of the forms. And every form’s action will point to different / respective
actions. You can see the below code the first form is posting to “Action1” and
the second form will post to “Action2” depending on which “Submit” button is
clicked.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&lt;form
action=&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;Action1&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; method=post&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&lt;input
type=”submit” name=”Submit1”/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/form&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&lt;form
action=&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;Action2&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt; method=post&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&lt;input
type=”submit” name=”Submit2”&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/form&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 10.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;In
case the interviewer complains that the above approach is not AJAX this is
where the second approach comes in. In the Ajax way we can create two different
functions “Fun1” and “Fun1” , see the below code. These function will make Ajax
calls by using JQUERY or any other framework. Each of these functions are
binded with the “Submit” button’s “OnClick” events.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; align=&quot;right&quot; style=&quot;margin-bottom: 0.0001pt; text-align: right; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif; border: 1pt none windowtext; padding: 0in;&quot;&gt;Hide&lt;/span&gt;&lt;span style=&quot;font-size: 8.5pt; font-family: &#39;Segoe UI&#39;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in&quot;&gt;Copy Code&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;border: 1pt solid rgb(251, 237, 187); padding: 5pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&lt;Script
language=&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas; border: 1pt none windowtext; padding: 0in;&quot;&gt;&quot;javascript&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; font-family: Consolas;&quot;&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;function
Fun1()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;$.post(“/Action1”,null,CallBack1);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;function
Fun2()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;$.post(“/Action2”,null,CallBack2);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; border: none; padding: 0in; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; font-family: Consolas; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/script&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;form action=&quot;&amp;lt;/span&quot;&gt;
&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;/Action1&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; method=post&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/form&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;input name=&quot;sub1&quot; onclick=&quot;”Fun2()”/&quot; type=&quot;submit&quot; /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;o:p&gt;&lt;/o:p&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;form action=&quot;&amp;lt;/span&quot;&gt;
&lt;span style=&quot;border: 1pt none windowtext; font-family: Consolas; font-size: 9pt; padding: 0in;&quot;&gt;&quot;/Action2&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt; method=post&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/form&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;input name=&quot;sub2&quot; onclick=&quot;”Fun1()”/&quot; type=&quot;submit&quot; /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;o:p&gt;&lt;/o:p&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt;&quot;&gt;Please do read this
blog which has detailed steps of how model binders can be created using
“IModelBinder” interface: -&amp;nbsp;&lt;a href=&quot;http://computerauthor.blogspot.in/2014/06/explain-mvc-model-binders-aspnet-mvc_1385.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; padding: 0in;&quot;&gt;Explain MVC model Binders?&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/5137968022250500189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/5137968022250500189' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/5137968022250500189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/5137968022250500189'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2015/03/mvc-interview-questions.html' title='MVC Interview Questions'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-6610538618417772911</id><published>2012-02-23T04:36:00.001-08:00</published><updated>2012-02-23T04:36:37.304-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Questions And Answers"/><title type='text'>What is the difference between .Net Remoting and Asp.Net Web Services?</title><content type='html'>ASP.NET Web Services Can be accessed only over HTTP but .Net Remoting Can be accessed over various protocols like TCP, HTTP, SMTP etc. &lt;br /&gt;&lt;br /&gt;Web Services are based on stateless service architecture but .Net Remoting support for both stateful and stateless environment. &lt;br /&gt;&lt;br /&gt;Web Services support heterogeneous environments means interoperability across platforms but .Net remoting requires .Net on both server and client end. &lt;br /&gt;&lt;br /&gt;.NET Remoting provides the fast communication than Web Services when we use the TCP channel and the binary formatter. &lt;br /&gt;&lt;br /&gt;Web services support only the objects that can be serialized but .NET Remoting can provide support to all objects that inherit MarshalByRefObject. &lt;br /&gt;&lt;br /&gt;Web Services are reliable than .Net remoting because Web services are always hosted in IIS. &lt;br /&gt;&lt;br /&gt;Web Services are ease to create and deploy but .Net remoting is bit complex to program.</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/6610538618417772911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/6610538618417772911' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/6610538618417772911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/6610538618417772911'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2012/02/what-is-difference-between-net-remoting.html' title='What is the difference between .Net Remoting and Asp.Net Web Services?'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-387381933597664780</id><published>2010-12-09T00:26:00.000-08:00</published><updated>2010-12-09T00:30:44.354-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net 2.0"/><category scheme="http://www.blogger.com/atom/ns#" term=".Net 3.5 features"/><title type='text'>How to Use IDisposable Pattern</title><content type='html'>public class DisposeObject : IDisposable&lt;br /&gt;    {&lt;br /&gt;        #region Members&lt;br /&gt;&lt;br /&gt;        private bool _disposed = false;&lt;br /&gt;&lt;br /&gt;        #endregion&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;        #region IDisposable Members&lt;br /&gt; &lt;br /&gt;        ~DisposeObject()&lt;br /&gt;        {&lt;br /&gt;            Dispose(false);&lt;br /&gt;        }&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;        /// &lt;summary&gt;&lt;br /&gt;        /// Dispose the current object&lt;br /&gt;        /// &lt;/summary&gt;&lt;br /&gt;        public void Dispose()&lt;br /&gt;        {&lt;br /&gt;            Dispose(true);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        private void Dispose(bool disposing)&lt;br /&gt;        {&lt;br /&gt;            if (!_disposed)&lt;br /&gt;            {&lt;br /&gt;                if (disposing)&lt;br /&gt;                {&lt;br /&gt;                    // clean up resources&lt;br /&gt;&lt;br /&gt;                    CleanUp();&lt;br /&gt;&lt;br /&gt;                    // The object will be cleaned up only if the method&lt;br /&gt;                    // gets true - we are in the Dispose method.&lt;br /&gt;                    // Therefore, you should call GC.SupressFinalize to&lt;br /&gt;                    // take this object off the finalization queue&lt;br /&gt;                    // and prevent finalization code for this object&lt;br /&gt;                    // from executing a second time. &lt;br /&gt;                    // Taken from MSDN.&lt;br /&gt;                    GC.SuppressFinalize(this);&lt;br /&gt;                }&lt;br /&gt;                // dispose occurred&lt;br /&gt;                _disposed = true;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        private void CleanUp()&lt;br /&gt;        {&lt;br /&gt;            // put here the code to dispose all managed&lt;br /&gt;            // and unmanaged resources&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        #endregion&lt;br /&gt;    }</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/387381933597664780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/387381933597664780' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/387381933597664780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/387381933597664780'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2010/12/how-to-use-idisposable-pattern.html' title='How to Use IDisposable Pattern'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-5095507756281564604</id><published>2010-03-11T02:17:00.001-08:00</published><updated>2010-03-11T02:17:46.888-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Events and Delegates"/><title type='text'>Events and Delegates</title><content type='html'>&lt;strong&gt;The very basic Delegate &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;An interesting and useful property of a delegate is that it does not know or care about the class of the object that it references. Any object will do; all that matters is that the method&#39;s argument types and return type match the delegate&#39;s. This makes delegates perfectly suited for &quot;anonymous&quot; invocation. &lt;br /&gt;&lt;br /&gt;The signature of a single cast delegate is shown below: &lt;br /&gt;&lt;br /&gt;delegate result-type identifier ([parameters]); &lt;br /&gt;&lt;br /&gt;where: &lt;br /&gt;&lt;br /&gt;result-type: The result type, which matches the return type of the function. &lt;br /&gt;identifier: The delegate name. &lt;br /&gt;parameters: The Parameters, that the function takes. &lt;br /&gt;Examples: &lt;br /&gt;&lt;br /&gt;public delegate void SimpleDelegate () &lt;br /&gt;&lt;br /&gt;This declaration defines a delegate named SimpleDelegate, which will encapsulate any method that takes&lt;br /&gt;no parameters and returns no value. &lt;br /&gt; &lt;br /&gt;public delegate int ButtonClickHandler (object obj1, object obj2) &lt;br /&gt;&lt;br /&gt;This declaration defines a delegate named ButtonClickHandler, which will encapsulate any method that takes&lt;br /&gt;two objects as parameters and returns an int. &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;A delegate will allow us to specify what the function we&#39;ll be calling looks like without having to specify which function to call. The declaration for a delegate looks just like the declaration for a function, except that in this case, we&#39;re declaring the signature of functions that this delegate can reference. &lt;br /&gt;&lt;br /&gt;There are three steps in defining and using delegates: &lt;br /&gt;&lt;br /&gt;Declaration &lt;br /&gt;Instantiation &lt;br /&gt;Invocation &lt;br /&gt;A very basic example (SimpleDelegate1.cs): &lt;br /&gt;&lt;br /&gt;using System;&lt;br /&gt;&lt;br /&gt;namespace Akadia.BasicDelegate&lt;br /&gt;{&lt;br /&gt;    // Declaration&lt;br /&gt;    public delegate void SimpleDelegate();&lt;br /&gt;&lt;br /&gt;    class TestDelegate&lt;br /&gt;    {&lt;br /&gt;        public static void MyFunc()&lt;br /&gt;        {&lt;br /&gt;            Console.WriteLine(&quot;I was called by delegate ...&quot;);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        public static void Main()&lt;br /&gt;        {&lt;br /&gt;            // Instantiation&lt;br /&gt;            SimpleDelegate simpleDelegate = new SimpleDelegate(MyFunc);&lt;br /&gt;&lt;br /&gt;            // Invocation&lt;br /&gt;            simpleDelegate();&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;Compile an test: &lt;br /&gt;&lt;br /&gt;# csc SimpleDelegate1.cs&lt;br /&gt;# SimpleDelegate1.exe&lt;br /&gt;I was called by delegate ... &lt;br /&gt;&lt;br /&gt;Calling Static Functions &lt;br /&gt;&lt;br /&gt;For our next, more advanced example (SimpleDelegate2.cs), declares a delegate that takes a single string parameter and has no return type: &lt;br /&gt;&lt;br /&gt;using System;&lt;br /&gt;&lt;br /&gt;namespace Akadia.SimpleDelegate&lt;br /&gt;{&lt;br /&gt;    // Delegate Specification&lt;br /&gt;    public class MyClass&lt;br /&gt;    {&lt;br /&gt;        // Declare a delegate that takes a single string parameter&lt;br /&gt;        // and has no return type.&lt;br /&gt;        public delegate void LogHandler(string message);&lt;br /&gt;&lt;br /&gt;        // The use of the delegate is just like calling a function directly,&lt;br /&gt;        // though we need to add a check to see if the delegate is null&lt;br /&gt;        // (that is, not pointing to a function) before calling the function.&lt;br /&gt;        public void Process(LogHandler logHandler)&lt;br /&gt;        {&lt;br /&gt;            if (logHandler != null)&lt;br /&gt;            {&lt;br /&gt;                logHandler(&quot;Process() begin&quot;);&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            if (logHandler != null)&lt;br /&gt;            {&lt;br /&gt;                logHandler (&quot;Process() end&quot;);&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    // Test Application to use the defined Delegate&lt;br /&gt;    public class TestApplication&lt;br /&gt;    {&lt;br /&gt;        // Static Function: To which is used in the Delegate. To call the Process()&lt;br /&gt;        // function, we need to declare a logging function: Logger() that matches&lt;br /&gt;        // the signature of the delegate.&lt;br /&gt;        static void Logger(string s)&lt;br /&gt;        {&lt;br /&gt;            Console.WriteLine(s);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        static void Main(string[] args)&lt;br /&gt;        {&lt;br /&gt;            MyClass myClass = new MyClass();&lt;br /&gt;&lt;br /&gt;            // Crate an instance of the delegate, pointing to the logging function.&lt;br /&gt;            // This delegate will then be passed to the Process() function.&lt;br /&gt;            MyClass.LogHandler myLogger = new MyClass.LogHandler(Logger);&lt;br /&gt;            myClass.Process(myLogger);&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;Compile an test: &lt;br /&gt;&lt;br /&gt;# csc SimpleDelegate2.cs&lt;br /&gt;# SimpleDelegate2.exe&lt;br /&gt;Process() begin&lt;br /&gt;Process() end</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/5095507756281564604/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/5095507756281564604' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/5095507756281564604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/5095507756281564604'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2010/03/events-and-delegates_11.html' title='Events and Delegates'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-3662647050680976331</id><published>2010-03-11T02:01:00.000-08:00</published><updated>2017-01-09T03:00:54.994-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Events and Delegates"/><title type='text'>Events and Delegates</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Simple Event &lt;br /&gt;
Let&#39;s modify our logging example from above to use an event rather than a delegate: &lt;br /&gt;
using System;&lt;br /&gt;
using System.IO;&lt;br /&gt;
&lt;br /&gt;
namespace Akadia.SimpleEvent&lt;br /&gt;
{&lt;br /&gt;
/* ========= Publisher of the Event ============== */&lt;br /&gt;
public class MyClass&lt;br /&gt;
{&lt;br /&gt;
// Define a delegate named LogHandler, which will encapsulate&lt;br /&gt;
// any method that takes a string as the parameter and returns no value&lt;br /&gt;
public delegate void LogHandler(string message);&lt;br /&gt;
&lt;br /&gt;
// Define an Event based on the above Delegate&lt;br /&gt;
public event LogHandler Log;&lt;br /&gt;
&lt;br /&gt;
// Instead of having the Process() function take a delegate&lt;br /&gt;
// as a parameter, we&#39;ve declared a Log event. Call the Event,&lt;br /&gt;
// using the OnXXXX Method, where XXXX is the name of the Event.&lt;br /&gt;
public void Process()&lt;br /&gt;
{&lt;br /&gt;
OnLog(&quot;Process() begin&quot;);&lt;br /&gt;
OnLog(&quot;Process() end&quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// By Default, create an OnXXXX Method, to call the Event&lt;br /&gt;
protected void OnLog(string message)&lt;br /&gt;
{&lt;br /&gt;
if (Log != null)&lt;br /&gt;
{&lt;br /&gt;
Log(message);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// The FileLogger class merely encapsulates the file I/O&lt;br /&gt;
public class FileLogger&lt;br /&gt;
{&lt;br /&gt;
FileStream fileStream;&lt;br /&gt;
StreamWriter streamWriter;&lt;br /&gt;
&lt;br /&gt;
// Constructor&lt;br /&gt;
public FileLogger(string filename)&lt;br /&gt;
{&lt;br /&gt;
fileStream = new FileStream(filename, FileMode.Create);&lt;br /&gt;
streamWriter = new StreamWriter(fileStream);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Member Function which is used in the Delegate&lt;br /&gt;
public void Logger(string s)&lt;br /&gt;
{&lt;br /&gt;
streamWriter.WriteLine(s);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public void Close()&lt;br /&gt;
{&lt;br /&gt;
streamWriter.Close();&lt;br /&gt;
fileStream.Close();&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* ========= Subscriber of the Event ============== */&lt;br /&gt;
// It&#39;s now easier and cleaner to merely add instances&lt;br /&gt;
// of the delegate to the event, instead of having to&lt;br /&gt;
// manage things ourselves&lt;br /&gt;
public class TestApplication&lt;br /&gt;
{&lt;br /&gt;
static void Logger(string s)&lt;br /&gt;
{&lt;br /&gt;
Console.WriteLine(s);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
static void Main(string[] args)&lt;br /&gt;
{&lt;br /&gt;
FileLogger fl = new FileLogger(&quot;process.log&quot;);&lt;br /&gt;
MyClass myClass = new MyClass();&lt;br /&gt;
&lt;br /&gt;
// Subscribe the Functions Logger and fl.Logger&lt;br /&gt;
myClass.Log += new MyClass.LogHandler(Logger);&lt;br /&gt;
myClass.Log += new MyClass.LogHandler(fl.Logger);&lt;br /&gt;
&lt;br /&gt;
// The Event will now be triggered in the Process() Method&lt;br /&gt;
myClass.Process();&lt;br /&gt;
&lt;br /&gt;
fl.Close();&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
} &lt;br /&gt;
Compile an test: &lt;br /&gt;
# csc SimpleEvent.cs&lt;br /&gt;
# SimpleEvent.exe&lt;br /&gt;
Process() begin&lt;br /&gt;
Process() end&lt;br /&gt;
# cat process.log&lt;br /&gt;
Process() begin&lt;br /&gt;
Process() end&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/3662647050680976331/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/3662647050680976331' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/3662647050680976331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/3662647050680976331'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2010/03/events-and-delegates.html' title='Events and Delegates'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-7631803749987633601</id><published>2010-03-01T05:15:00.000-08:00</published><updated>2010-03-01T05:20:54.828-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQl Server Performance"/><title type='text'>Transact-SQL Optimization Tips.</title><content type='html'>Here are fourteen little known tips that you can use to ensure your Transact-SQL queries are performing in the most efficient manner possible.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;1. Try to restrict the queries result set by using the WHERE clause.&lt;/strong&gt;&lt;br /&gt;This can result in a performance benefit, as SQL Server will return to the client only particular rows, not all rows from the table(s). This can reduce network traffic and boost the overall performance of the query.&lt;br /&gt;&lt;strong&gt;2. Try to restrict the queries result set by returning only the particular columns from the table, not all the table&#39;s columns. &lt;/strong&gt;&lt;br /&gt;This can result in a performance benefit as well, because SQL Server will return to the client only particular columns, not all the table&#39;s columns. This can reduce network traffic and boost the overall performance of the query.&lt;br /&gt;&lt;strong&gt;3. Use views and stored procedures instead of heavy-duty queries.&lt;/strong&gt;&lt;br /&gt;This can reduce network traffic as your client will send to the server only stored procedures or view name (perhaps with some parameters) instead of large heavy-duty queries text. This can be used to facilitate permission management also, because you can restrict user access to table columns they should not see.&lt;br /&gt;&lt;strong&gt;4. Whenever possible, try to avoid using SQL Server cursors.&lt;/strong&gt;&lt;br /&gt;SQL Server cursors can result in some performance degradation in comparison with select statements. Try to use correlated subquery or derived tables, if you need to perform row-by-row operations.&lt;br /&gt;&lt;strong&gt;5. If you need to return the total table&#39;s row count, you can use an alternative way instead of the SELECT COUNT(*) statement.&lt;/strong&gt;&lt;br /&gt;Because the SELECT COUNT(*) statement makes a full table scan to return the total table&#39;s row count, it can take an extremely long time for large tables. There is another way to determine the total row count in a table. In this case, you can use the sysindexes system table. There is a ROWS column in the sysindexes table. This column contains the total row count for each table in your database. So, you can use the following select statement instead of SELECT COUNT(*):&lt;br /&gt;SELECT rows FROM sysindexes WHERE id = OBJECT_ID(&#39;table_name&#39;) AND in did &amp;lt; href=&quot;http://www.mssqlcity.com/Articles/KnowHow/RowCount.htm&quot;&amp;gt; Alternative way to get the table&#39;s row count.&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;6. Try to use constraints instead of triggers, whenever possible.&lt;/strong&gt;&lt;br /&gt;Constraints are much more efficient than triggers and can boost performance. So, whenever possible, you should use constraints instead of triggers.&lt;br /&gt;&lt;strong&gt;7. Use table variables instead of temporary tables.&lt;/strong&gt;&lt;br /&gt;Table variables require fewer locking and logging resources than temporary tables, so table variables should be used whenever possible. The table variables are available in SQL Server 2000 only.&lt;br /&gt;&lt;strong&gt;8. Try to avoid the HAVING clause, whenever possible.&lt;/strong&gt;&lt;br /&gt;The HAVING clause is used to restrict the result set returned by the GROUP BY clause. When you use GROUP BY with the HAVING clause, the GROUP BY clause divides the rows into sets of grouped rows and aggregates their values, and then the HAVING clause eliminates undesired aggregated groups. In many cases, you can write your select statement so that they will contain only WHERE and GROUP BY clauses without the HAVING clause. This can improve the performance of your query.&lt;br /&gt;&lt;strong&gt;9. Whenever possible, try to avoid using the DISTINCT clause.&lt;/strong&gt;&lt;br /&gt;Because using the DISTINCT clause will result in some performance degradation, you should use this clause only when it is absolutely necessary.&lt;br /&gt;&lt;strong&gt;10. Include SET NOCOUNT ON statement into your stored procedures to stop the message indicating the number of rows affected by a T-SQL statement.&lt;/strong&gt;&lt;br /&gt;This can reduce network traffic, as your client will not receive the message indicating the number of rows affected by a T-SQL statement.&lt;br /&gt;&lt;strong&gt;11. Use select statements with the TOP keyword or the SET ROWCOUNT statement if you need to return only the first n rows.&lt;/strong&gt;&lt;br /&gt;This can improve performance of your queries, as a smaller result set will be returned. This can also reduce the traffic between the server and the clients.&lt;br /&gt;&lt;strong&gt;12. Use the FAST number_rows table hint if you need to quickly return &#39;number_rows&#39; rows.&lt;br /&gt;&lt;/strong&gt;You can quickly get the n rows and can work with them when the query continues execution and produces its full result set.&lt;br /&gt;&lt;strong&gt;13. Try to use UNION ALL statement instead of UNION, whenever possible.&lt;/strong&gt;&lt;br /&gt;The UNION ALL statement is much faster than UNION, because UNION ALL statement does not look for duplicate rows, while the UNION statement does look for duplicate rows, whether they exist or not.&lt;br /&gt;&lt;strong&gt;14. Do not use optimizer hints in your queries.&lt;/strong&gt;&lt;br /&gt;Because the SQL Server query optimizer is very clever, it is highly unlikely that you can optimize your query by using optimizer hints; more often than not, this will hurt performance.&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/7631803749987633601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/7631803749987633601' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/7631803749987633601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/7631803749987633601'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2010/03/transact-sql-optimization-tips.html' title='Transact-SQL Optimization Tips.'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-8774690543643153269</id><published>2010-02-26T01:25:00.000-08:00</published><updated>2010-02-26T01:27:17.035-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Questions And Answers"/><title type='text'>Difference b/w UDFs and Stored Procedures</title><content type='html'>1&gt;Procedure can return zero or n values whereas function can return one value which is mandatory.&lt;br /&gt;2&gt;Procedures can have input,output parameters for it whereas functions can have only input parameters.&lt;br /&gt;3&gt;Procedure allow select as well as DML statement in it whereas function allow only select statement in it.&lt;br /&gt;4&gt;Functions can be called from procedure whereas procedures cannot be called from function.&lt;br /&gt;5&gt;Exception can be handled by try-catch block in a procedure whereas try-catch block cannot be used in a function.&lt;br /&gt;6&gt;We can go for transaction management in procedure whereas we can&#39;t go in function.&lt;br /&gt;7&gt;Procedures can not be utilized in a select statement whereas function can be embedded in a select statement.</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/8774690543643153269/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/8774690543643153269' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/8774690543643153269'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/8774690543643153269'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2010/02/difference-bw-udfs-and-stored.html' title='Difference b/w UDFs and Stored Procedures'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-5266560488069311130</id><published>2010-02-03T05:31:00.000-08:00</published><updated>2010-02-03T06:09:30.199-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="OOPS"/><title type='text'>Static Constructor limitations</title><content type='html'>&lt;span style=&quot;font-weight: bold;&quot;&gt;Example:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;using System;&lt;br /&gt;using System.Collections.Generic;&lt;br /&gt;using System.Linq;&lt;br /&gt;using System.Text;&lt;br /&gt;&lt;br /&gt;namespace ConsoleApplication1&lt;br /&gt;{&lt;br /&gt;  class Program&lt;br /&gt;  {&lt;br /&gt;      static void Main(string[] args)&lt;br /&gt;      {&lt;br /&gt;         C Obj = new C();  &lt;br /&gt;         C.C1();&lt;br /&gt;         Console.ReadKey();&lt;br /&gt;      }&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public static class DHINESH&lt;br /&gt;  {&lt;br /&gt;      static DHINESH()&lt;br /&gt;      {&lt;br /&gt;          DHINESH1();&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;      static void DHINESH1()&lt;br /&gt;      {&lt;br /&gt;&lt;br /&gt;      }&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public class A&lt;br /&gt;  {&lt;br /&gt;      public A()&lt;br /&gt;      {&lt;br /&gt;          Console.WriteLine(&quot;This is A&quot;);&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;      static A()&lt;br /&gt;      {&lt;br /&gt;          Console.WriteLine(&quot;This is static A&quot;);&lt;br /&gt;      }     &lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public class B : A&lt;br /&gt;  {&lt;br /&gt;      public B()&lt;br /&gt;      {&lt;br /&gt;          Console.WriteLine(&quot;This is B&quot;);&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;      static B()&lt;br /&gt;      {&lt;br /&gt;          Console.WriteLine(&quot;This is static B&quot;);&lt;br /&gt;      }    &lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public class C : B&lt;br /&gt;  {&lt;br /&gt;      public C()&lt;br /&gt;      {&lt;br /&gt;          Console.WriteLine(&quot;This is C&quot;);&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;      static C()&lt;br /&gt;      {&lt;br /&gt;          Console.WriteLine(&quot;This is static C&quot;);&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;      public static void C1()&lt;br /&gt;      {&lt;br /&gt;&lt;br /&gt;      }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Result:&lt;/span&gt;&lt;br /&gt;--&gt;When we instantiate a Class like this C Obj = new C();  &lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;br /&gt;The output is : &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This is static C&lt;br /&gt;This is static B&lt;br /&gt;This is static A&lt;br /&gt;This is A&lt;br /&gt;This is B&lt;br /&gt;This is C&lt;br /&gt;&lt;br /&gt;--&gt;When we instantiate a Class like this&lt;br /&gt;&lt;br /&gt;C Obj = new C();  &lt;br /&gt;C Obj1 = new C();&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;br /&gt;The output is : &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This is static C&lt;br /&gt;This is static B&lt;br /&gt;This is static A&lt;br /&gt;This is A&lt;br /&gt;This is B&lt;br /&gt;This is C&lt;br /&gt;This is A&lt;br /&gt;This is B&lt;br /&gt;This is C&lt;br /&gt;&lt;br /&gt;--&gt;When we  call a static method like this C.C1();&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;The output is:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This is static C&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Limitations of Static constructor:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. We cannot specify access modifier.&lt;br /&gt;2. We cannot use any parameter.&lt;br /&gt;3. Static constructor will be executing only once and also very first instance of the class.&lt;br /&gt;4. When any static method of the class is being called the static constructor will be executing at first call itself.&lt;br /&gt;5.We can use only static members or variables inside the static constructor.</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/5266560488069311130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/5266560488069311130' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/5266560488069311130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/5266560488069311130'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2010/02/static-constructor-limitations.html' title='Static Constructor limitations'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-635845270405323985</id><published>2010-02-02T07:11:00.000-08:00</published><updated>2010-02-02T07:12:50.972-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><title type='text'>How to restrict back button in asp.net.</title><content type='html'>We have come across the problem while clicking on the back button in the browser.&lt;br /&gt;&lt;br /&gt;we shouldn&#39;t load the page again when we click on the back button.&lt;br /&gt;&lt;br /&gt;Below code it will hide the back button.  This is also one of the security leavl have to&lt;br /&gt;&lt;br /&gt;follow in the transaction pages.&lt;br /&gt;&lt;br /&gt;       Response.Buffer = true;&lt;br /&gt;          Response.CacheControl = &quot;no-cache&quot;;&lt;br /&gt;          Response.Cache.SetNoStore();&lt;br /&gt;          Response.Cache.SetCacheability(HttpCacheability.NoCache);&lt;br /&gt;          Response.Cache.SetExpires(DateTime.Now.AddDays(-1));</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/635845270405323985/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/635845270405323985' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/635845270405323985'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/635845270405323985'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2010/02/how-to-restrict-back-button-in-aspnet.html' title='How to restrict back button in asp.net.'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-7443575812785153294</id><published>2010-02-02T01:49:00.000-08:00</published><updated>2010-02-02T01:55:52.790-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Design Patterns"/><title type='text'>Design Patterns</title><content type='html'>&lt;span style=&quot;font-weight: bold;font-family:arial;&quot; &gt;Creational Patterns&lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Abstract Factory:&lt;/span&gt;    Creates an instance of several families of classes&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Builder:&lt;/span&gt;    &lt;/span&gt;Separates object construction from its representation&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Factory Method:&lt;/span&gt;    Creates an instance of several derived classes&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Prototype:    &lt;/span&gt;A&lt;span style=&quot;font-style: italic;&quot;&gt; &lt;/span&gt;fully initialized instance to be copied or cloned&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Singleton&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;:&lt;/span&gt;    A class of which only a single instance can exist&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt; &lt;span style=&quot;font-family:arial;&quot;&gt;Structural Patterns&lt;/span&gt;&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Adapter&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;:&lt;/span&gt;    Match interfaces of different classes&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Bridge:&lt;/span&gt; &lt;/span&gt;   Separates an object’s interface from its implementation&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Composite:&lt;/span&gt;    A tree structure of simple and composite objects&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Decorator&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;:&lt;/span&gt;    Add responsibilities to objects dynamically&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Facade&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;: &lt;/span&gt;   A single class that represents an entire subsystem&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Flyweight:&lt;/span&gt;    A fine-grained instance used for efficient sharing&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Proxy&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;:&lt;/span&gt;    An object representing another object&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:arial;&quot; &gt;Behavioral Patterns&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Chain of Resp:&lt;/span&gt;    A way of passing a request between a chain of objects&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Command&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;: &lt;/span&gt;   Encapsulate a command request as an object&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Interpreter:&lt;/span&gt;    A way to include language elements in a program&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Iterator&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;:&lt;/span&gt;    Sequentially access the elements of a collection&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Mediator:&lt;/span&gt;    Defines simplified communication between classes&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Memento&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;:&lt;/span&gt;    Capture and restore an object&#39;s internal state&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Observer&lt;/span&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;:&lt;/span&gt;    A way of notifying change to a number of classes&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;State&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;: &lt;/span&gt;   Alter an object&#39;s behavior when its state changes&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Strategy&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;:&lt;/span&gt;    Encapsulates an algorithm inside a class&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Template:&lt;/span&gt; Method    Defer the exact steps of an algorithm to a subclass&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Visitor:&lt;/span&gt;    Defines a new operation to a class without change</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/7443575812785153294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/7443575812785153294' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/7443575812785153294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/7443575812785153294'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2010/02/design-patterns.html' title='Design Patterns'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-7460684629044184584</id><published>2010-01-04T22:38:00.000-08:00</published><updated>2010-01-04T22:49:25.263-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net-Ajax"/><title type='text'>Sys.StringBuilder Class in Ajax</title><content type='html'>&amp;lt;%@ Page Language=&quot;C#&quot; AutoEventWireup=&quot;true&quot; CodeFile=&quot;Ajax_StringBuilder.aspx.cs&quot; Inherits=&quot;Ajax_StringBuilder&quot; %&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;&lt;br /&gt;&amp;lt;head runat=&quot;server&quot;&amp;gt;&lt;br /&gt;    &amp;lt;title&amp;gt;Untitled Page&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;    &amp;lt;form id=&quot;form1&quot; runat=&quot;server&quot;&amp;gt;&lt;br /&gt;    &amp;lt;asp:ScriptManager runat=&quot;server&quot; ID=&quot;ScriptManager1&quot;&amp;gt;&lt;br /&gt;       &amp;lt;/asp:ScriptManager&amp;gt;&lt;br /&gt;&lt;br /&gt;       &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;            function buildAString(title){&lt;br /&gt;                var headTagStart = &quot;&amp;lt;head&amp;gt;&quot;;&lt;br /&gt;                var headTagEnd = &quot;&amp;lt;/head&amp;gt;&quot;;&lt;br /&gt;                var titleTagStart = &quot;&amp;lt;title&amp;gt;&quot;;&lt;br /&gt;                var titleTagEnd = &quot;&amp;lt;/title&amp;gt;&quot;;&lt;br /&gt;&lt;br /&gt;                var sb = new Sys.StringBuilder(this._headTagStart);&lt;br /&gt;                Sys.Application.add_load(load);&lt;br /&gt;                sb.append(titleTagEnd);&lt;br /&gt;                sb.append(title);&lt;br /&gt;                sb.append(titleTagEnd);&lt;br /&gt;                sb.append(headTagEnd);&lt;br /&gt;                // Displays: &quot;The result: &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;A Title&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&quot;&lt;br /&gt;                //alert(&quot;The result&quot; + sb.toString()); &lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            var title = &quot;A Title&quot;;&lt;br /&gt;            buildAString(title);&lt;br /&gt;            function load()&lt;br /&gt;            {&lt;br /&gt;              &lt;br /&gt;            }&lt;br /&gt;        &amp;lt;/script&amp;gt;&lt;br /&gt;        &amp;lt;asp:TextBox ID=&quot;txtTest&quot; runat=&quot;server&quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;        &lt;br /&gt;        &amp;lt;%&lt;br /&gt;            Application.Add(&quot;Counter&quot;, 1);&lt;br /&gt;            Application[&quot;Counter&quot;] = (int)Application[&quot;Counter&quot;] + 1;&lt;br /&gt;         %&amp;gt;&lt;br /&gt;    &amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/7460684629044184584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/7460684629044184584' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/7460684629044184584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/7460684629044184584'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2010/01/stringbuilder-class-in-ajax.html' title='Sys.StringBuilder Class in Ajax'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-8301365715683605699</id><published>2009-12-14T03:14:00.000-08:00</published><updated>2009-12-16T05:59:12.182-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net-Ajax"/><title type='text'>ICallbackEventHandler Sample</title><content type='html'>&lt;span style=&quot;font-weight: bold;&quot;&gt;.ASPX Page&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;meta equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;&lt;meta name=&quot;ProgId&quot; content=&quot;Word.Document&quot;&gt;&lt;meta name=&quot;Generator&quot; content=&quot;Microsoft Word 11&quot;&gt;&lt;meta name=&quot;Originator&quot; content=&quot;Microsoft Word 11&quot;&gt;&lt;link rel=&quot;File-List&quot; href=&quot;file:///C:%5CDOCUME%7E1%5Cdhineshp%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C03%5Cclip_filelist.xml&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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate=&quot;false&quot; latentstylecount=&quot;156&quot;&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:&quot;&quot;; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:&quot;Times New Roman&quot;; 	mso-fareast-font-family:&quot;Times New Roman&quot;;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&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-parent:&quot;&quot;; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:&quot;Times New Roman&quot;; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;background: yellow none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;%&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;@&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt; &lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;Page&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;Language&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;C#&quot;&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;AutoEventWireup&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;true&quot;&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;CodeFile&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;CallBackEventValidationServer.aspx.cs&quot;&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;Inherits&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;CallBackEventHandler_CallBackEventValidationServer&quot;&lt;/span&gt; &lt;span style=&quot;background: yellow none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;&quot;&gt;%&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;background: yellow none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;&lt;!--&lt;/span--&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;doctype&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt; &lt;span style=&quot;color:red;&quot;&gt;html&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;PUBLIC&lt;/span&gt; &lt;span style=&quot;color:blue;&quot;&gt;&quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;&lt;/span&gt; &lt;span style=&quot;color:blue;&quot;&gt;&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;&lt;&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;html&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt; &lt;span style=&quot;color:red;&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;&lt;&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;head&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt; &lt;span style=&quot;color:red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;Head1&quot;&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;server&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&gt;&lt;/span&gt;Untitled Page&lt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;!--&lt;/span--&gt;&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;script&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;language&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;javascript&quot;&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;text/javascript&quot;&gt;&lt;/span&gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;function&lt;/span&gt; ReceiveServerData(rValue)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;alert(rValue);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;&lt;!--&lt;/span--&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;head&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;&lt;&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;body&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;form&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;form1&quot;&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;server&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;ScriptManager&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;sm&quot;&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;server&quot;&gt;&lt;!--&lt;/span--&gt;&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;ScriptManager&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;Name:&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;input&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;text&quot;&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;Name&quot;&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;server&quot;&lt;/span&gt; &lt;span style=&quot;color:blue;&quot;&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;Address:&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;input&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;text&quot;&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;Address&quot;&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;server&quot;&lt;/span&gt; &lt;span style=&quot;color:blue;&quot;&gt;/&gt;&lt;/span&gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;input&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;SUBMIT&quot;&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;SUBMIT&quot;&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;onclick&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;=&quot;CallServer(1, alert(&#39;Callback&#39;))&quot;&lt;/span&gt; &lt;span style=&quot;color:blue;&quot;&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;form&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;body&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;html&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;.CS Page&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;meta equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;&lt;meta name=&quot;ProgId&quot; content=&quot;Word.Document&quot;&gt;&lt;meta name=&quot;Generator&quot; content=&quot;Microsoft Word 11&quot;&gt;&lt;meta name=&quot;Originator&quot; content=&quot;Microsoft Word 11&quot;&gt;&lt;link rel=&quot;File-List&quot; href=&quot;file:///C:%5CDOCUME%7E1%5Cdhineshp%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C03%5Cclip_filelist.xml&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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate=&quot;false&quot; latentstylecount=&quot;156&quot;&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:&quot;&quot;; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:&quot;Times New Roman&quot;; 	mso-fareast-font-family:&quot;Times New Roman&quot;;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&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-parent:&quot;&quot;; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:&quot;Times New Roman&quot;; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;using&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;using&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt; System.Collections;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;using&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt; System.Configuration;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;using&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt; System.Data;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;using&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt; System.Linq;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;using&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt; System.Web;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;using&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt; System.Web.Security;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;using&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt; System.Web.UI;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;using&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt; System.Web.UI.HtmlControls;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;using&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt; System.Web.UI.WebControls;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;using&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt; System.Web.UI.WebControls.WebParts;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;using&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt; System.Xml.Linq;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;public&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt; &lt;span style=&quot;color:blue;&quot;&gt;partial&lt;/span&gt; &lt;span style=&quot;color:blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;CallBackEventHandler_CallBackEventValidationServer&lt;/span&gt; : System.Web.UI.&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;Page&lt;/span&gt;,&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;ICallbackEventHandler&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color:blue;&quot;&gt;string&lt;/span&gt; returnValue = &lt;span style=&quot;color:blue;&quot;&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color:blue;&quot;&gt;void&lt;/span&gt; Page_Load(&lt;span style=&quot;color:blue;&quot;&gt;object&lt;/span&gt; sender, &lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;ClientScriptManager&lt;/span&gt; cm = Page.ClientScript;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;String&lt;/span&gt; cbReference = cm.GetCallbackEventReference(&lt;span style=&quot;color:blue;&quot;&gt;this&lt;/span&gt;, &lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;arg&quot;&lt;/span&gt;, &lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;ReceiveServerData&quot;&lt;/span&gt;, &lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;String&lt;/span&gt; callbackScript = &lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;function CallServer(arg, context) {&quot;&lt;/span&gt; + cbReference + &lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;; }&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;cm.RegisterClientScriptBlock(&lt;span style=&quot;color:blue;&quot;&gt;this&lt;/span&gt;.GetType(), &lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;CallServer&quot;&lt;/span&gt;, callbackScript, &lt;span style=&quot;color:blue;&quot;&gt;true&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;#region&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt; ICallbackEventHandler Members&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:blue;&quot;&gt;string&lt;/span&gt; GetCallbackResult()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;return&lt;/span&gt; returnValue;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:blue;&quot;&gt;void&lt;/span&gt; RaiseCallbackEvent(&lt;span style=&quot;color:blue;&quot;&gt;string&lt;/span&gt; eventArgument)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;try&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;Page.ClientScript.ValidateEvent(&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;SUBMIT&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color:green;&quot;&gt;// Callback logic goes here.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;if&lt;/span&gt; (Name.Value == &lt;span style=&quot;color:blue;&quot;&gt;string&lt;/span&gt;.Empty)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;                &lt;/span&gt;returnValue += &lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;* Please fill the value for Name \n&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;if&lt;/span&gt; (Address.Value == &lt;span style=&quot;color:blue;&quot;&gt;string&lt;/span&gt;.Empty)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;                &lt;/span&gt;returnValue += &lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;* Please fill the value for Address \n&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;catch&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color:green;&quot;&gt;// Failed callback validation logic.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;#endregion&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color:blue;&quot;&gt;override&lt;/span&gt; &lt;span style=&quot;color:blue;&quot;&gt;void&lt;/span&gt; Render(&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;HtmlTextWriter&lt;/span&gt; writer)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;Page.ClientScript.RegisterForEventValidation(&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;SUBMIT&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;base&lt;/span&gt;.Render(writer);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;}&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/8301365715683605699/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/8301365715683605699' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/8301365715683605699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/8301365715683605699'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2009/12/blog-post.html' title='ICallbackEventHandler Sample'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-684172155062659101</id><published>2009-12-14T01:25:00.000-08:00</published><updated>2009-12-14T01:31:49.706-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net-Ajax"/><title type='text'>Controls that Are Not Compatible with UpdatePanel Controls</title><content type='html'>&lt;p&gt;The following ASP.NET controls are not compatible with partial-page updates, and are therefore not supported inside an &lt;span style=&quot;font-weight: bold;&quot;&gt;UpdatePanel&lt;/span&gt; control:&lt;/p&gt;   &lt;ul&gt;&lt;li&gt;       &lt;p&gt;         &lt;span style=&quot;font-weight: bold;&quot;&gt;TreeView&lt;/span&gt; and &lt;span style=&quot;font-weight: bold;&quot;&gt;Menu&lt;/span&gt; controls.&lt;/p&gt;     &lt;/li&gt;&lt;li&gt;       &lt;p&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Web Parts&lt;/span&gt; controls. For more information, see ASP.NET Web Parts Pages.&lt;/p&gt;     &lt;/li&gt;&lt;li&gt;       &lt;p&gt;         &lt;span style=&quot;font-weight: bold;&quot;&gt;FileUpload&lt;/span&gt; controls when they are used to upload files as part of an asynchronous postback. &lt;/p&gt;     &lt;/li&gt;&lt;li&gt;       &lt;p&gt;         &lt;span style=&quot;font-weight: bold;&quot;&gt;GridView&lt;/span&gt; and &lt;span style=&quot;font-weight: bold;&quot;&gt;DetailsView&lt;/span&gt; controls when their EnableSortingAndPagingCallbacks property is set to &lt;span class=&quot;keyword&quot;&gt;true&lt;/span&gt;. The default is &lt;span class=&quot;keyword&quot;&gt;false&lt;/span&gt;.&lt;/p&gt;     &lt;/li&gt;&lt;li&gt;       &lt;p&gt;         &lt;span style=&quot;font-weight: bold;&quot;&gt;Login&lt;/span&gt;, &lt;span style=&quot;font-weight: bold;&quot;&gt;PasswordRecovery&lt;/span&gt;, &lt;span style=&quot;font-weight: bold;&quot;&gt;ChangePassword&lt;/span&gt;, and &lt;span style=&quot;font-weight: bold;&quot;&gt;CreateUserWizard&lt;/span&gt; controls whose contents have not been converted to editable templates.&lt;/p&gt;     &lt;/li&gt;&lt;li&gt;       &lt;p&gt;The &lt;span style=&quot;font-weight: bold;&quot;&gt;Substitution&lt;/span&gt; control.&lt;/p&gt;     &lt;/li&gt;&lt;li&gt;       &lt;p&gt;Validation controls, which includes the &lt;span style=&quot;font-weight: bold;&quot;&gt;BaseCompareValidator&lt;/span&gt;, &lt;span style=&quot;font-weight: bold;&quot;&gt;BaseValidator&lt;/span&gt;, &lt;span style=&quot;font-weight: bold;&quot;&gt;CompareValidator&lt;/span&gt;, &lt;span style=&quot;font-weight: bold;&quot;&gt;CustomValidator&lt;/span&gt;, &lt;span style=&quot;font-weight: bold;&quot;&gt;RangeValidator&lt;/span&gt;, &lt;span style=&quot;font-weight: bold;&quot;&gt;RegularExpressionValidator&lt;/span&gt;, &lt;span style=&quot;font-weight: bold;&quot;&gt;RequiredFieldValidator&lt;/span&gt;, and &lt;span style=&quot;font-weight: bold;&quot;&gt;ValidationSummary&lt;/span&gt; control.&lt;/p&gt;     &lt;/li&gt;&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/684172155062659101/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/684172155062659101' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/684172155062659101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/684172155062659101'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2009/12/controls-that-are-not-compatible-with.html' title='Controls that Are Not Compatible with UpdatePanel Controls'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-8792003602970958442</id><published>2009-12-08T05:31:00.001-08:00</published><updated>2009-12-08T05:47:26.307-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="VB Keyword differences"/><title type='text'>C#.Net and Vb.Net Keyword Differences</title><content type='html'>&lt;table border=&quot;0&quot; width=&quot;100%&quot;&gt;&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;table class=&quot;header&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt;&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt;&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;VB.NET&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;a name=&quot;progstruct&quot;&gt;&lt;/a&gt;Program Structure&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;C#&lt;/span&gt;&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr valign=&quot;top&quot;&gt; 				&lt;td&gt;Imports System 					&lt;br /&gt;					&lt;br /&gt;					Namespace Hello&lt;br /&gt;					   Class HelloWorld 					&lt;br /&gt;					      Overloads Shared Sub &lt;b&gt;Main&lt;/b&gt;(ByVal args() As  					String) 					&lt;br /&gt;					         Dim name As String = &quot;VB.NET&quot; 					&lt;br /&gt;					&lt;br /&gt;					         &lt;span class=&quot;comment&quot;&gt;&#39;See if an  						argument was passed from the command line&lt;/span&gt;&lt;br /&gt;					          If args.Length = 1 Then  					name = args(0) 					&lt;br /&gt;					&lt;br /&gt;					           					Console.WriteLine(&quot;Hello, &quot; &amp;amp; name &amp;amp; &quot;!&quot;) 					&lt;br /&gt;					      End Sub 					&lt;br /&gt;					   End Class 					&lt;br /&gt;					End Namespace 				&lt;/td&gt; 				&lt;td&gt;using System; 					&lt;br /&gt;					&lt;br /&gt;					namespace Hello {&lt;br /&gt;					   public class HelloWorld {&lt;br /&gt;					      public static void &lt;b&gt;Main&lt;/b&gt;(string[]  					args) {&lt;br /&gt;					         string name = &quot;C#&quot;;&lt;br /&gt;					&lt;br /&gt;					         &lt;span class=&quot;comment&quot;&gt;// See if an  						argument was passed from the command line&lt;/span&gt;&lt;br /&gt;					         if (args.Length == 1)&lt;br /&gt;					            name = args[0];&lt;br /&gt;					&lt;br /&gt;					         Console.WriteLine(&quot;Hello, &quot; + name  					+ &quot;!&quot;);&lt;br /&gt;					      }&lt;br /&gt;					   }&lt;br /&gt;					} 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table class=&quot;header&quot; id=&quot;Table2&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;VB.NET&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;a name=&quot;comments&quot;&gt;&lt;/a&gt;Comments&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;C#&lt;/span&gt;&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr&gt; 				&lt;td height=&quot;16&quot;&gt;&lt;span class=&quot;comment&quot;&gt;&#39; Single line only&lt;/span&gt;&lt;br /&gt;						&lt;span class=&quot;comment&quot;&gt;&lt;b&gt;REM&lt;/b&gt; Single line only&lt;/span&gt;&lt;br /&gt;                                                &lt;span class=&quot;comment&quot;&gt;&#39;&#39;&#39; &lt;summary&gt;XML comments&lt;/summary&gt;&lt;/span&gt; 				&lt;/td&gt; 				&lt;td height=&quot;16&quot;&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;// Single line&lt;br /&gt;							/* Multiple&lt;br /&gt;							    line  */&lt;br /&gt;							/// &lt;summary&gt;XML comments on single line&lt;/summary&gt;&lt;br /&gt;							/** &lt;summary&gt;XML comments on multiple lines&lt;/summary&gt; */&lt;/span&gt;&lt;/p&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table class=&quot;header&quot; id=&quot;Table3&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;VB.NET&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;a name=&quot;datatypes&quot;&gt;&lt;/a&gt;Data Types&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;C#&lt;/span&gt;&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr valign=&quot;top&quot;&gt; 				&lt;td height=&quot;80&quot;&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Value Types&lt;/span&gt;&lt;br /&gt;						Boolean&lt;br /&gt;						Byte, SByte&lt;br /&gt;						Char&lt;br /&gt;						Short, UShort, Integer, UInteger, Long, ULong&lt;br /&gt;                                                   						Single, Double&lt;br /&gt;						Decimal&lt;br /&gt;						Date&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Reference Types&lt;/span&gt;&lt;br /&gt;						Object&lt;br /&gt;						String&lt;br /&gt;					&lt;/p&gt; 					                  &lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Initializing&lt;/span&gt;&lt;br /&gt;Dim correct As Boolean = True&lt;br /&gt;Dim b As Byte = &amp;amp;H2A   &lt;span class=&quot;comment&quot;&gt;&#39;hex&lt;/span&gt;&lt;br /&gt;Dim o As Byte = &amp;amp;O52   &lt;span class=&quot;comment&quot;&gt;&#39;octal&lt;/span&gt;&lt;br /&gt;Dim person As Object = Nothing&lt;br /&gt;Dim name As String = &quot;Dwight&quot;&lt;br /&gt;Dim grade As Char = &quot;B&quot;c&lt;br /&gt;Dim today As Date = #12/31/2007 12:15:00 PM#&lt;br /&gt;Dim amount As Decimal = 35.99@&lt;br /&gt;Dim gpa As Single = 2.9!&lt;br /&gt;Dim pi As Double = 3.14159265&lt;br /&gt;Dim lTotal As Long = 123456L&lt;br /&gt;Dim sTotal As Short = 123S&lt;br /&gt;Dim usTotal As UShort = 123US&lt;br /&gt;Dim uiTotal As UInteger = 123UI&lt;br /&gt;Dim ulTotal As ULong = 123UL &lt;/p&gt; &lt;p&gt;                                             &lt;span class=&quot;comment&quot;&gt;Type Information&lt;/span&gt;&lt;br /&gt;                                            &lt;b&gt;Dim&lt;/b&gt; x &lt;b&gt;As&lt;/b&gt; Integer 						&lt;br /&gt;						Console.WriteLine(x.&lt;b&gt;GetType&lt;/b&gt;())          &lt;span class=&quot;comment&quot;&gt; 							&#39; Prints System.Int32&lt;/span&gt; 						&lt;br /&gt;						Console.WriteLine(&lt;b&gt;GetType&lt;/b&gt;(Integer))   &lt;span class=&quot;comment&quot;&gt;&#39; Prints System.Int32&lt;/span&gt; 						&lt;br /&gt;						Console.WriteLine(&lt;b&gt;TypeName&lt;/b&gt;(x))        &lt;span class=&quot;comment&quot;&gt;&#39;  							Prints Integer&lt;/span&gt;&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Type Conversion&lt;/span&gt;&lt;br /&gt;						Dim d As Single = 3.5 						&lt;br /&gt;						Dim i As Integer = &lt;b&gt;CType&lt;/b&gt;(d, Integer)   &lt;span class=&quot;comment&quot;&gt; 							&#39; set to 4 (Banker&#39;s rounding)&lt;/span&gt;&lt;br /&gt;						i = &lt;b&gt;CInt&lt;/b&gt;(d)  &lt;span class=&quot;comment&quot;&gt;&#39; same result as CType&lt;/span&gt;&lt;br /&gt;						i = &lt;b&gt;Int&lt;/b&gt;(d)    &lt;span class=&quot;comment&quot;&gt;&#39; set to 3 (Int  							function truncates the decimal)&lt;/span&gt;&lt;/p&gt; 				&lt;/td&gt; 				&lt;td height=&quot;80&quot;&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Value Types&lt;/span&gt;&lt;br /&gt;						bool&lt;br /&gt;						byte, sbyte&lt;br /&gt;						char&lt;br /&gt;						short, ushort, int, uint, long, ulong&lt;br /&gt;						float, double&lt;br /&gt;						decimal&lt;br /&gt;						DateTime   &lt;span class=&quot;comment&quot;&gt;(not a built-in C# type)&lt;/span&gt;&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Reference Types&lt;/span&gt;&lt;br /&gt;						object&lt;br /&gt;						string&lt;br /&gt;					&lt;/p&gt; &lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Initializing&lt;/span&gt;&lt;br /&gt;bool correct = true;&lt;br /&gt;byte b = 0x2A;    &lt;span class=&quot;comment&quot;&gt;// hex&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;object person = null;&lt;br /&gt;string name = &quot;Dwight&quot;;&lt;br /&gt;char grade = &#39;B&#39;;&lt;br /&gt;DateTime today = DateTime.Parse(&quot;12/31/2007 12:15:00&quot;);&lt;br /&gt;decimal amount = 35.99m;&lt;br /&gt;float gpa = 2.9f;&lt;br /&gt;double pi = 3.14159265;&lt;br /&gt;long lTotal = 123456L;&lt;br /&gt;short sTotal = 123;&lt;br /&gt;ushort usTotal = 123;&lt;br /&gt;uint uiTotal = 123;&lt;br /&gt;ulong ulTotal = 123;&lt;br /&gt;&lt;/p&gt;              					&lt;p&gt;                                             &lt;span class=&quot;comment&quot;&gt;Type Information&lt;/span&gt;&lt;br /&gt;                                            int x;&lt;br /&gt;						Console.WriteLine(x.&lt;b&gt;GetType&lt;/b&gt;());              &lt;span class=&quot;comment&quot;&gt;//  							Prints System.Int32&lt;/span&gt;&lt;br /&gt;						Console.WriteLine(&lt;b&gt;typeof&lt;/b&gt;(int));               &lt;span class=&quot;comment&quot;&gt; 							// Prints System.Int32&lt;/span&gt; 						&lt;br /&gt;						Console.WriteLine(x.&lt;b&gt;GetType().Name&lt;/b&gt;);   &lt;span class=&quot;comment&quot;&gt;// prints Int32&lt;/span&gt; 					&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Type Conversion&lt;/span&gt; 						&lt;br /&gt;						float d = 3.5f; 						&lt;br /&gt;						int i = &lt;b&gt;(int)&lt;/b&gt;d;   &lt;span class=&quot;comment&quot;&gt;// set  							to 3  (truncates decimal)&lt;/span&gt;&lt;/p&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table class=&quot;header&quot; id=&quot;Table4&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;VB.NET&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;a name=&quot;constants&quot;&gt;&lt;/a&gt;Constants&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;C#&lt;/span&gt;&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr&gt; 				&lt;td height=&quot;16&quot;&gt;&lt;b&gt;Const&lt;/b&gt; MAX_STUDENTS &lt;b&gt;As&lt;/b&gt; Integer  					= 25 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; Can set to a const or var; may be initialized in a  							constructor&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;ReadOnly&lt;/b&gt; MIN_DIAMETER &lt;b&gt;As&lt;/b&gt; Single = 4.93 					&lt;/p&gt; 				&lt;/td&gt; 				&lt;td height=&quot;16&quot;&gt;&lt;b&gt;const&lt;/b&gt; int MAX_STUDENTS = 25; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;// Can set to a const or var; may be initialized in a  							constructor &lt;/span&gt; 						&lt;br /&gt;						&lt;b&gt;readonly&lt;/b&gt; float MIN_DIAMETER = 4.93f; 					&lt;/p&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table class=&quot;header&quot; id=&quot;Table5&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;VB.NET&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;a name=&quot;enumerations&quot;&gt;&lt;/a&gt;Enumerations&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;C#&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr valign=&quot;top&quot;&gt; 				&lt;td&gt;&lt;span&gt;&lt;b&gt;Enum&lt;/b&gt; Action 						&lt;br /&gt;						  Start&lt;br /&gt;						  [Stop]   &lt;span class=&quot;comment&quot;&gt;&#39; Stop is a reserved word&lt;/span&gt;&lt;br /&gt;						  Rewind 						&lt;br /&gt;						  Forward 						&lt;br /&gt;						&lt;b&gt;End Enum&lt;/b&gt; 						&lt;br /&gt;						&lt;br /&gt;						&lt;b&gt;Enum&lt;/b&gt; Status 						&lt;br /&gt;						  Flunk = 50 						&lt;br /&gt;						  Pass = 70 						&lt;br /&gt;						  Excel = 90 						&lt;br /&gt;						&lt;b&gt;End Enum&lt;br /&gt;						&lt;/b&gt; 						&lt;br /&gt;						Dim a As Action = Action.Stop 						&lt;br /&gt;						If a &lt;&gt; Action.Start Then _ 						&lt;br /&gt;						   Console.WriteLine(a.ToString &amp;amp; &quot; is &quot; &amp;amp; a)    						  &lt;span class=&quot;comment&quot;&gt;&#39; Prints &quot;Stop is 1&quot;&lt;/span&gt; 						&lt;br /&gt;						&lt;br /&gt;						Console.WriteLine(Status.Pass)     &lt;span class=&quot;comment&quot;&gt;&#39;  							Prints 70&lt;/span&gt; 						&lt;br /&gt;						Console.WriteLine(Status.Pass.ToString())     &lt;span class=&quot;comment&quot;&gt;&#39;  							Prints Pass&lt;/span&gt;&lt;/span&gt; 				&lt;/td&gt; 				&lt;td height=&quot;112&quot;&gt;&lt;b&gt;enum&lt;/b&gt; Action {Start, Stop, Rewind, Forward};&lt;br /&gt;					&lt;b&gt;enum&lt;/b&gt; Status {Flunk = 50, Pass = 70, Excel = 90};&lt;br /&gt;					&lt;br /&gt;					Action a = Action.Stop;&lt;br /&gt;					if (a != Action.Start)&lt;br /&gt;					  Console.WriteLine(a + &quot; is &quot; + (int) a);    &lt;span class=&quot;comment&quot;&gt;//  						Prints &quot;Stop is 1&quot;&lt;/span&gt;&lt;br /&gt;					&lt;br /&gt;					Console.WriteLine((int) Status.Pass);    &lt;span class=&quot;comment&quot;&gt;//  						Prints 70&lt;/span&gt; 					&lt;br /&gt;					Console.WriteLine(Status.Pass);      &lt;span class=&quot;comment&quot;&gt;// Prints  						Pass&lt;/span&gt;&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table class=&quot;header&quot; id=&quot;Table6&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;VB.NET&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;a name=&quot;operators&quot;&gt;&lt;/a&gt;Operators&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;C#&lt;/span&gt;&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr&gt; 				&lt;td height=&quot;16&quot;&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Comparison&lt;/span&gt;&lt;br /&gt;						=  &lt;  &gt;  &lt;=  &gt;=  &lt;&gt;&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Arithmetic&lt;/span&gt;&lt;br /&gt;						+  -  *  /&lt;br /&gt;						Mod&lt;br /&gt;						\  &lt;span class=&quot;comment&quot;&gt;(integer division)&lt;/span&gt;&lt;br /&gt;						^  &lt;span class=&quot;comment&quot;&gt;(raise to a power)&lt;/span&gt;&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Assignment&lt;/span&gt;&lt;br /&gt;						=  +=  -=  *=  /=  \=  ^=  &lt;&lt;=  						 &gt;&gt;=  &amp;amp;=&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Bitwise&lt;/span&gt;&lt;br /&gt;						And   Or   Xor   Not   &lt;&lt;   &gt;&gt;&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Logical&lt;/span&gt;&lt;br /&gt;						AndAlso   OrElse   And   Or   Xor   Not&lt;/p&gt; 					&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; AndAlso and OrElse perform short-circuit logical  						evaluations&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;String Concatenation&lt;/span&gt;&lt;br /&gt;						&amp;amp; &lt;/p&gt; 				&lt;/td&gt; 				&lt;td height=&quot;16&quot;&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Comparison&lt;/span&gt;&lt;br /&gt;						==  &lt;  &gt;  &lt;=  &gt;=  !=&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Arithmetic&lt;/span&gt;&lt;br /&gt;						+  -  *  /&lt;br /&gt;						%  &lt;span class=&quot;comment&quot;&gt;(mod)&lt;/span&gt;&lt;br /&gt;						/  &lt;span class=&quot;comment&quot;&gt;(integer division if both operands are ints)&lt;/span&gt;&lt;br /&gt;						Math.Pow(x, y)&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Assignment&lt;/span&gt;&lt;br /&gt;						=  +=  -=  *=  /=   %=  &amp;amp;=  |=   						^=  &lt;&lt;=  &gt;&gt;=  ++  --&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Bitwise&lt;/span&gt;&lt;br /&gt;						&amp;amp;   |   ^   ~   &lt;&lt;   &gt;&gt;&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Logical&lt;/span&gt;&lt;br /&gt;						&amp;amp;&amp;amp;   ||   &amp;amp;   |   ^   !&lt;/p&gt; 					&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; &amp;amp;&amp;amp; and || perform short-circuit logical  						evaluations&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;String Concatenation&lt;/span&gt;&lt;br /&gt;						+&lt;/p&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table class=&quot;header&quot; id=&quot;Table7&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;VB.NET&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;a name=&quot;choices&quot;&gt;&lt;/a&gt;Choices&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;C#&lt;/span&gt;&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr valign=&quot;top&quot;&gt; 				&lt;td height=&quot;163&quot;&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; Ternary/Conditional operator (Iff evaluates 2nd and 3rd expressions)&lt;/span&gt;&lt;br /&gt;					greeting = &lt;b&gt;If&lt;/b&gt;(age &lt;&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; One line doesn&#39;t require &quot;End If&quot;&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;If&lt;/b&gt; age &lt;&gt;Then&lt;/b&gt; greeting =  						&quot;What&#39;s up?&quot; 						&lt;br /&gt;						&lt;b&gt;If&lt;/b&gt;  age &lt;&gt;Then&lt;/b&gt; greeting =  						&quot;What&#39;s up?&quot; &lt;b&gt;Else&lt;/b&gt; greeting = &quot;Hello&quot; 					&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; Use : to put two commands on same line&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;If&lt;/b&gt; x &lt;&gt; 100 AndAlso y &lt;&gt;Then&lt;/b&gt; x *= 5 &lt;b&gt; 							:&lt;/b&gt; y *= 2  &lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; Preferred&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;If&lt;/b&gt; x &lt;&gt; 100 AndAlso y &lt;&gt;Then&lt;/b&gt;&lt;br /&gt;						  x *= 5 						&lt;br /&gt;						  y *= 2&lt;br /&gt;						&lt;b&gt;End If&lt;/b&gt;&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; To break up any long single line use _&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;If&lt;/b&gt; whenYouHaveAReally &lt; longLine And _ 						&lt;br /&gt;						  itNeedsToBeBrokenInto2 &gt; Lines &lt;b&gt;Then&lt;/b&gt; _&lt;br /&gt;						  UseTheUnderscore(charToBreakItUp)&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39;&lt;/span&gt;&lt;b&gt;If&lt;/b&gt; x &gt; 5 &lt;b&gt;Then&lt;/b&gt; 						&lt;br /&gt;						  x *= y 						&lt;br /&gt;						&lt;b&gt;ElseIf&lt;/b&gt; x = 5 OrElse y Mod 2 = 0 &lt;b&gt;Then&lt;/b&gt; 						&lt;br /&gt;						  x += y 						&lt;br /&gt;						&lt;b&gt;ElseIf&lt;/b&gt; x &lt;&gt;Then&lt;/b&gt; 						&lt;br /&gt;						  x -= y 						&lt;br /&gt;						&lt;b&gt;Else&lt;/b&gt; 						&lt;br /&gt;						  x /= y 						&lt;br /&gt;						&lt;b&gt;End If&lt;/b&gt;&lt;/p&gt; 					&lt;p&gt;&lt;b&gt;Select Case&lt;/b&gt; color   &lt;span class=&quot;comment&quot;&gt;&#39; Must be a  							primitive data type&lt;/span&gt;&lt;br /&gt;						  &lt;b&gt;Case&lt;/b&gt; &quot;pink&quot;, &quot;red&quot;&lt;br /&gt;						    r += 1 						&lt;br /&gt;						  &lt;b&gt;Case&lt;/b&gt; &quot;blue&quot; 						&lt;br /&gt;						    b += 1 						&lt;br /&gt;                     						  &lt;b&gt;Case&lt;/b&gt; &quot;green&quot; 						&lt;br /&gt;						    g += 1 						&lt;br /&gt;						  &lt;b&gt;Case Else&lt;/b&gt; 						&lt;br /&gt;						    other += 1 						&lt;br /&gt;						&lt;b&gt;End Select&lt;/b&gt; 					&lt;/p&gt; 				&lt;/td&gt; 				&lt;td height=&quot;163&quot;&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;// Ternary/Conditional operator&lt;/span&gt;&lt;br /&gt;					greeting = age &lt;&gt;?&lt;/b&gt; &quot;What&#39;s up?&quot; &lt;b&gt;:&lt;/b&gt; &quot;Hello&quot;;&lt;/p&gt; 					&lt;p&gt; 					&lt;b&gt;if&lt;/b&gt; (age &lt; 20)&lt;br /&gt;                      greeting = &quot;What&#39;s up?&quot;;&lt;br /&gt;                    &lt;b&gt;else&lt;/b&gt;&lt;br /&gt;                      greeting = &quot;Hello&quot;; 					&lt;/p&gt; 					&lt;p&gt; 					 &lt;span class=&quot;comment&quot;&gt;// Multiple statements must be enclosed in {}&lt;/span&gt;&lt;br /&gt;					&lt;b&gt;if&lt;/b&gt; (x != 100 &amp;amp;&amp;amp; y &lt; 5) {  &lt;br /&gt;						  x *= 5;&lt;br /&gt;						  y *= 2;&lt;br /&gt;						}&lt;/p&gt; 						&lt;br /&gt;						&lt;br /&gt;					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;No need for _ or : since ; is used to terminate each  							statement.&lt;/span&gt;&lt;/p&gt; 					&lt;p&gt;&lt;br /&gt;						 						&lt;br /&gt;						&lt;br /&gt;						&lt;b&gt; 							&lt;br /&gt;							if&lt;/b&gt; (x &gt; 5) 						&lt;br /&gt;						  x *= y; 						&lt;br /&gt;						&lt;b&gt;else&lt;/b&gt; if (x == 5 || y % 2 == 0) 						&lt;br /&gt;						  x += y; 						&lt;br /&gt;						&lt;b&gt;else&lt;/b&gt; if (x &lt; 10) 						&lt;br /&gt;						  x -= y; 						&lt;br /&gt;						&lt;b&gt;else&lt;/b&gt; 						&lt;br /&gt;						  x /= y;&lt;br /&gt;					&lt;/p&gt; 					&lt;p&gt;&lt;br /&gt;						&lt;br /&gt;						&lt;span class=&quot;comment&quot;&gt;// Every case must end with break or goto case&lt;/span&gt; 						&lt;br /&gt;						&lt;b&gt;switch&lt;/b&gt; (color) {                          						&lt;i&gt;&lt;span style=&quot;color:#008000;&quot;&gt;// Must be integer or string&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;						  &lt;b&gt;case&lt;/b&gt; &quot;pink&quot;:&lt;br /&gt;						  &lt;b&gt;case&lt;/b&gt; &quot;red&quot;:    r++;    &lt;b&gt; 							break;&lt;/b&gt; &lt;br /&gt;						  &lt;b&gt;case&lt;/b&gt; &quot;blue&quot;:   b++;   &lt;b&gt;break;&lt;br /&gt;						&lt;/b&gt;  &lt;b&gt;case&lt;/b&gt; &quot;green&quot;: g++;   &lt;b&gt;break;&lt;br /&gt;						&lt;/b&gt;  &lt;b&gt;default:&lt;/b&gt;     						other++;  &lt;b&gt; break;&lt;/b&gt;        						&lt;span class=&quot;comment&quot;&gt;// break necessary on default&lt;/span&gt;&lt;br /&gt;						} 					&lt;/p&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table class=&quot;header&quot; id=&quot;Table8&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;VB.NET&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;a name=&quot;loops&quot;&gt;&lt;/a&gt;Loops&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;C#&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr&gt; 				&lt;td valign=&quot;top&quot;&gt; 					&lt;table id=&quot;Table1&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr&gt; 							&lt;td colspan=&quot;2&quot;&gt;&lt;span class=&quot;comment&quot;&gt;Pre-test Loops:&lt;/span&gt; 							&lt;/td&gt; 						&lt;/tr&gt; 						&lt;tr&gt; 							&lt;td width=&quot;50%&quot;&gt;&lt;b&gt;While&lt;/b&gt; c &lt; 10 								&lt;br /&gt;								  c += 1 								&lt;br /&gt;								&lt;b&gt;End While&lt;/b&gt; 							&lt;/td&gt; 							&lt;td width=&quot;50%&quot;&gt; 								&lt;p&gt;&lt;b&gt;Do Until&lt;/b&gt; c = 10&lt;br /&gt;									  c += 1 									&lt;br /&gt;									&lt;b&gt;Loop&lt;/b&gt;&lt;/p&gt; 							&lt;/td&gt; 						&lt;/tr&gt; 						&lt;tr&gt; 							&lt;td&gt;&lt;b&gt;Do While&lt;/b&gt; c &lt; 10 								&lt;br /&gt;								  c += 1 								&lt;br /&gt;								&lt;b&gt;Loop&lt;/b&gt; 							&lt;/td&gt; 							&lt;td&gt; 								&lt;p&gt;&lt;b&gt;For&lt;/b&gt; c = 2 &lt;b&gt;To&lt;/b&gt; 10 &lt;b&gt;Step&lt;/b&gt; 2 									&lt;br /&gt;									  Console.WriteLine(c) 									&lt;br /&gt;									&lt;b&gt;Next&lt;/b&gt; 								&lt;/p&gt; 							&lt;/td&gt; 						&lt;/tr&gt; 						&lt;tr&gt; 							&lt;td colspan=&quot;2&quot;&gt;&lt;span class=&quot;comment&quot;&gt;&lt;br /&gt;									Post-test Loops:&lt;/span&gt; 							&lt;/td&gt; 						&lt;/tr&gt; 						&lt;tr&gt; 							&lt;td&gt;&lt;b&gt;Do&lt;/b&gt;&lt;br /&gt;								  c += 1 								&lt;br /&gt;								&lt;b&gt;Loop While&lt;/b&gt; c &lt;&gt; 							&lt;td&gt;&lt;b&gt;Do&lt;/b&gt;&lt;br /&gt;								  c += 1 								&lt;br /&gt;								&lt;b&gt;Loop Until&lt;/b&gt; c = 10 							&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 					&lt;p&gt; 					&lt;span class=&quot;comment&quot;&gt;&#39;  Array or collection looping&lt;/span&gt;&lt;br /&gt;						Dim names As String() = {&quot;Fred&quot;, &quot;Sue&quot;, &quot;Barney&quot;} 						&lt;br /&gt;						&lt;b&gt;For Each&lt;/b&gt; s As String&lt;b&gt; In&lt;/b&gt; names 						&lt;br /&gt;						  Console.WriteLine(s) 						&lt;br /&gt;						&lt;b&gt;Next&lt;/b&gt; 					&lt;/p&gt; 					&lt;p&gt; 					&lt;span class=&quot;comment&quot;&gt;&#39; Breaking out of loops&lt;/span&gt;&lt;br /&gt;					Dim i As Integer = 0&lt;br /&gt;                    While (True)&lt;br /&gt;                      If (i = 5) Then &lt;b&gt;Exit While&lt;/b&gt;&lt;br /&gt;                      i += 1&lt;br /&gt;                    End While                    &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;					&lt;/p&gt; 					&lt;p&gt; 					&lt;span class=&quot;comment&quot;&gt;&#39; Continue to next iteration&lt;/span&gt;&lt;br /&gt;                    For i = 0 To 4&lt;br /&gt;                      If i &lt;&gt;Continue For&lt;/b&gt;&lt;br /&gt;                      Console.WriteLine(i)   &lt;span class=&quot;comment&quot;&gt;&#39; Only prints 4&lt;/span&gt;&lt;br /&gt;                    Next 					&lt;/p&gt; 				&lt;/td&gt; 				&lt;td height=&quot;259&quot; valign=&quot;top&quot;&gt;&lt;span class=&quot;comment&quot;&gt;Pre-test Loops:&lt;/span&gt;   					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;// no &quot;until&quot; keyword&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;while&lt;/b&gt; (c &lt; 10) 						&lt;br /&gt;						  c++;&lt;br /&gt;						&lt;br /&gt;&lt;br /&gt;						&lt;b&gt;for&lt;/b&gt; (c = 2; c &lt;= 10; c += 2) 						&lt;br /&gt;						  Console.WriteLine(c);&lt;/p&gt; 					&lt;p&gt;&lt;br /&gt;						 						&lt;span class=&quot;comment&quot;&gt;Post-test Loop:&lt;/span&gt;&lt;br /&gt;						&lt;br /&gt;						&lt;b&gt;do&lt;/b&gt; 						&lt;br /&gt;						  c++; 						&lt;br /&gt;						&lt;b&gt;while&lt;/b&gt; (c &lt; 10);&lt;br /&gt;						&lt;br /&gt;						&lt;br /&gt;						 					&lt;/p&gt; 					&lt;p&gt;	 						&lt;span class=&quot;comment&quot;&gt;// Array or collection looping&lt;/span&gt;&lt;br /&gt;						string[] names = {&quot;Fred&quot;, &quot;Sue&quot;, &quot;Barney&quot;};&lt;br /&gt;						&lt;b&gt;foreach&lt;/b&gt; (string s &lt;b&gt;in&lt;/b&gt; names)&lt;br /&gt;						  Console.WriteLine(s); 					&lt;/p&gt; 					&lt;p&gt;&lt;br /&gt;					&lt;span class=&quot;comment&quot;&gt;// Breaking out of loops&lt;/span&gt;&lt;br /&gt;					int i = 0;&lt;br /&gt;                    while (true) {&lt;br /&gt;                      if (i == 5)&lt;br /&gt;                        &lt;b&gt;break;&lt;/b&gt;&lt;br /&gt;                      i++;&lt;br /&gt;                    } 					&lt;/p&gt; 					&lt;p&gt; 					&lt;span class=&quot;comment&quot;&gt;// Continue to next iteration&lt;/span&gt;&lt;br /&gt;                    for (i = 0; i &lt; 5; i++) {&lt;br /&gt;                      if (i &lt; 4)&lt;br /&gt;                        &lt;b&gt;continue;&lt;/b&gt;&lt;br /&gt;                      Console.WriteLine(i);    &lt;span class=&quot;comment&quot;&gt;// Only prints 4&lt;/span&gt;&lt;br /&gt;                    } 					&lt;/p&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table class=&quot;header&quot; id=&quot;Table9&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;VB.NET&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;a name=&quot;arrays&quot;&gt;&lt;/a&gt;Arrays&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;C#&lt;/span&gt;&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr valign=&quot;top&quot;&gt; 				&lt;td height=&quot;144&quot;&gt; 					&lt;p&gt;Dim nums&lt;b&gt;()&lt;/b&gt; As Integer = {1, 2, 3}&lt;br /&gt;						For i As Integer = 0 To nums.Length - 1 						&lt;br /&gt;						  Console.WriteLine(nums(i)) 						&lt;br /&gt;						Next 						&lt;br /&gt;						&lt;br /&gt;						&lt;span class=&quot;comment&quot;&gt;&#39; 4 is the index of the last element, so it holds 5  							elements&lt;/span&gt;&lt;br /&gt;						Dim names(4) As String 						&lt;br /&gt;						names(0) = &quot;David&quot;&lt;br /&gt;						names(5) = &quot;Bobby&quot;  &lt;span class=&quot;comment&quot;&gt;&#39; Throws  							System.IndexOutOfRangeException&lt;/span&gt; 						&lt;br /&gt;						&lt;br /&gt;						&lt;span class=&quot;comment&quot;&gt;&#39; Resize the array, keeping the existing values (Preserve is  							optional)&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;ReDim Preserve&lt;/b&gt; names(6)&lt;br /&gt;					&lt;/p&gt; 					&lt;p&gt;&lt;br /&gt;						&lt;br /&gt;						Dim twoD(rows-1, cols-1) As Single 						&lt;br /&gt;						twoD(2, 0) = 4.5&lt;br /&gt;						&lt;br /&gt;						Dim jagged&lt;b&gt;()()&lt;/b&gt; As Integer = { _ 						&lt;br /&gt;						  New Integer(4) {}, New Integer(1) {}, New Integer(2) {} } 						&lt;br /&gt;						jagged(0)(4) = 5 					&lt;/p&gt; 				&lt;/td&gt; 				&lt;td height=&quot;144&quot;&gt; 					&lt;p&gt;int&lt;b&gt;[] &lt;/b&gt;nums = {1, 2, 3};&lt;br /&gt;						for (int i = 0; i &lt; nums.Length; i++)&lt;br /&gt;						  Console.WriteLine(nums[i]);&lt;br /&gt;						&lt;br /&gt;						&lt;br /&gt;						&lt;span class=&quot;comment&quot;&gt;// 5 is the size of the array&lt;/span&gt;&lt;br /&gt;						string[] names = new string[5];&lt;br /&gt;						names[0] = &quot;David&quot;;&lt;br /&gt;						names[5] = &quot;Bobby&quot;;   &lt;span class=&quot;comment&quot;&gt;// Throws  							System.IndexOutOfRangeException&lt;/span&gt; 						&lt;br /&gt;						&lt;br /&gt;						&lt;br /&gt;						&lt;span class=&quot;comment&quot;&gt;// C# can&#39;t dynamically resize an array.  Just copy into  							new array.&lt;/span&gt;&lt;br /&gt;						string[] names2 = new string[7]; 						&lt;br /&gt;						Array.Copy(names, names2, names.Length);   &lt;span class=&quot;comment&quot;&gt;// or  							names.CopyTo(names2, 0);&lt;/span&gt; &lt;/p&gt; 					&lt;p&gt;float&lt;b&gt;[,]&lt;/b&gt; twoD = new float[rows, cols];&lt;br /&gt;					twoD[2,0] = 4.5f;  					&lt;/p&gt;&lt;p&gt;int&lt;b&gt;[][]&lt;/b&gt; jagged = new int[3][] { 						&lt;br /&gt;						  new int[5], new int[2], new int[3] };&lt;br /&gt;						jagged[0][4] = 5; 					&lt;/p&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table class=&quot;header&quot; id=&quot;Table10&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;VB.NET&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;a name=&quot;functions&quot;&gt;&lt;/a&gt;Functions&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;C#&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr valign=&quot;top&quot;&gt; 				&lt;td height=&quot;100&quot; width=&quot;50%&quot;&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; Pass by value (in, default), reference (in/out),  							and reference (out)&lt;/span&gt;  						&lt;br /&gt;						&lt;b&gt;Sub&lt;/b&gt; TestFunc(&lt;b&gt;ByVal&lt;/b&gt; x As Integer, &lt;b&gt;ByRef&lt;/b&gt; 						y As Integer, &lt;b&gt;ByRef&lt;/b&gt; z As Integer)&lt;br /&gt;						  x += 1&lt;br /&gt;						  y += 1 						&lt;br /&gt;						  z = 5 						&lt;br /&gt;						&lt;b&gt;End Sub&lt;/b&gt; 					&lt;/p&gt;&lt;p&gt;&lt;span&gt;Dim a = 1, b = 1, c As Integer   &lt;span class=&quot;comment&quot;&gt;&#39; c set to  								zero by default&lt;/span&gt;  							&lt;br /&gt;							TestFunc(a, b, c) 							&lt;br /&gt;							Console.WriteLine(&quot;{0} {1} {2}&quot;, a, b, c)   &lt;span class=&quot;comment&quot;&gt;&#39;  								1 2 5&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; Accept variable number of arguments&lt;/span&gt; 						&lt;br /&gt;						&lt;b&gt;Function&lt;/b&gt; Sum(ByVal &lt;b&gt;ParamArray&lt;/b&gt; nums &lt;b&gt;As&lt;/b&gt; Integer())  						As Integer 						&lt;br /&gt;						  Sum = 0  						&lt;br /&gt;						  For Each i As Integer In nums 						&lt;br /&gt;						    Sum += i 						&lt;br /&gt;						  Next 						&lt;br /&gt;						&lt;b&gt;End Function&lt;/b&gt;   &lt;span class=&quot;comment&quot;&gt;&#39; Or use Return  							statement like C#&lt;/span&gt;&lt;br /&gt;						&lt;br /&gt;						Dim total As Integer = Sum(4, 3, 2, 1)   &lt;span class=&quot;comment&quot;&gt;&#39; returns  							10&lt;/span&gt;&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; Optional parameters must be listed last and must  							have a default value&lt;/span&gt; 						&lt;br /&gt;						&lt;b&gt;Sub&lt;/b&gt; SayHello(ByVal name As String, &lt;b&gt;Optional&lt;/b&gt; ByVal  						prefix As String = &quot;&quot;)&lt;br /&gt;						  Console.WriteLine(&quot;Greetings, &quot; &amp;amp; prefix &amp;amp; &quot; &quot; &amp;amp; name) 						&lt;br /&gt;						&lt;b&gt;End Sub&lt;/b&gt;&lt;br /&gt;						&lt;br /&gt;						SayHello(&quot;Strangelove&quot;, &quot;Dr.&quot;)&lt;br /&gt;						SayHello(&quot;Madonna&quot;)&lt;br /&gt;					&lt;/p&gt; 					&lt;/td&gt; 				&lt;td height=&quot;100&quot; width=&quot;50%&quot;&gt;&lt;span class=&quot;comment&quot;&gt;// Pass by value (in, default),  						reference (in/out), and reference (out)&lt;/span&gt;&lt;br /&gt;					void TestFunc(int x, &lt;b&gt;ref&lt;/b&gt; int y, &lt;b&gt;out&lt;/b&gt; int z) {&lt;br /&gt;					  x++; &lt;br /&gt;					  y++;&lt;br /&gt;					  z = 5;&lt;br /&gt;					} 					&lt;p&gt;int a = 1, b = 1, c;  &lt;span style=&quot;color:#008000;&quot;&gt;&lt;i&gt;// c doesn&#39;t need initializing&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;						TestFunc(a, &lt;b&gt;ref&lt;/b&gt; b, &lt;b&gt;out&lt;/b&gt; c);&lt;br /&gt;						Console.WriteLine(&quot;{0} {1} {2}&quot;, a, b, c);  &lt;span class=&quot;comment&quot;&gt;// 1 2 5&lt;/span&gt;&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;// Accept variable number of arguments&lt;/span&gt;&lt;br /&gt;						int Sum(&lt;b&gt;params&lt;/b&gt; int[] nums) {&lt;br /&gt;						  int sum = 0;&lt;br /&gt;						  foreach (int i in nums)&lt;br /&gt;						    sum += i;&lt;br /&gt;						  return sum;&lt;br /&gt;						}&lt;/p&gt; 					&lt;p&gt;int total = Sum(4, 3, 2, 1);   &lt;span style=&quot;color:#008000;&quot;&gt;&lt;i&gt;// returns 10&lt;/i&gt;&lt;/span&gt;&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;/* C# doesn&#39;t support optional  							arguments/parameters.  Just create two different versions of the same  							function. */&lt;/span&gt;  						&lt;br /&gt;						void SayHello(string name, string prefix) {&lt;br /&gt;						  Console.WriteLine(&quot;Greetings, &quot; + prefix + &quot; &quot; + name);&lt;br /&gt;						}&lt;br /&gt;						&lt;br /&gt;						void SayHello(string name) { 						&lt;br /&gt;						  SayHello(name, &quot;&quot;); 						&lt;br /&gt;						} 					&lt;/p&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table class=&quot;header&quot; id=&quot;Table11&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;VB.NET&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;a name=&quot;strings&quot;&gt;&lt;/a&gt;Strings&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;C#&lt;/span&gt;&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr&gt; 				&lt;td valign=&quot;top&quot;&gt; 				&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Special character constants (all also accessible from ControlChars class)&lt;/span&gt;&lt;br /&gt;					vbCrLf, vbCr, vbLf, vbNewLine  					&lt;br /&gt;					vbNullString 					&lt;br /&gt;					vbTab 					&lt;br /&gt;					vbBack 					&lt;br /&gt;					vbFormFeed 					&lt;br /&gt;					vbVerticalTab&lt;br /&gt;					&quot;&quot;   					&lt;/p&gt; 					&lt;p&gt; 					&lt;span class=&quot;comment&quot;&gt;&#39; String concatenation (use &amp;amp; or +)&lt;/span&gt; 					&lt;br /&gt;					Dim school As String = &quot;Harding&quot; &lt;b&gt;&amp;amp;&lt;/b&gt; vbTab&lt;br /&gt;					school = school &amp;amp; &quot;University&quot; &lt;span class=&quot;comment&quot;&gt;&#39; school is &quot;Harding (tab)  						University&quot;&lt;/span&gt; 						&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; Chars&lt;/span&gt;&lt;br /&gt;						Dim letter As &lt;b&gt;Char&lt;/b&gt; = school.Chars(0)   &lt;span class=&quot;comment&quot;&gt; 							&#39; letter is H &lt;/span&gt; 						&lt;br /&gt;						letter =  						Convert.ToChar(65)                						 &lt;span class=&quot;comment&quot;&gt;&#39; letter is A &lt;/span&gt; 						&lt;br /&gt;						letter = &lt;b&gt;Chr&lt;/b&gt;(65)                                 &lt;span class=&quot;comment&quot;&gt;&#39;  							same thing 							&lt;br /&gt;						&lt;/span&gt;Dim word() As Char = school.ToCharArray() &lt;span class=&quot;comment&quot;&gt;&#39; word holds  							Harding &lt;/span&gt; 					&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; No string literal operator&lt;/span&gt; 						&lt;br /&gt;						Dim msg As String = &quot;File is c:\temp\x.dat&quot; 						&lt;br /&gt;						&lt;br /&gt;						&lt;br /&gt;					&lt;/p&gt; 					&lt;p&gt; 						&lt;span class=&quot;comment&quot;&gt;&#39; String comparison&lt;/span&gt;&lt;br /&gt;						Dim mascot As String = &quot;Bisons&quot;&lt;br /&gt;						If (mascot = &quot;Bisons&quot;) Then   &lt;span class=&quot;comment&quot;&gt;&#39; true&lt;/span&gt;&lt;br /&gt;						If (mascot.&lt;b&gt;Equals&lt;/b&gt;(&quot;Bisons&quot;)) Then   &lt;span class=&quot;comment&quot;&gt; 							&#39; true&lt;/span&gt;&lt;br /&gt;						If (mascot.&lt;b&gt;ToUpper&lt;/b&gt;().&lt;b&gt;Equals&lt;/b&gt;(&quot;BISONS&quot;)) Then  						 &lt;span class=&quot;comment&quot;&gt;&#39; true&lt;/span&gt;&lt;br /&gt;						If (mascot.&lt;b&gt;CompareTo&lt;/b&gt;(&quot;Bisons&quot;) = 0) Then   &lt;span class=&quot;comment&quot;&gt;&#39;  							true&lt;/span&gt;&lt;/p&gt; 							 					&lt;p&gt; 					&lt;span class=&quot;comment&quot;&gt;&#39; String matching with Like - Regex is more powerful&lt;/span&gt;&lt;br /&gt;					If (&quot;John 3:16&quot; &lt;b&gt;Like&lt;/b&gt; &quot;Jo[Hh]? #:*&quot;) Then   &lt;span class=&quot;comment&quot;&gt;&#39;true&lt;/span&gt; 					&lt;/p&gt; 					 					&lt;p&gt; 					&lt;span class=&quot;comment&quot;&gt;&#39; Substring&lt;/span&gt;&lt;br /&gt;					s = mascot.&lt;b&gt;Substring&lt;/b&gt;(2, 3)) &lt;span class=&quot;comment&quot;&gt;&#39; s is &quot;son&quot;&lt;/span&gt; 					&lt;/p&gt; 					 					&lt;p&gt; 					&lt;span class=&quot;comment&quot;&gt;&#39; Replacement&lt;/span&gt;&lt;br /&gt;					s = mascot.&lt;b&gt;Replace&lt;/b&gt;(&quot;sons&quot;, &quot;nomial&quot;)) &lt;span class=&quot;comment&quot;&gt;&#39; s is &quot;Binomial&quot;&lt;/span&gt; 					&lt;/p&gt;		 								 					&lt;p&gt; 					&lt;span class=&quot;comment&quot;&gt;&#39; Split&lt;/span&gt;&lt;br /&gt;					Dim names As String = &quot;Frank,Becky,Ethan,Braden&quot;&lt;br /&gt;                    Dim parts() As String = names.&lt;b&gt;Split&lt;/b&gt;(&quot;,&quot;.ToCharArray())   &lt;span class=&quot;comment&quot;&gt;&#39; One name in each slot&lt;/span&gt; 					&lt;/p&gt;		 					 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; Date to string&lt;/span&gt;&lt;br /&gt;						Dim dt As New DateTime(1973, 10, 12)&lt;br /&gt;						Dim s As String = &quot;My birthday: &quot; &amp;amp; dt.ToString(&quot;MMM dd, yyyy&quot;)   &lt;span class=&quot;comment&quot;&gt;&#39; Oct 12, 1973&lt;/span&gt; 					&lt;/p&gt; 					&lt;p&gt; 					&lt;span class=&quot;comment&quot;&gt;&#39; Integer to String&lt;/span&gt;&lt;br /&gt;					Dim x As Integer = 2&lt;br /&gt;                    Dim y As String = x.ToString()     &lt;span class=&quot;comment&quot;&gt;&#39; y is &quot;2&quot;&lt;/span&gt;         					&lt;/p&gt; 					&lt;p&gt; 					&lt;span class=&quot;comment&quot;&gt;&#39; String to Integer&lt;/span&gt;&lt;br /&gt;					Dim x As Integer = Convert.ToInt32(&quot;-5&quot;)      &lt;span class=&quot;comment&quot;&gt;&#39; x is -5&lt;/span&gt;  					&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; Mutable string 							&lt;br /&gt;						&lt;/span&gt;Dim buffer As New System.Text.&lt;b&gt;StringBuilder&lt;/b&gt;(&quot;two &quot;)&lt;br /&gt;						buffer.Append(&quot;three &quot;)&lt;br /&gt;						buffer.Insert(0, &quot;one &quot;)&lt;br /&gt;						buffer.Replace(&quot;two&quot;, &quot;TWO&quot;)&lt;br /&gt;						Console.WriteLine(buffer)         &lt;span class=&quot;comment&quot;&gt; 							&#39; Prints &quot;one TWO three&quot;&lt;/span&gt; 					&lt;/p&gt; 				&lt;/td&gt; 				&lt;td valign=&quot;top&quot;&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Escape sequences&lt;/span&gt;&lt;br /&gt;                                                \r    &lt;span class=&quot;comment&quot;&gt;// carriage-return&lt;/span&gt;&lt;br /&gt;						\n    &lt;span class=&quot;comment&quot;&gt;// line-feed&lt;/span&gt;&lt;br /&gt;                                                						\t    &lt;span class=&quot;comment&quot;&gt;// tab&lt;/span&gt;&lt;br /&gt;						\\    &lt;span class=&quot;comment&quot;&gt;// backslash&lt;/span&gt;&lt;br /&gt;						\&quot;    &lt;span class=&quot;comment&quot;&gt;// quote&lt;/span&gt; 					&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;						&lt;/p&gt; 						&lt;p&gt;	&lt;span class=&quot;comment&quot;&gt;// String concatenation&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;string&lt;/b&gt; school = &quot;Harding\t&quot;; 						&lt;br /&gt;						school = school + &quot;University&quot;;   &lt;span class=&quot;comment&quot;&gt;// school is  							&quot;Harding (tab) University&quot;&lt;/span&gt;&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;// Chars&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;char&lt;/b&gt; letter = school[0];   						          &lt;span class=&quot;comment&quot;&gt;//  							letter is H&lt;/span&gt; 						&lt;br /&gt;						letter = Convert.ToChar(65);     &lt;span class=&quot;comment&quot;&gt;// letter is A&lt;/span&gt; 						&lt;br /&gt;						letter = &lt;b&gt;(char)&lt;/b&gt;65;                    						&lt;span class=&quot;comment&quot;&gt;// same thing 							&lt;br /&gt;						&lt;/span&gt;&lt;b&gt;char[]&lt;/b&gt; word = school.ToCharArray();   &lt;span class=&quot;comment&quot;&gt; 							// word holds Harding&lt;/span&gt; 					&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;// String literal&lt;/span&gt; 						&lt;br /&gt;						string msg = &lt;b&gt;@&lt;/b&gt;&quot;File is c:\temp\x.dat&quot;; 						&lt;br /&gt;						&lt;span class=&quot;comment&quot;&gt;// same as&lt;/span&gt; 						&lt;br /&gt;						string msg = &quot;File is c:\\temp\\x.dat&quot;; 						&lt;br /&gt;					&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;// String comparison&lt;/span&gt;&lt;br /&gt;						string mascot = &quot;Bisons&quot;; 						&lt;br /&gt;						if (mascot == &quot;Bisons&quot;)    &lt;span class=&quot;comment&quot;&gt;// true&lt;/span&gt;&lt;br /&gt;						if (mascot.&lt;b&gt;Equals&lt;/b&gt;(&quot;Bisons&quot;))   &lt;span class=&quot;comment&quot;&gt;//  							true&lt;/span&gt;&lt;br /&gt;						if (mascot.&lt;b&gt;ToUpper&lt;/b&gt;().&lt;b&gt;Equals&lt;/b&gt;(&quot;BISONS&quot;))   						&lt;span class=&quot;comment&quot;&gt;// true&lt;/span&gt;&lt;br /&gt;						if (mascot.&lt;b&gt;CompareTo&lt;/b&gt;(&quot;Bisons&quot;) == 0)    &lt;span class=&quot;comment&quot;&gt; 							// true&lt;/span&gt;&lt;/p&gt; 					 					&lt;p&gt; 					&lt;span class=&quot;comment&quot;&gt;// String matching - No Like equivalent, use Regex&lt;/span&gt; 					&lt;/p&gt; 					 					&lt;p&gt;&lt;br /&gt;					&lt;span class=&quot;comment&quot;&gt;// Substring&lt;/span&gt;&lt;br /&gt;					s = mascot.&lt;b&gt;Substring&lt;/b&gt;(2, 3))     &lt;span class=&quot;comment&quot;&gt;// s is &quot;son&quot;&lt;/span&gt; 					&lt;/p&gt; 					 					&lt;p&gt; 					&lt;span class=&quot;comment&quot;&gt;// Replacement&lt;/span&gt;&lt;br /&gt;					s = mascot.&lt;b&gt;Replace&lt;/b&gt;(&quot;sons&quot;, &quot;nomial&quot;))     &lt;span class=&quot;comment&quot;&gt;// s is &quot;Binomial&quot;&lt;/span&gt; 					&lt;/p&gt; 					 					&lt;p&gt; 					&lt;span class=&quot;comment&quot;&gt;// Split&lt;/span&gt;&lt;br /&gt;					string names = &quot;Frank,Becky,Ethan,Braden&quot;;&lt;br /&gt;                    string[] parts = names.&lt;b&gt;Split&lt;/b&gt;(&quot;,&quot;.ToCharArray());   &lt;span class=&quot;comment&quot;&gt;// One name in each slot&lt;/span&gt; 					&lt;/p&gt; 					 					&lt;p&gt; 					&lt;span class=&quot;comment&quot;&gt;// Date to string&lt;/span&gt;&lt;br /&gt;						DateTime dt = new DateTime(1973, 10, 12);&lt;br /&gt;						string s = dt.ToString(&quot;MMM dd, yyyy&quot;);     &lt;span class=&quot;comment&quot;&gt;// Oct 12, 1973&lt;/span&gt; 					&lt;/p&gt; 					&lt;p&gt; 					&lt;span class=&quot;comment&quot;&gt;// int to string&lt;/span&gt;&lt;br /&gt;					int x = 2;&lt;br /&gt;                    string y = x.ToString();      &lt;span class=&quot;comment&quot;&gt;// y is &quot;2&quot;&lt;/span&gt; 					&lt;/p&gt; 					&lt;span class=&quot;comment&quot;&gt;// string to int&lt;/span&gt;&lt;br /&gt;					int x = Convert.ToInt32(&quot;-5&quot;);     &lt;span class=&quot;comment&quot;&gt;// x is -5&lt;/span&gt;        					 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;// Mutable string&lt;/span&gt; 						&lt;br /&gt;						System.Text.&lt;b&gt;StringBuilder&lt;/b&gt; buffer = new System.Text.&lt;b&gt;StringBuilder&lt;/b&gt;(&quot;two  						&quot;); 						&lt;br /&gt;						buffer.&lt;b&gt;Append&lt;/b&gt;(&quot;three &quot;); 						&lt;br /&gt;						buffer.&lt;b&gt;Insert&lt;/b&gt;(0, &quot;one &quot;); 						&lt;br /&gt;						buffer.&lt;b&gt;Replace&lt;/b&gt;(&quot;two&quot;, &quot;TWO&quot;); 						&lt;br /&gt;						Console.WriteLine(buffer);     &lt;span class=&quot;comment&quot;&gt;// Prints  							&quot;one TWO three&quot;&lt;/span&gt;&lt;/p&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table class=&quot;header&quot; id=&quot;Table22&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;VB.NET&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; id=&quot;regex&quot; width=&quot;60%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;Regular Expressions&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;C#&lt;/span&gt;&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr&gt; 				&lt;td valign=&quot;top&quot;&gt; 				&lt;p&gt; 				Imports System.Text.RegularExpressions 				&lt;/p&gt; 				&lt;p&gt; 				&lt;span class=&quot;comment&quot;&gt;&#39; Match a string pattern&lt;/span&gt;&lt;br /&gt;					 					Dim r As New &lt;b&gt;Regex&lt;/b&gt;(&quot;j[aeiou]h?. \d:*&quot;, RegexOptions.IgnoreCase Or _&lt;br /&gt;        RegexOptions.Compiled)&lt;br /&gt;					If (r.&lt;b&gt;Match&lt;/b&gt;(&quot;John 3:16&quot;).Success) Then   &lt;span class=&quot;comment&quot;&gt;&#39;true&lt;/span&gt;&lt;br /&gt;					    Console.WriteLine(&quot;Match&quot;)&lt;br /&gt;                    End If 				&lt;/p&gt; 				 				&lt;p&gt; 				&lt;span class=&quot;comment&quot;&gt;&#39; Find and remember all matching patterns&lt;/span&gt;&lt;br /&gt;				 				Dim s As String = &quot;My number is 305-1881, not 305-1818.&quot;&lt;br /&gt;        Dim r As New Regex(&quot;(\d+-\d+)&quot;)&lt;br /&gt;        Dim m As &lt;b&gt;Match&lt;/b&gt; = r.Match(s)     &lt;span class=&quot;comment&quot;&gt;&#39; Matches 305-1881 and 305-1818&lt;/span&gt;&lt;br /&gt;        While m.Success&lt;br /&gt;                Console.WriteLine(&quot;Found number: &quot; &amp;amp; m.Groups(1).Value &amp;amp; &quot; at position &quot; _&lt;br /&gt;                     &amp;amp; m.Groups(1).Index.ToString)&lt;br /&gt;                m = m.NextMatch()&lt;br /&gt;        End While &lt;/p&gt;                 &lt;p&gt;                     &lt;span class=&quot;comment&quot;&gt;&#39; Remeber multiple parts of matched pattern&lt;/span&gt;&lt;br /&gt;                    Dim r As New Regex(&quot;(\d\d):(\d\d) (am|pm)&quot;)&lt;br /&gt;                    Dim m As Match = r.Match(&quot;We left at 03:15 pm.&quot;)&lt;br /&gt;                    If m.Success Then&lt;br /&gt;                        Console.WriteLine(&quot;Hour: &quot; &amp;amp; m.Groups(1).ToString)        &lt;span class=&quot;comment&quot;&gt;&#39; 03&lt;/span&gt;&lt;br /&gt;                        Console.WriteLine(&quot;Min: &quot; &amp;amp; m.Groups(2).ToString)            &lt;span class=&quot;comment&quot;&gt;&#39; 15&lt;/span&gt;&lt;br /&gt;                        Console.WriteLine(&quot;Ending: &quot; &amp;amp; m.Groups(3).ToString)    &lt;span class=&quot;comment&quot;&gt;&#39; pm&lt;/span&gt;&lt;br /&gt;                    End If                 &lt;/p&gt;                                  &lt;p&gt;                     &lt;span class=&quot;comment&quot;&gt;&#39; Replace all occurrances of a pattern&lt;/span&gt;&lt;br /&gt;                    Dim r As New Regex(&quot;h\w+?d&quot;, RegexOptions.IgnoreCase)&lt;br /&gt;                    Dim s As String = r.&lt;b&gt;Replace&lt;/b&gt;(&quot;I heard this was HARD!&quot;, &quot;easy&quot;)   &lt;span class=&quot;comment&quot;&gt;&#39; I easy this was easy!&lt;/span&gt;                 &lt;/p&gt;                  &lt;p&gt;                     &lt;span class=&quot;comment&quot;&gt;&#39; Replace matched patterns&lt;/span&gt;&lt;br /&gt;         	    Dim s As String = Regex.&lt;b&gt;Replace&lt;/b&gt;(&quot;123 &lt;&gt; $1&quot;)   &lt;span class=&quot;comment&quot;&gt;&#39; 456 &gt; 123&lt;/span&gt;                 &lt;/p&gt;                  &lt;p&gt;                     &lt;span class=&quot;comment&quot;&gt;&#39; Split a string based on a pattern&lt;/span&gt;&lt;br /&gt;                    Dim names As String = &quot;Frank, Becky, Ethan, Braden&quot;&lt;br /&gt;                    Dim r As New Regex(&quot;,\s*&quot;)&lt;br /&gt;                    Dim parts() As String = r.&lt;b&gt;Split&lt;/b&gt;(names)   &lt;span class=&quot;comment&quot;&gt;&#39; One name in each slot&lt;/span&gt;         				&lt;/p&gt; 				&lt;/td&gt;     				&lt;td valign=&quot;top&quot;&gt; 				&lt;p&gt;using System.Text.RegularExpressions;&lt;/p&gt; 				&lt;p&gt; 				&lt;span class=&quot;comment&quot;&gt;// Match a string pattern&lt;/span&gt; 					&lt;br /&gt;					 					&lt;b&gt;Regex&lt;/b&gt; r = new &lt;b&gt;Regex&lt;/b&gt;(@&quot;j[aeiou]h?. \d:*&quot;, RegexOptions.IgnoreCase |&lt;br /&gt;        RegexOptions.Compiled);&lt;br /&gt;                    if (r.&lt;b&gt;Match&lt;/b&gt;(&quot;John 3:16&quot;).Success)    &lt;span class=&quot;comment&quot;&gt;// true&lt;/span&gt;&lt;br /&gt;                        Console.WriteLine(&quot;Match&quot;);                								 				&lt;/p&gt; 				&lt;p&gt; 				&lt;br /&gt;				&lt;span class=&quot;comment&quot;&gt;// Find and remember all matching patterns&lt;/span&gt;&lt;br /&gt;				string s = &quot;My number is 305-1881, not 305-1818.&quot;;&lt;br /&gt;                Regex r = new Regex(&quot;(\\d+-\\d+)&quot;);&lt;br /&gt;&lt;span class=&quot;comment&quot;&gt;// Matches 305-1881 and 305-1818&lt;/span&gt;&lt;br /&gt;                for (&lt;b&gt;Match&lt;/b&gt; m = r.Match(s); m.Success; m = m.NextMatch())&lt;br /&gt;                    Console.WriteLine(&quot;Found number: &quot; + m.Groups[1] + &quot; at position &quot; +&lt;br /&gt;        m.Groups[1].Index);              				&lt;/p&gt; 				&lt;p&gt;&lt;br /&gt;&lt;br /&gt;				&lt;span class=&quot;comment&quot;&gt;// Remeber multiple parts of matched pattern&lt;/span&gt;&lt;br /&gt;            Regex r = new Regex(&quot;@(\d\d):(\d\d) (am|pm)&quot;);&lt;br /&gt;            Match m = r.Match(&quot;We left at 03:15 pm.&quot;);&lt;br /&gt;            if (m.Success) {&lt;br /&gt;                    Console.WriteLine(&quot;Hour: &quot; + m.Groups[1]);       &lt;span class=&quot;comment&quot;&gt;// 03&lt;/span&gt;&lt;br /&gt;                    Console.WriteLine(&quot;Min: &quot; + m.Groups[2]);          &lt;span class=&quot;comment&quot;&gt;// 15&lt;/span&gt;&lt;br /&gt;                    Console.WriteLine(&quot;Ending: &quot; + m.Groups[3]);   &lt;span class=&quot;comment&quot;&gt;// pm&lt;/span&gt;&lt;br /&gt;            } 				&lt;/p&gt; 				 			&lt;p&gt; 			&lt;span class=&quot;comment&quot;&gt;// Replace all occurrances of a pattern&lt;/span&gt;&lt;br /&gt;            Regex r = new Regex(&quot;h\\w+?d&quot;, RegexOptions.IgnoreCase);&lt;br /&gt;            string s = r.&lt;b&gt;Replace&lt;/b&gt;(&quot;I heard this was HARD!&quot;, &quot;easy&quot;));   &lt;span class=&quot;comment&quot;&gt;// I easy this was easy!&lt;/span&gt; 			&lt;/p&gt; 			                         &lt;p&gt; 			&lt;span class=&quot;comment&quot;&gt;// Replace matched patterns&lt;/span&gt;&lt;br /&gt;            string s = Regex.&lt;b&gt;Replace&lt;/b&gt;(&quot;123 &lt;&gt; $1&quot;);   &lt;span class=&quot;comment&quot;&gt;// 456 &gt; 123&lt;/span&gt;  			&lt;/p&gt;&lt;p&gt; 			&lt;span class=&quot;comment&quot;&gt;// Split a string based on a pattern&lt;/span&gt;&lt;br /&gt;			string names = &quot;Frank, Becky, Ethan, Braden&quot;;&lt;br /&gt;            Regex r = new Regex(@&quot;,\s*&quot;);&lt;br /&gt;            string[] parts = r.&lt;b&gt;Split&lt;/b&gt;(names);   &lt;span class=&quot;comment&quot;&gt;// One name in each slot&lt;/span&gt; 			&lt;/p&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 				 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table class=&quot;header&quot; id=&quot;Table12&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;VB.NET&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;a name=&quot;exceptionhandling&quot;&gt;&lt;/a&gt;Exception Handling&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;C#&lt;/span&gt;&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr valign=&quot;top&quot;&gt; 				&lt;td height=&quot;96&quot;&gt; 					 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; Throw an exception&lt;/span&gt;&lt;br /&gt;						Dim ex As New Exception(&quot;Something is really wrong.&quot;) 						&lt;br /&gt;						&lt;b&gt;Throw&lt;/b&gt;  ex  					&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; Catch an exception&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;Try&lt;/b&gt;&lt;br /&gt;						  y = 0&lt;br /&gt;						  x = 10 / y&lt;br /&gt;						&lt;b&gt;Catch&lt;/b&gt; ex As Exception &lt;b&gt;When&lt;/b&gt; y = 0 &lt;span class=&quot;comment&quot;&gt; 							&#39; Argument and When is optional&lt;/span&gt;&lt;br /&gt;						  Console.WriteLine(ex.Message) 						&lt;br /&gt;						&lt;b&gt;Finally&lt;/b&gt; 						&lt;br /&gt;						  Beep() 						&lt;br /&gt;						&lt;b&gt;End Try&lt;br /&gt;						&lt;/b&gt; 					&lt;/p&gt; &lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; Deprecated unstructured error handling&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;On&lt;/b&gt; Error &lt;b&gt;GoTo&lt;/b&gt; MyErrorHandler&lt;br /&gt;						...&lt;br /&gt;						MyErrorHandler: Console.WriteLine(Err.Description)&lt;br /&gt;					&lt;/p&gt; 				&lt;/td&gt; 				&lt;td height=&quot;96&quot;&gt; 					&lt;p&gt; 						&lt;span class=&quot;comment&quot;&gt;// Throw an exception&lt;/span&gt;&lt;br /&gt;						Exception up = new Exception(&quot;Something is really wrong.&quot;); 						&lt;br /&gt;						&lt;b&gt;throw&lt;/b&gt; up;  &lt;span class=&quot;comment&quot;&gt;// ha ha &lt;/span&gt; 					&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;// Catch an exception&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;try&lt;/b&gt; {&lt;br /&gt;						  y = 0; 						&lt;br /&gt;						  x = 10 / y; 						&lt;br /&gt;						} 						&lt;br /&gt;						&lt;b&gt;catch&lt;/b&gt; (Exception ex) {   &lt;span class=&quot;comment&quot;&gt;//  							Argument is optional, no &quot;When&quot; keyword&lt;/span&gt;&lt;br /&gt;						  Console.WriteLine(ex.Message); 						&lt;br /&gt;						} 						&lt;br /&gt;						&lt;b&gt;finally&lt;/b&gt; { 						&lt;br /&gt;						  Microsoft.VisualBasic.Interaction.Beep(); 						&lt;br /&gt;						} 					&lt;/p&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table class=&quot;header&quot; id=&quot;Table13&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;VB.NET&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;a name=&quot;namespaces&quot;&gt;&lt;/a&gt;Namespaces&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;C#&lt;/span&gt;&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr valign=&quot;top&quot;&gt; 				&lt;td height=&quot;163&quot;&gt; 					&lt;p&gt;&lt;b&gt;Namespace&lt;/b&gt; Harding.Compsci.Graphics&lt;br /&gt;						  ...&lt;br /&gt;						&lt;b&gt;End Namespace&lt;/b&gt;&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; or&lt;/span&gt;&lt;/p&gt; 					&lt;p&gt;&lt;b&gt;Namespace&lt;/b&gt; Harding 						&lt;br /&gt;						  &lt;b&gt;Namespace&lt;/b&gt; Compsci 						&lt;br /&gt;						    &lt;b&gt;Namespace&lt;/b&gt; Graphics&lt;br /&gt;						      ...&lt;br /&gt;						    &lt;b&gt;End Namespace&lt;/b&gt; 						&lt;br /&gt;						  &lt;b&gt;End Namespace 							&lt;br /&gt;							End Namespace&lt;/b&gt;&lt;/p&gt; 					&lt;p&gt;&lt;b&gt;Imports&lt;/b&gt; Harding.Compsci.Graphics 					&lt;/p&gt; 				&lt;/td&gt; 				&lt;td height=&quot;163&quot;&gt; 					&lt;p&gt;&lt;b&gt;namespace&lt;/b&gt; Harding.Compsci.Graphics {&lt;br /&gt;						  ...&lt;br /&gt;						} 					&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;// or&lt;/span&gt; 					&lt;/p&gt; 					&lt;p&gt;&lt;b&gt;namespace&lt;/b&gt; Harding {&lt;br /&gt;						  &lt;b&gt;namespace&lt;/b&gt; Compsci {&lt;br /&gt;						    &lt;b&gt;namespace&lt;/b&gt; Graphics {&lt;br /&gt;						      ...&lt;br /&gt;						    }&lt;br /&gt;						  }&lt;br /&gt;						} 					&lt;/p&gt; 					&lt;p&gt;&lt;b&gt;using&lt;/b&gt; Harding.Compsci.Graphics; 					&lt;/p&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table style=&quot;width: 775px; height: 24px;&quot; class=&quot;header&quot; id=&quot;Table14&quot; border=&quot;0&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;VB.NET&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;a name=&quot;classesinterfaces&quot;&gt;&lt;/a&gt;Classes /  								Interfaces&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;C#&lt;/span&gt;&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr valign=&quot;top&quot;&gt; 				&lt;td height=&quot;163&quot;&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Accessibility keywords&lt;/span&gt; 						&lt;br /&gt;						Public&lt;br /&gt;						Private&lt;br /&gt;						Friend                    						&lt;br /&gt;						Protected&lt;br /&gt;						Protected Friend&lt;br /&gt;						Shared&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; Inheritance&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;Class&lt;/b&gt; FootballGame&lt;br /&gt;						  &lt;b&gt;Inherits&lt;/b&gt; Competition&lt;br /&gt;						  ...&lt;br /&gt;						&lt;b&gt;End Class&lt;/b&gt; &lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; Interface definition&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;Interface&lt;/b&gt; IAlarmClock&lt;br /&gt;						  ...&lt;br /&gt;						&lt;b&gt;End Interface&lt;/b&gt;&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;// Extending an interface &lt;/span&gt;&lt;br /&gt;						&lt;b&gt;Interface&lt;/b&gt; IAlarmClock 						&lt;br /&gt;						  &lt;b&gt;Inherits&lt;/b&gt; IClock&lt;br /&gt;						  ...&lt;br /&gt;						&lt;b&gt;End Interface&lt;/b&gt;&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;// Interface implementation&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;Class&lt;/b&gt; WristWatch&lt;br /&gt;						  &lt;b&gt;Implements&lt;/b&gt; IAlarmClock, ITimer&lt;br /&gt;						   ...&lt;br /&gt;						&lt;b&gt;End Class&lt;/b&gt; &lt;/p&gt; 				&lt;/td&gt; 				&lt;td height=&quot;163&quot;&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;Accessibility keywords&lt;/span&gt; 						&lt;br /&gt;						public&lt;br /&gt;						private&lt;br /&gt;						internal&lt;br /&gt;						protected&lt;br /&gt;						protected internal&lt;br /&gt;						static&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;// Inheritance&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;class&lt;/b&gt; FootballGame &lt;b&gt;:&lt;/b&gt; Competition {&lt;br /&gt;						  ...&lt;br /&gt;						} 					&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&lt;br /&gt;							// Interface definition&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;interface&lt;/b&gt; IAlarmClock {&lt;br /&gt;						  ...&lt;br /&gt;						} 					&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;// Extending an interface &lt;/span&gt;&lt;br /&gt;						&lt;b&gt;interface&lt;/b&gt; IAlarmClock &lt;b&gt;:&lt;/b&gt; IClock {&lt;br /&gt;						  ...&lt;br /&gt;						} 					&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&lt;br /&gt;							// Interface implementation&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;class&lt;/b&gt; WristWatch &lt;b&gt;:&lt;/b&gt; IAlarmClock, ITimer {&lt;br /&gt;						   ...&lt;br /&gt;						} 					&lt;/p&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table class=&quot;header&quot; id=&quot;Table15&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;VB.NET&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;a name=&quot;constructorsdestructors&quot;&gt;&lt;/a&gt;Constructors  								/ Destructors&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;C#&lt;/span&gt;&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr valign=&quot;top&quot;&gt; 				&lt;td height=&quot;176&quot;&gt;&lt;b&gt;Class&lt;/b&gt; SuperHero&lt;br /&gt;					  Private _powerLevel As Integer 					&lt;br /&gt;					&lt;br /&gt;					  Public Sub &lt;b&gt;New&lt;/b&gt;() 					&lt;br /&gt;					    _powerLevel = 0 					&lt;br /&gt;					  End Sub 					&lt;br /&gt;					&lt;br /&gt;					  Public Sub &lt;b&gt;New&lt;/b&gt;(ByVal powerLevel As Integer) 					&lt;br /&gt;					    Me._powerLevel = powerLevel 					&lt;br /&gt;					  End Sub&lt;br /&gt;					&lt;br /&gt;					  Protected Overrides Sub &lt;b&gt;Finalize&lt;/b&gt;()&lt;br /&gt;					   &lt;span class=&quot;comment&quot;&gt;&#39; Desctructor code to free unmanaged  						resources&lt;/span&gt; 					&lt;br /&gt;					    MyBase.Finalize() 					&lt;br /&gt;					  End Sub&lt;br /&gt;					&lt;b&gt;End Class&lt;/b&gt; 					 				&lt;/td&gt; 				&lt;td height=&quot;176&quot;&gt; 					&lt;p&gt;&lt;b&gt;class&lt;/b&gt; SuperHero {&lt;br /&gt;						  private int _powerLevel;&lt;br /&gt;						&lt;br /&gt;						  public SuperHero() {&lt;br /&gt;						     _powerLevel = 0;&lt;br /&gt;						  }&lt;br /&gt;						&lt;br /&gt;						  public SuperHero(int powerLevel) {&lt;br /&gt;						    this._powerLevel= powerLevel;&lt;br /&gt;						  }&lt;br /&gt;						&lt;br /&gt;						  &lt;b&gt;~&lt;/b&gt;SuperHero() {&lt;br /&gt;						    &lt;span class=&quot;comment&quot;&gt;// Destructor code to free unmanaged  							resources.&lt;br /&gt;							    // Implicitly creates a Finalize method&lt;/span&gt;&lt;br /&gt;						  }&lt;br /&gt;						}&lt;/p&gt; 					 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table class=&quot;header&quot; id=&quot;Table16&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;VB.NET&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;a name=&quot;objects&quot;&gt;&lt;/a&gt;Using Objects&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;C#&lt;/span&gt;&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr valign=&quot;top&quot;&gt; 				&lt;td height=&quot;163&quot;&gt; 					&lt;p&gt;Dim hero As SuperHero = New SuperHero&lt;br /&gt;					&lt;span class=&quot;comment&quot;&gt;&#39; or&lt;/span&gt;&lt;br /&gt;						Dim hero As New SuperHero 					&lt;/p&gt; 					&lt;p&gt; 						&lt;b&gt;With&lt;/b&gt; hero 						&lt;br /&gt;						  .Name = &quot;SpamMan&quot; 						&lt;br /&gt;						  .PowerLevel = 3 						&lt;br /&gt;						&lt;b&gt;End With&lt;/b&gt; 						&lt;br /&gt;					&lt;/p&gt; 					&lt;p&gt; 						hero.Defend(&quot;Laura Jones&quot;) 						&lt;br /&gt;						hero.Rest()     &lt;span class=&quot;comment&quot;&gt;&#39; Calling Shared method&lt;/span&gt;&lt;br /&gt;						&lt;span class=&quot;comment&quot;&gt;&#39; or&lt;/span&gt;&lt;br /&gt;						SuperHero.Rest() 					&lt;/p&gt; 					&lt;p&gt;Dim hero2 As SuperHero = hero  &lt;span class=&quot;comment&quot;&gt;&#39; Both reference the same  							object&lt;/span&gt; 						&lt;br /&gt;						hero2.Name = &quot;WormWoman&quot; 						&lt;br /&gt;						Console.WriteLine(hero.Name)   &lt;span class=&quot;comment&quot;&gt;&#39; Prints WormWoman&lt;/span&gt;&lt;/p&gt; 					&lt;p&gt;hero = &lt;b&gt;Nothing&lt;/b&gt;    &lt;span class=&quot;comment&quot;&gt;&#39; Free the object&lt;/span&gt; 					&lt;/p&gt; 					&lt;p&gt;If hero &lt;b&gt;Is&lt;/b&gt; &lt;b&gt;Nothing&lt;/b&gt; Then _ 						&lt;br /&gt;						  hero = New SuperHero&lt;/p&gt; 					&lt;p&gt;Dim obj As Object = New SuperHero 						&lt;br /&gt;						If &lt;b&gt;TypeOf&lt;/b&gt; obj &lt;b&gt;Is&lt;/b&gt; SuperHero Then _&lt;br /&gt;						  Console.WriteLine(&quot;Is a SuperHero object.&quot;) 					&lt;/p&gt; 					&lt;p&gt; 				&lt;span class=&quot;comment&quot;&gt;&#39; Mark object for quick disposal&lt;/span&gt;&lt;br /&gt;                &lt;b&gt;Using&lt;/b&gt; reader As StreamReader = File.OpenText(&quot;test.txt&quot;)&lt;br /&gt;                      Dim line As String = reader.ReadLine()&lt;br /&gt;                      While Not line Is Nothing&lt;br /&gt;                        Console.WriteLine(line)&lt;br /&gt;                        line = reader.ReadLine()&lt;br /&gt;                      End While&lt;br /&gt;                &lt;b&gt;End Using&lt;/b&gt; 				&lt;/p&gt; 				&lt;/td&gt; 				&lt;td height=&quot;163&quot;&gt; 					&lt;p&gt;SuperHero hero = new SuperHero(); 						&lt;br /&gt;						&lt;br /&gt;						&lt;br /&gt;&lt;br /&gt;					&lt;/p&gt; 					&lt;p&gt; 						&lt;span class=&quot;comment&quot;&gt;// No &quot;With&quot; construct&lt;/span&gt;&lt;br /&gt;						hero.Name = &quot;SpamMan&quot;; 						&lt;br /&gt;						hero.PowerLevel = 3; 						&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;					&lt;/p&gt; 					&lt;p&gt;hero.Defend(&quot;Laura Jones&quot;);&lt;br /&gt;						SuperHero.Rest();   &lt;span class=&quot;comment&quot;&gt;// Calling static method&lt;/span&gt;&lt;/p&gt; 					&lt;p&gt;&lt;br /&gt;						&lt;br /&gt;						SuperHero hero2 = hero;   &lt;span class=&quot;comment&quot;&gt;// Both reference the same  							object&lt;/span&gt; 						&lt;br /&gt;						hero2.Name = &quot;WormWoman&quot;; 						&lt;br /&gt;						Console.WriteLine(hero.Name);   &lt;span class=&quot;comment&quot;&gt;// Prints WormWoman&lt;/span&gt; 					&lt;/p&gt; 					&lt;p&gt;hero = &lt;b&gt;null&lt;/b&gt; ;   &lt;span class=&quot;comment&quot;&gt;// Free the object&lt;/span&gt; 					&lt;/p&gt; 					&lt;p&gt;if (hero == &lt;b&gt;null&lt;/b&gt;)&lt;br /&gt;						  hero = new SuperHero();&lt;/p&gt; 					&lt;p&gt;Object obj = new SuperHero();&lt;br /&gt;						if (obj &lt;b&gt;is&lt;/b&gt; SuperHero) 						&lt;br /&gt;						  Console.WriteLine(&quot;Is a SuperHero object.&quot;); 					&lt;/p&gt; 					&lt;span class=&quot;comment&quot;&gt;// Mark object for quick disposal&lt;/span&gt;&lt;br /&gt;                    &lt;b&gt;using&lt;/b&gt; (StreamReader reader = File.OpenText(&quot;test.txt&quot;)) {&lt;br /&gt;                      string line;&lt;br /&gt;                      while ((line = reader.ReadLine()) != null)&lt;br /&gt;                        Console.WriteLine(line);&lt;br /&gt;                    }  				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table class=&quot;header&quot; id=&quot;Table17&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;VB.NET&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;a name=&quot;structs&quot;&gt;&lt;/a&gt;Structs&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;C#&lt;/span&gt;&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr valign=&quot;top&quot;&gt; 				&lt;td height=&quot;256&quot;&gt; 					&lt;p&gt;&lt;b&gt;Structure&lt;/b&gt; StudentRecord 						&lt;br /&gt;						  Public name As String 						&lt;br /&gt;						  Public gpa As Single 						&lt;br /&gt;						&lt;br /&gt;						  Public Sub New(ByVal name As String, ByVal gpa As Single) 						&lt;br /&gt;						    Me.name = name 						&lt;br /&gt;						    Me.gpa = gpa 						&lt;br /&gt;						  End Sub 						&lt;br /&gt;						&lt;b&gt;End Structure&lt;/b&gt;&lt;/p&gt; 					&lt;p&gt;Dim stu As StudentRecord = New StudentRecord(&quot;Bob&quot;, 3.5) 						&lt;br /&gt;						Dim stu2 As StudentRecord = stu   						&lt;br /&gt;						&lt;br /&gt;						stu2.name = &quot;Sue&quot; 						&lt;br /&gt;						Console.WriteLine(stu.name)    &lt;span class=&quot;comment&quot;&gt;&#39; Prints Bob&lt;/span&gt; 						&lt;br /&gt;						Console.WriteLine(stu2.name)  &lt;span class=&quot;comment&quot;&gt;&#39; Prints Sue&lt;/span&gt;&lt;/p&gt; 				&lt;/td&gt; 				&lt;td height=&quot;256&quot;&gt;&lt;b&gt;struct&lt;/b&gt; StudentRecord {&lt;br /&gt;					  public string name;&lt;br /&gt;					  public float gpa;&lt;br /&gt;					&lt;br /&gt;					  public StudentRecord(string name, float gpa) {&lt;br /&gt;					    this.name = name;&lt;br /&gt;					    this.gpa = gpa;&lt;br /&gt;					  }&lt;br /&gt;					}&lt;br /&gt;					&lt;p&gt;StudentRecord stu = new StudentRecord(&quot;Bob&quot;, 3.5f);&lt;br /&gt;						StudentRecord stu2 = stu; &lt;br /&gt;						&lt;br /&gt;						stu2.name = &quot;Sue&quot;;&lt;br /&gt;						Console.WriteLine(stu.name);    &lt;span class=&quot;comment&quot;&gt;// Prints Bob&lt;/span&gt;&lt;br /&gt;						Console.WriteLine(stu2.name);   &lt;span class=&quot;comment&quot;&gt;// Prints Sue&lt;/span&gt;&lt;/p&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table class=&quot;header&quot; id=&quot;Table18&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;VB.NET&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;a name=&quot;properties&quot;&gt;&lt;/a&gt;Properties&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;C#&lt;/span&gt;&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr valign=&quot;top&quot;&gt; 				&lt;td height=&quot;134&quot; width=&quot;50%&quot;&gt; 					&lt;p&gt;Private _size As Integer&lt;br /&gt;						&lt;br /&gt;						Public &lt;b&gt;Property&lt;/b&gt; Size() As Integer&lt;br /&gt;						  &lt;b&gt;Get&lt;/b&gt; 						&lt;br /&gt;						    Return _size 						&lt;br /&gt;						  &lt;b&gt;End Get&lt;/b&gt; 						&lt;br /&gt;						  &lt;b&gt;Set&lt;/b&gt; (ByVal Value As Integer) 						&lt;br /&gt;						    If Value &lt; 0 Then 						&lt;br /&gt;						      _size = 0 						&lt;br /&gt;						    Else 						&lt;br /&gt;						      _size = Value 						&lt;br /&gt;						    End If 						&lt;br /&gt;						  &lt;b&gt;End Set&lt;/b&gt; 						&lt;br /&gt;						&lt;b&gt;End Property&lt;/b&gt;&lt;/p&gt; 					&lt;p&gt;foo.Size += 1&lt;/p&gt; 				&lt;/td&gt; 				&lt;td height=&quot;134&quot; width=&quot;50%&quot;&gt;private int _size;&lt;br /&gt;					&lt;br /&gt;					public int Size { 					&lt;br /&gt;					  &lt;b&gt;get&lt;/b&gt; { 					&lt;br /&gt;					    return _size; 					&lt;br /&gt;					  } 					&lt;br /&gt;					  &lt;b&gt;set&lt;/b&gt; { 					&lt;br /&gt;					    if (value &lt; 0) 					&lt;br /&gt;					      _size = 0; 					&lt;br /&gt;					    else 					&lt;br /&gt;					      _size = value; 					&lt;br /&gt;					  } 					&lt;br /&gt;					} 					&lt;p&gt;&lt;br /&gt;						foo.Size++; 					&lt;/p&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table class=&quot;header&quot; id=&quot;Table19&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;VB.NET&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;a name=&quot;delegatesandevents&quot;&gt;&lt;/a&gt;Delegates / Events&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;C#&lt;/span&gt;&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr valign=&quot;top&quot;&gt; 				&lt;td height=&quot;134&quot; width=&quot;50%&quot;&gt; 					&lt;p&gt;&lt;b&gt;Delegate&lt;/b&gt; Sub MsgArrivedEventHandler(ByVal message As String)&lt;/p&gt; 					&lt;p&gt;&lt;b&gt;Event&lt;/b&gt; MsgArrivedEvent As MsgArrivedEventHandler&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; or to define an event which declares a delegate implicitly&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;Event&lt;/b&gt; MsgArrivedEvent(ByVal message As String) 					&lt;/p&gt; 					&lt;p&gt;&lt;b&gt;AddHandler&lt;/b&gt; MsgArrivedEvent, &lt;b&gt;AddressOf&lt;/b&gt; My_MsgArrivedCallback 						&lt;br /&gt;						&lt;span class=&quot;comment&quot;&gt;&#39; Won&#39;t throw an exception if obj is Nothing&lt;br /&gt;						&lt;/span&gt;&lt;b&gt;RaiseEvent&lt;/b&gt; MsgArrivedEvent(&quot;Test message&quot;) 						&lt;br /&gt;						&lt;b&gt;RemoveHandler&lt;/b&gt; MsgArrivedEvent, &lt;b&gt;AddressOf&lt;/b&gt; My_MsgArrivedCallback&lt;br /&gt;					&lt;/p&gt; 					&lt;p&gt;Imports System.Windows.Forms&lt;/p&gt; 					&lt;p&gt;Dim &lt;b&gt;WithEvents&lt;/b&gt; MyButton As Button   &lt;span class=&quot;comment&quot;&gt; 							&#39; WithEvents can&#39;t be used on local variable&lt;/span&gt;&lt;br /&gt;						MyButton = New Button&lt;/p&gt; 					&lt;p&gt;Private Sub MyButton_Click(ByVal sender As System.Object, _&lt;br /&gt;						  ByVal e As System.EventArgs) &lt;b&gt;Handles&lt;/b&gt; MyButton.Click 						&lt;br /&gt;						  MessageBox.Show(Me, &quot;Button was clicked&quot;, &quot;Info&quot;, _&lt;br /&gt;						    MessageBoxButtons.OK, MessageBoxIcon.Information) 						&lt;br /&gt;						End Sub&lt;/p&gt; 				&lt;/td&gt; 				&lt;td height=&quot;134&quot; width=&quot;50%&quot;&gt; 					&lt;p&gt;&lt;b&gt;delegate&lt;/b&gt; void MsgArrivedEventHandler(string message); 					&lt;/p&gt; 					&lt;p&gt;&lt;b&gt;event&lt;/b&gt; MsgArrivedEventHandler MsgArrivedEvent;&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;// Delegates must be used with events in C#&lt;/span&gt;&lt;br /&gt;						&lt;br /&gt;						&lt;br /&gt;						MsgArrivedEvent &lt;b&gt;+=&lt;/b&gt; new  						MsgArrivedEventHandler(My_MsgArrivedEventCallback);&lt;br /&gt;						MsgArrivedEvent(&quot;Test message&quot;);    &lt;span class=&quot;comment&quot;&gt;// Throws  							exception if obj is null&lt;/span&gt;&lt;br /&gt;						MsgArrivedEvent &lt;b&gt;-=&lt;/b&gt; new  						MsgArrivedEventHandler(My_MsgArrivedEventCallback);&lt;/p&gt; 					&lt;p&gt;&lt;br /&gt;						&lt;br /&gt;						using System.Windows.Forms;&lt;/p&gt; 					&lt;p&gt;Button MyButton = new Button();&lt;br /&gt;						MyButton.Click += new System.EventHandler(MyButton_Click);&lt;/p&gt; 					&lt;p&gt;private void MyButton_Click(object sender, System.EventArgs e) { 						&lt;br /&gt;						  MessageBox.Show(this, &quot;Button was clicked&quot;, &quot;Info&quot;, 						&lt;br /&gt;						    MessageBoxButtons.OK, MessageBoxIcon.Information); 						&lt;br /&gt;						}&lt;/p&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table class=&quot;header&quot; id=&quot;Table20&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;VB.NET&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;a name=&quot;#consoleio&quot;&gt;&lt;/a&gt;Console I/O&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;C#&lt;/span&gt;&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr valign=&quot;top&quot;&gt; 				&lt;td height=&quot;163&quot; width=&quot;50%&quot;&gt; 					&lt;p&gt;Console.Write(&quot;What&#39;s your name? &quot;) 						&lt;br /&gt;						Dim name As String = Console.ReadLine() 						&lt;br /&gt;						Console.Write(&quot;How old are you? &quot;) 						&lt;br /&gt;						Dim age As Integer = Val(Console.ReadLine()) 						&lt;br /&gt;						Console.WriteLine(&quot;{0} is {1} years old.&quot;, name, age)  						&lt;br /&gt;						&lt;span class=&quot;comment&quot;&gt;&#39; or&lt;/span&gt; 						&lt;br /&gt;						Console.WriteLine(name &amp;amp; &quot; is &quot; &amp;amp; age &amp;amp; &quot; years old.&quot;) 						&lt;br /&gt;						&lt;br /&gt;						Dim c As Integer 						&lt;br /&gt;						c = Console.Read()    &lt;span class=&quot;comment&quot;&gt;&#39; Read single char&lt;/span&gt; 						&lt;br /&gt;						Console.WriteLine(c)   &lt;span class=&quot;comment&quot;&gt;&#39; Prints 65 if user enters  							&quot;A&quot;&lt;/span&gt; 					&lt;/p&gt; 				&lt;/td&gt; 				&lt;td height=&quot;163&quot; width=&quot;50%&quot;&gt; 					&lt;p&gt;Console.Write(&quot;What&#39;s your name? &quot;);&lt;br /&gt;						string name = Console.ReadLine();&lt;br /&gt;						Console.Write(&quot;How old are you? &quot;);&lt;br /&gt;						int age = Convert.ToInt32(Console.ReadLine());&lt;br /&gt;						Console.WriteLine(&quot;{0} is {1} years old.&quot;, name, age);&lt;br /&gt;						&lt;span class=&quot;comment&quot;&gt;// or&lt;/span&gt;&lt;br /&gt;						Console.WriteLine(name + &quot; is &quot; + age + &quot; years old.&quot;); 					&lt;/p&gt; 					&lt;p&gt;&lt;br /&gt;						int c = Console.Read();  &lt;span class=&quot;comment&quot;&gt;// Read single char&lt;/span&gt;&lt;br /&gt;						Console.WriteLine(c);    &lt;span class=&quot;comment&quot;&gt;// Prints 65 if user  							enters &quot;A&quot;&lt;/span&gt;&lt;/p&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr align=&quot;center&quot;&gt; 				&lt;td colspan=&quot;2&quot;&gt; 					&lt;table id=&quot;Table21&quot; class=&quot;header&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt; 						&lt;tbody&gt;&lt;tr align=&quot;center&quot;&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;VB.NET&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading&quot; width=&quot;60%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;a name=&quot;fileio&quot;&gt;&lt;/a&gt;File I/O&lt;/span&gt;&lt;/td&gt; 							&lt;td style=&quot;font-weight: bold; font-style: italic;&quot; class=&quot;heading2&quot; width=&quot;20%&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;C#&lt;/span&gt;&lt;/td&gt; 						&lt;/tr&gt; 					&lt;/tbody&gt;&lt;/table&gt; 				&lt;/td&gt; 			&lt;/tr&gt; 			&lt;tr valign=&quot;top&quot;&gt; 				&lt;td height=&quot;163&quot; width=&quot;50%&quot;&gt; 					&lt;p&gt;Imports System.IO&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; Write out to text file&lt;/span&gt;&lt;br /&gt;						Dim writer As &lt;b&gt;StreamWriter&lt;/b&gt; = File.CreateText(&quot;c:\myfile.txt&quot;) 						&lt;br /&gt;						writer.WriteLine(&quot;Out to file.&quot;) 						&lt;br /&gt;						writer.Close() 					&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; Read all lines from text file&lt;/span&gt;&lt;br /&gt;						Dim reader As &lt;b&gt;StreamReader&lt;/b&gt; = File.OpenText(&quot;c:\myfile.txt&quot;) 						&lt;br /&gt;						Dim line As String = reader.ReadLine() 						&lt;br /&gt;						While Not line Is Nothing 						&lt;br /&gt;						  Console.WriteLine(line) 						&lt;br /&gt;						  line = reader.ReadLine() 						&lt;br /&gt;						End While 						&lt;br /&gt;						reader.Close() 					&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; Write out to binary file&lt;/span&gt;&lt;br /&gt;						Dim str As String = &quot;Text data&quot; 						&lt;br /&gt;						Dim num As Integer = 123 						&lt;br /&gt;						Dim binWriter As New &lt;b&gt;BinaryWriter&lt;/b&gt;(File.OpenWrite(&quot;c:\myfile.dat&quot;))  						&lt;br /&gt;						binWriter.Write(str)  						&lt;br /&gt;						binWriter.Write(num)&lt;br /&gt;						binWriter.Close()&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;&#39; Read from binary file&lt;/span&gt;&lt;br /&gt;						Dim binReader As New &lt;b&gt;BinaryReader&lt;/b&gt;(File.OpenRead(&quot;c:\myfile.dat&quot;)) 						&lt;br /&gt;						str = binReader.ReadString() 						&lt;br /&gt;						num = binReader.ReadInt32() 						&lt;br /&gt;						binReader.Close()&lt;/p&gt; 				&lt;/td&gt; 				&lt;td height=&quot;163&quot; width=&quot;50%&quot;&gt; 					&lt;p&gt;using System.IO;&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;// Write out to text file&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;StreamWriter&lt;/b&gt; writer = File.CreateText(&quot;c:\\myfile.txt&quot;); 						&lt;br /&gt;						writer.WriteLine(&quot;Out to file.&quot;); 						&lt;br /&gt;						writer.Close(); 					&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;// Read all lines from text file&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;StreamReader&lt;/b&gt; reader = File.OpenText(&quot;c:\\myfile.txt&quot;); 						&lt;br /&gt;						string line = reader.ReadLine(); 						&lt;br /&gt;						while (line != null) {&lt;br /&gt;						  Console.WriteLine(line); 						&lt;br /&gt;						  line = reader.ReadLine(); 						&lt;br /&gt;						} 						&lt;br /&gt;						reader.Close(); 					&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;// Write out to binary file&lt;/span&gt;&lt;br /&gt;						string str = &quot;Text data&quot;; 						&lt;br /&gt;						int num = 123; 						&lt;br /&gt;						&lt;b&gt;BinaryWriter&lt;/b&gt; binWriter = new  						BinaryWriter(File.OpenWrite(&quot;c:\\myfile.dat&quot;)); 						&lt;br /&gt;						binWriter.Write(str); 						&lt;br /&gt;						binWriter.Write(num); 						&lt;br /&gt;						binWriter.Close(); 					&lt;/p&gt; 					&lt;p&gt;&lt;span class=&quot;comment&quot;&gt;// Read from binary file&lt;/span&gt;&lt;br /&gt;						&lt;b&gt;BinaryReader&lt;/b&gt; binReader = new  						BinaryReader(File.OpenRead(&quot;c:\\myfile.dat&quot;)); 						&lt;br /&gt;						str = binReader.ReadString(); 						&lt;br /&gt;						num = binReader.ReadInt32(); 						&lt;br /&gt;						binReader.Close();&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/8792003602970958442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/8792003602970958442' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/8792003602970958442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/8792003602970958442'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2009/12/cnet-and-vbnet-keyword-differences.html' title='C#.Net and Vb.Net Keyword Differences'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-7358255130038619322</id><published>2009-12-08T05:18:00.000-08:00</published><updated>2009-12-08T05:22:11.248-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C# Keyword differences"/><title type='text'>Equivalent keyword C# &#39;s typeof() in VB</title><content type='html'>Equivalent keyword in typeof()1&lt;br /&gt;&lt;br /&gt;...is in &lt;span style=&quot;font-weight:bold;&quot;&gt;C#&lt;/span&gt;...&lt;br /&gt;&lt;br /&gt;typeof(Foo)&lt;br /&gt;&lt;br /&gt;...is in &lt;span style=&quot;font-weight:bold;&quot;&gt;VB&lt;/span&gt;...it&#39;s...&lt;br /&gt;&lt;br /&gt;GetType(Foo)</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/7358255130038619322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/7358255130038619322' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/7358255130038619322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/7358255130038619322'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2009/12/equivalent-keyword-c-s-typeof-in-vb.html' title='Equivalent keyword C# &#39;s typeof() in VB'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-8551483891064187640</id><published>2009-11-26T01:52:00.000-08:00</published><updated>2009-11-26T02:12:34.233-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Master Page"/><title type='text'>Usage of @MasterType</title><content type='html'>The @MasterType Page Declarative of a page is used to access the public properties and methods of a master page to the sub level of content page&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Example :&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Step 1:&lt;/span&gt;&lt;br /&gt;&amp;lt;%@ Master Language=&quot;C#&quot; AutoEventWireup=&quot;true&quot; CodeFile=&quot;MasterPage.master.cs&quot; Inherits=&quot;MasterPage_MasterPage&quot; %&amp;gt;&lt;br /&gt;&lt;br /&gt;   &amp;lt;title&amp;gt;ScriptManager in Master Page Example&amp;lt;/title&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   &amp;lt;form id=&quot;form1&quot; runat=&quot;server&quot;&amp;gt;&lt;br /&gt;       &amp;lt;div&amp;gt;&lt;br /&gt;           &amp;lt;asp:scriptmanager id=&quot;ScriptManager1&quot; runat=&quot;server&quot;&amp;gt;&lt;br /&gt;               &amp;lt;asp:panel id=&quot;MasterPanel1&quot; runat=&quot;server&quot; groupingtext=&quot;Master Page&quot;&amp;gt;&lt;br /&gt;                  &amp;lt;asp:button id=&quot;Button1&quot; runat=&quot;server&quot; text=&quot;Full Page Refresh&quot;&amp;gt;&lt;br /&gt;                  &amp;lt;asp:button id=&quot;Button2&quot; runat=&quot;server&quot; text=&quot;Refresh Panel&quot; onclick=&quot;MasterButton2_Click&quot;&amp;gt;&lt;br /&gt;               &amp;lt;/asp:button&amp;gt;&lt;br /&gt;           &amp;lt;asp:contentplaceholder id=&quot;ContentPlaceHolder1&quot; runat=&quot;server&quot;&amp;gt;&lt;br /&gt;           &amp;lt;/asp:contentplaceholder&amp;gt;&lt;br /&gt;       &amp;lt;/asp:button&amp;gt;&amp;lt;/asp:panel&amp;gt;&amp;lt;/asp:scriptmanager&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;   &amp;lt;/form&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Step 2:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Create a public property in the MasterPage.master.cs&lt;br /&gt;&lt;br /&gt;public partial class MasterPage_MasterPage : System.Web.UI.MasterPage&lt;br /&gt;{&lt;br /&gt;   public DateTime LastUpdate&lt;br /&gt;   {&lt;br /&gt;       get&lt;br /&gt;       {&lt;br /&gt;           return (DateTime)(ViewState[&quot;LastUpdate&quot;] ?? DateTime.Now);&lt;br /&gt;       }&lt;br /&gt;       set&lt;br /&gt;       {&lt;br /&gt;           ViewState[&quot;LastUpdate&quot;] = value;&lt;br /&gt;       }&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Step 3:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Define the &amp;lt;%@ MasterType %&amp;gt; like this&lt;br /&gt;&lt;br /&gt;&amp;lt;%@ Page Language=&quot;C#&quot; MasterPageFile=&quot;~/MasterPage/MasterPage.master&quot; AutoEventWireup=&quot;true&quot; CodeFile=&quot;Default.aspx.cs&quot; Inherits=&quot;MasterPage_Default&quot; Title=&quot;Untitled Page&quot; %&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!--define like this--&amp;gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;&lt;br /&gt;&lt;%@ MasterType VirtualPath=&quot;~/MasterPage/MasterPage.master&quot; %&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:content id=&quot;Content1&quot; contentplaceholderid=&quot;ContentPlaceHolder1&quot; runat=&quot;Server&quot;&amp;gt;&lt;br /&gt;   &amp;lt;asp:panel id=&quot;Panel2&quot; groupingtext=&quot;ContentPage&quot; runat=&quot;server&quot;&amp;gt;&lt;br /&gt;       &amp;lt;asp:updatepanel id=&quot;UpdatePanel1&quot; updatemode=&quot;Conditional&quot; runat=&quot;server&quot;&amp;gt;&lt;br /&gt;           &amp;lt;contenttemplate&amp;gt;&lt;br /&gt;               &amp;lt;p&amp;gt;&lt;br /&gt;                   Last updated: &amp;lt;strong&amp;gt;&amp;lt;%= Master.LastUpdate.ToString() %&amp;gt;&amp;lt;/strong&amp;gt;&lt;br /&gt;               &amp;lt;/p&amp;gt;&lt;br /&gt;               &amp;lt;asp:button id=&quot;Button3&quot; text=&quot;Refresh Panel&quot; onclick=&quot;Button3_Click&quot; runat=&quot;server&quot;&amp;gt;&lt;br /&gt;           &amp;lt;/asp:button&amp;gt;&lt;br /&gt;       &amp;lt;/contenttemplate&amp;gt;&lt;br /&gt;   &amp;lt;/asp:updatepanel&amp;gt;&lt;br /&gt;&amp;lt;/asp:panel&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Step 4:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then we can use to access the public methods and properties from master page to content page.&lt;br /&gt;&lt;br /&gt;protected void Button3_Click(object sender, EventArgs e)&lt;br /&gt;   {&lt;br /&gt;       Master.LastUpdate = DateTime.Now;&lt;br /&gt;   }</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/8551483891064187640/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/8551483891064187640' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/8551483891064187640'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/8551483891064187640'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2009/11/usage-of-mastertype.html' title='Usage of @MasterType'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-6580400599941917467</id><published>2009-11-24T06:28:00.000-08:00</published><updated>2009-11-24T06:31:59.786-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net-Ajax"/><title type='text'>PageRequestManager</title><content type='html'>&lt;meta equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;&lt;meta name=&quot;ProgId&quot; content=&quot;Word.Document&quot;&gt;&lt;meta name=&quot;Generator&quot; content=&quot;Microsoft Word 11&quot;&gt;&lt;meta name=&quot;Originator&quot; content=&quot;Microsoft Word 11&quot;&gt;&lt;link rel=&quot;File-List&quot; href=&quot;file:///C:%5CDOCUME%7E1%5Cdhineshp%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml&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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate=&quot;false&quot; latentstylecount=&quot;156&quot;&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:&quot;&quot;; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:&quot;Times New Roman&quot;; 	mso-fareast-font-family:&quot;Times New Roman&quot;;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&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-parent:&quot;&quot;; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:&quot;Times New Roman&quot;; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt; prm = Sys.WebForms.PageRequestManager.getInstance();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;prm.add_pageLoaded(PageLoadedEventHandler);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt; PageLoadedEventHandler() &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;         &lt;/span&gt;alert(&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;Inside PageLoadedEventHandler Working&quot;&lt;/span&gt;);&lt;span style=&quot;&quot;&gt;         &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(InitializeRequest);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt; InitializeRequest()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;alert(&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&#39;Initial requets inside...&#39;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;}&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;br /&gt;&lt;br /&gt;By this way, we can fire all the Five ajax page life cycle events.</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/6580400599941917467/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/6580400599941917467' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/6580400599941917467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/6580400599941917467'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2009/11/pagerequestmanager.html' title='PageRequestManager'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-2898777357120975912</id><published>2009-11-24T06:06:00.000-08:00</published><updated>2009-11-24T06:08:17.062-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net-Ajax"/><title type='text'>Ajax + asp.net Page life cycle</title><content type='html'>&lt;div style=&quot;font-weight: bold;&quot; class=&quot;CollapseRegionLink&quot;&gt; Client Page Life-cycle Events &lt;/div&gt; &lt;div class=&quot;MTPS_CollapsibleSection&quot; style=&quot;display: block;&quot;&gt;   &lt;a id=&quot;sectionToggle1&quot;&gt;&lt;!----&gt;&lt;/a&gt;&lt;p&gt;During ordinary page processing in the browser, the &lt;span&gt;&lt;span class=&quot;input&quot;&gt;window.onload&lt;/span&gt;&lt;/span&gt; DOM event is raised when the page first loads. Similarly, the &lt;span&gt;&lt;span class=&quot;input&quot;&gt;window.onunload&lt;/span&gt;&lt;/span&gt; DOM event is raised when the page is refreshed or when the user moves away from the page.&lt;/p&gt;&lt;p&gt;However, these events are not raised during asynchronous postbacks. To help you manage these types of events for asynchronous postbacks, the &lt;strong&gt;PageRequestManager&lt;/strong&gt; class exposes a set of events. These resemble &lt;span&gt;&lt;span class=&quot;input&quot;&gt;window.load&lt;/span&gt;&lt;/span&gt; and other DOM events, but they also occur during asynchronous postbacks. For each asynchronous postback, all page events in the &lt;strong&gt;PageRequestManager&lt;/strong&gt; class are raised and any attached event handlers are called. &lt;/p&gt;&lt;div class=&quot;alert&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th&gt;&lt;!--src=[../icons/alert_note.gif]--&gt;&lt;img alt=&quot;Note&quot; src=&quot;http://i.msdn.microsoft.com/Bb398976.alert_note%28en-us,VS.90%29.gif&quot; /&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;For synchronous postbacks, only the &lt;a id=&quot;ctl00_MTCS_main_ctl64_ctl00_ctl01&quot; href=&quot;http://msdn.microsoft.com/en-us/library/bb397523.aspx&quot; onclick=&quot;javascript:Track(&#39;ctl00_MTCS_main_ctl64_ctl00_contenthere|ctl00_MTCS_main_ctl64_ctl00_ctl01&#39;,this);&quot;&gt;pageLoaded&lt;/a&gt; event is raised. &lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;You can write client script to handle events raised by the &lt;strong&gt;PageRequestManager&lt;/strong&gt; class. Different event argument objects are passed to handlers for different events. The following table summarizes the &lt;strong&gt;PageRequestManager&lt;/strong&gt; class events and the corresponding event argument classes. The order of the events in the table is the order of the events for a single asynchronous postback without errors.&lt;/p&gt;&lt;dl class=&quot;authored&quot;&gt;&lt;dt&gt;&lt;a id=&quot;ctl00_MTCS_main_ctl64_ctl00_ctl02&quot; href=&quot;http://msdn.microsoft.com/en-us/library/bb397460.aspx&quot; onclick=&quot;javascript:Track(&#39;ctl00_MTCS_main_ctl64_ctl00_contenthere|ctl00_MTCS_main_ctl64_ctl00_ctl02&#39;,this);&quot;&gt;initializeRequest&lt;/a&gt;&lt;/dt&gt;&lt;dd&gt;&lt;p&gt;Raised before the request is initialized for an asynchronous postback. Event data is passed to handlers as an &lt;a id=&quot;ctl00_MTCS_main_ctl64_ctl00_ctl03&quot; href=&quot;http://msdn.microsoft.com/en-us/library/bb311030.aspx&quot; onclick=&quot;javascript:Track(&#39;ctl00_MTCS_main_ctl64_ctl00_contenthere|ctl00_MTCS_main_ctl64_ctl00_ctl03&#39;,this);&quot;&gt;InitializeRequestEventArgs&lt;/a&gt; object. The object makes available the element that caused the postback and the underlying request object. &lt;/p&gt;&lt;/dd&gt;&lt;dt&gt;&lt;a id=&quot;ctl00_MTCS_main_ctl64_ctl00_ctl04&quot; href=&quot;http://msdn.microsoft.com/en-us/library/bb397432.aspx&quot; onclick=&quot;javascript:Track(&#39;ctl00_MTCS_main_ctl64_ctl00_contenthere|ctl00_MTCS_main_ctl64_ctl00_ctl04&#39;,this);&quot;&gt;beginRequest&lt;/a&gt;&lt;/dt&gt;&lt;dd&gt;&lt;p&gt;Raised just before the asynchronous postback is sent to the server. Event data is passed to handlers as a &lt;a id=&quot;ctl00_MTCS_main_ctl64_ctl00_ctl05&quot; href=&quot;http://msdn.microsoft.com/en-us/library/bb384003.aspx&quot; onclick=&quot;javascript:Track(&#39;ctl00_MTCS_main_ctl64_ctl00_contenthere|ctl00_MTCS_main_ctl64_ctl00_ctl05&#39;,this);&quot;&gt;BeginRequestEventArgs&lt;/a&gt; object. The object makes available the element that caused the postback and the underlying request object.&lt;/p&gt;&lt;/dd&gt;&lt;dt&gt;&lt;a id=&quot;ctl00_MTCS_main_ctl64_ctl00_ctl06&quot; href=&quot;http://msdn.microsoft.com/en-us/library/bb383832.aspx&quot; onclick=&quot;javascript:Track(&#39;ctl00_MTCS_main_ctl64_ctl00_contenthere|ctl00_MTCS_main_ctl64_ctl00_ctl06&#39;,this);&quot;&gt;pageLoading&lt;/a&gt;&lt;/dt&gt;&lt;dd&gt;&lt;p&gt;Raised after the response to the most recent asynchronous postback has been received but before any updates to the page have been made. Event data is passed to handlers as a &lt;a id=&quot;ctl00_MTCS_main_ctl64_ctl00_ctl07&quot; href=&quot;http://msdn.microsoft.com/en-us/library/bb310960.aspx&quot; onclick=&quot;javascript:Track(&#39;ctl00_MTCS_main_ctl64_ctl00_contenthere|ctl00_MTCS_main_ctl64_ctl00_ctl07&#39;,this);&quot;&gt;PageLoadingEventArgs&lt;/a&gt; object. The object makes available information about what panels will be deleted and updated as a result of the most recent asynchronous postback. &lt;/p&gt;&lt;/dd&gt;&lt;dt&gt;&lt;a id=&quot;ctl00_MTCS_main_ctl64_ctl00_ctl08&quot; href=&quot;http://msdn.microsoft.com/en-us/library/bb397523.aspx&quot; onclick=&quot;javascript:Track(&#39;ctl00_MTCS_main_ctl64_ctl00_contenthere|ctl00_MTCS_main_ctl64_ctl00_ctl08&#39;,this);&quot;&gt;pageLoaded&lt;/a&gt;&lt;/dt&gt;&lt;dd&gt;&lt;p&gt;Raised after page regions are updated after the most recent postback. Event data is passed to handlers as a &lt;a id=&quot;ctl00_MTCS_main_ctl64_ctl00_ctl09&quot; href=&quot;http://msdn.microsoft.com/en-us/library/bb397476.aspx&quot; onclick=&quot;javascript:Track(&#39;ctl00_MTCS_main_ctl64_ctl00_contenthere|ctl00_MTCS_main_ctl64_ctl00_ctl09&#39;,this);&quot;&gt;PageLoadedEventArgs&lt;/a&gt; object. The object makes available information about what panels were created or updated. For synchronous postbacks, panels can only be created, but for asynchronous postbacks, panels can be both created and updated.&lt;/p&gt;&lt;/dd&gt;&lt;dt&gt;&lt;a id=&quot;ctl00_MTCS_main_ctl64_ctl00_ctl10&quot; href=&quot;http://msdn.microsoft.com/en-us/library/bb383810.aspx&quot; onclick=&quot;javascript:Track(&#39;ctl00_MTCS_main_ctl64_ctl00_contenthere|ctl00_MTCS_main_ctl64_ctl00_ctl10&#39;,this);&quot;&gt;endRequest&lt;/a&gt;&lt;/dt&gt;&lt;dd&gt;&lt;p&gt;Raised when request processing is finished. Event data is passed to handlers as an &lt;a id=&quot;ctl00_MTCS_main_ctl64_ctl00_ctl11&quot; href=&quot;http://msdn.microsoft.com/en-us/library/bb397499.aspx&quot; onclick=&quot;javascript:Track(&#39;ctl00_MTCS_main_ctl64_ctl00_contenthere|ctl00_MTCS_main_ctl64_ctl00_ctl11&#39;,this);&quot;&gt;EndRequestEventArgs&lt;/a&gt; object. The object makes available information about errors that have occurred and whether the error was handled. It also makes available the response object.&lt;/p&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/2898777357120975912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/2898777357120975912' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/2898777357120975912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/2898777357120975912'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2009/11/ajax-aspnet-page-life-cycle.html' title='Ajax + asp.net Page life cycle'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-7526092875990141330</id><published>2009-11-23T22:40:00.000-08:00</published><updated>2009-11-24T06:04:20.397-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Infragistics"/><title type='text'>For creating  and adding Dynamic templated column using Itemplate interface</title><content type='html'>&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;First have to override the OnIt() method and then we can add the TemplatedColumn in it for creating check box control.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;protected&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;override void&lt;/span&gt; OnInit(&lt;span style=&quot;color:#008080;&quot;&gt;EventArgs&lt;/span&gt; e) &lt;p&gt;    {&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;color:#008000;&quot;&gt;        &lt;span style=&quot;color:#0000ff;&quot;&gt;base.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;OnInit(e);&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;color:#008000;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;        &lt;/span&gt;// Create a templated column&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;color:#008080;&quot;&gt;        TemplatedColumn&lt;/span&gt; col = &lt;span style=&quot;color:#0000ff;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color:#008080;&quot;&gt;TemplatedColumn&lt;/span&gt;(&lt;span style=&quot;color:#0000ff;&quot;&gt;true&lt;/span&gt;);&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;        this&lt;/span&gt;.UltraWebGrid1.DisplayLayout.Bands[0].Columns.Add(col);&lt;/p&gt; &lt;p&gt;        col.Key = &lt;span style=&quot;color:#800000;&quot;&gt;&quot;CheckBoxCol&quot;&lt;/span&gt;;&lt;/p&gt; &lt;p&gt;        col.Header.Caption = &lt;span style=&quot;color:#800000;&quot;&gt;&quot;&quot;&lt;/span&gt;;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;color:#008080;&quot;&gt;        GridHeaderTemplate&lt;/span&gt; tempHeader = &lt;span style=&quot;color:#0000ff;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color:#008080;&quot;&gt;GridHeaderTemplate&lt;/span&gt;();&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;color:#008000;&quot;&gt;        // Set the header template.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;        col.HeaderTemplate = tempHeader;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;        this&lt;/span&gt;.UltraWebGrid1.DataSource = LoadGrid();&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;        this&lt;/span&gt;.UltraWebGrid1.DataBind();&lt;/p&gt; &lt;p&gt;    }&lt;/p&gt;&lt;p&gt;/// Class with implementing the ITemplate&lt;/p&gt;&lt;p&gt;-----------------------------------------------------------&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color:#008080;&quot;&gt;GridHeaderTemplate&lt;/span&gt; : &lt;span style=&quot;color:#008080;&quot;&gt;ITemplate&lt;/span&gt;&lt;/p&gt; &lt;p&gt;{&lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;p&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;    public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;void&lt;/span&gt; InstantiateIn(&lt;span style=&quot;color:#008080;&quot;&gt;Control&lt;/span&gt; container)&lt;/p&gt; &lt;p&gt;    {&lt;/p&gt; &lt;p&gt;        &lt;span style=&quot;color:#008000;&quot;&gt;// Cast the container to a HeaderItem&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;color:#008080;&quot;&gt;        HeaderItem&lt;/span&gt; headerItem = (&lt;span style=&quot;color:#008080;&quot;&gt;HeaderItem&lt;/span&gt;)container;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;color:#008080;&quot;&gt;        CheckBox&lt;/span&gt; checkBox = &lt;span style=&quot;color:#0000ff;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color:#008080;&quot;&gt;CheckBox&lt;/span&gt;();&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;color:#008080;&quot;&gt;        CheckBox&lt;/span&gt; cb = &lt;span style=&quot;color:#0000ff;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color:#008080;&quot;&gt;CheckBox&lt;/span&gt;();&lt;/p&gt; &lt;p&gt;        cb.ID = &lt;span style=&quot;color:#800000;&quot;&gt;&quot;headerCB&quot;&lt;/span&gt;;&lt;/p&gt; &lt;p&gt;        cb.Attributes.Add(&lt;span style=&quot;color:#800000;&quot;&gt;&quot;onclick&quot;&lt;/span&gt;, &lt;span style=&quot;color:#800000;&quot;&gt;&quot;HeaderCheckedChanged();&quot;&lt;/span&gt;);&lt;/p&gt; &lt;p&gt;        headerItem.Controls.Add(cb);&lt;/p&gt; &lt;p&gt;    }&lt;/p&gt; &lt;p&gt;}&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/7526092875990141330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/7526092875990141330' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/7526092875990141330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/7526092875990141330'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2009/11/for-creating-and-adding-dynamic.html' title='For creating  and adding Dynamic templated column using Itemplate interface'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-4600205878115247087</id><published>2009-11-20T04:35:00.000-08:00</published><updated>2009-11-24T06:03:04.485-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net 3.5 features"/><title type='text'>.net Features in C# 3.5</title><content type='html'>&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;.    Automatic Property setters/getters   &lt;/span&gt;&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    Whenever you declare a class, most of the times the class is used only as a placeholder with getters and setters for         holding property values without any additional logic. For example, consider a simple class like the following:&lt;br /&gt;&lt;br /&gt;    public class Person&lt;br /&gt;    {&lt;br /&gt;        int _id;&lt;br /&gt;        string _firstName;&lt;br /&gt;        string _lastName;&lt;br /&gt;        public int ID     {        get{return _id;}        set{_id = value;}    }&lt;br /&gt;        public string FirstName    {        get{return _firstName;}        set{_firstName = value;}    }&lt;br /&gt;        public string LastName    {        get{return _lastName;}        set{_lastName = value;}    }&lt;br /&gt;        public string FullName    {        get{return FirstName + &quot; &quot; + LastName;}    }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    As you can see from the above class declaration, it doesn&#39;t contain any additional logic. The get and set properties         are repetitive and they simply set or get the values of the properties without adding any value. In C#, you can         simplify that by leveraging the new feature named Auto-Implemented properties. By taking advantage of this new             feature, you can rewrite the above code as follows:&lt;br /&gt;&lt;br /&gt;    public class Person&lt;br /&gt;    {&lt;br /&gt;        public int ID { get; set; }&lt;br /&gt;        public string FirstName { get; set; }   &lt;br /&gt;        public string LastName { get; set; }&lt;br /&gt;        public string FullName&lt;br /&gt;        {&lt;br /&gt;            get&lt;br /&gt;            {&lt;br /&gt;                return FirstName + &quot; &quot; + LastName;&lt;br /&gt;            }&lt;br /&gt;        private set {;}&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    In the above code, when you declare a property, the compiler automatically creates a private, anonymous field that is     available only to the property&#39;s get and set accessors. Note that the auto implemented properties must declare both a     get and set accessor. However if you need to create a read-only property, modify the scope of the set accessor to be         private.&lt;br /&gt;   &lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;·     Object Initializers&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;·     Collection Initializers&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;·     Extension Methods&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;·     Implicitly Typed Variable&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;·     Anonymous Types&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;New features in asp.net 3.5&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;////-----------------------------&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;.    ASP.NET AJAX&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;.    New Controls (ListView and DataPager)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;.    New Data Source Control (LinqDataSource)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;.    LINQ (Language Integrated Query) &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;.    ASP.NET Merge Tool:&lt;/span&gt;&lt;br /&gt;        (ASP.NET 3.5 includes a new merge tool (aspnet_merge.exe). This tool lets you combine  and manage assemblies  created by aspnet_compiler.exe)&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;.    New Assemblies&lt;/span&gt;&lt;br /&gt;    ·   System.Core.dll - Includes the implementation for LINQ to Objects&lt;br /&gt;    ·   System.Data.Linq.dll - Includes the implementation for LINQ to SQL&lt;br /&gt;    ·   System.Xml.Linq.dll - Includes the implementation for LINQ to XML&lt;br /&gt;    ·   System.Data.DataSetExtensions.dll - Includes the implementation for LINQ to DataSet</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/4600205878115247087/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/4600205878115247087' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/4600205878115247087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/4600205878115247087'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2009/11/net-features-in-c-35.html' title='.net Features in C# 3.5'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-8989799769628038002</id><published>2009-11-20T04:31:00.000-08:00</published><updated>2009-11-24T06:03:25.763-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net 3.0 features"/><title type='text'>.Net Framework 3.0 features</title><content type='html'>&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Framework 3.0 features&lt;/span&gt;&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;.    Implicitly typed local variables &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  // i is compiled as an int&lt;br /&gt;  var i = 5;&lt;br /&gt;&lt;br /&gt;  // s is compiled as a string&lt;br /&gt;  var s = &quot;Hello&quot;;&lt;br /&gt;&lt;br /&gt;  // a is compiled as int[]&lt;br /&gt;  var a = new[] { 0, 1, 2 };&lt;br /&gt;&lt;br /&gt;  // expr is compiled as IEnumerable&lt;customer&gt;&lt;br /&gt;  // or perhaps IQueryable&lt;customer&gt;&lt;br /&gt;  var expr =&lt;br /&gt;      from c in customers&lt;br /&gt;      where c.City == &quot;London&quot;&lt;br /&gt;      select c;&lt;br /&gt;&lt;br /&gt;  // anon is compiled as an anonymous type&lt;br /&gt;  var anon = new { Name = &quot;Terry&quot;, Age = 34 };&lt;br /&gt;&lt;br /&gt;  // list is compiled as List&lt;int&gt;                          &lt;br /&gt;  var list = new List&lt;int&gt;();&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;.    Anonymous types &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  C# 3.0 gives you the flexibility to create an instance of a class without having to write code for the class             beforehand. So, you now can write code as shown below:&lt;br /&gt;&lt;br /&gt;  new {hair=&quot;black&quot;, skin=&quot;green&quot;, teethCount=64}&lt;br /&gt;  The preceding line of code, with the help of the &quot;new&quot; keyword, gives you a new type that has three properties: hair,     skin, and teethCount. Behind the scenes, the C# compiler would create a class that looks as follows:&lt;br /&gt;&lt;br /&gt;  class __Anonymous1&lt;br /&gt;  {&lt;br /&gt;     private string _hair = &quot;black&quot;;&lt;br /&gt;     private string _skin = &quot;green&quot;;&lt;br /&gt;     private int _teeth   = 64;&lt;br /&gt;     public string hair {get { return _hair; } set { _hair = value; }}&lt;br /&gt;     public string skin {get { return _skin; } set { _skin = value; }}&lt;br /&gt;     public int teeth {get { return _teeth; } set { _teeth = value; }}&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;.    Extension methods &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  Extension methods enable you to extend various types with additional static methods. However, they are quite limited         and should be used as a last resort—only where instance methods are insufficient.&lt;br /&gt;&lt;br /&gt;  Extension methods can be declared only in static classes and are identified by the keyword &quot;this&quot; as a modifier on         the first parameter of the method. The following is an example of a valid extension method:&lt;br /&gt;&lt;br /&gt;  public static int ToInt32(this string s)&lt;br /&gt;  {&lt;br /&gt;     return Convert.ToInt32(s) ;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  If the static class that contains the above method is imported using the &quot;using&quot; keyword, the ToInt32 method will         appear in existing types (albeit in lower precedence to existing instance methods), and you will be able to compile         and execute code that looks as follows:&lt;br /&gt;&lt;br /&gt;  string s = &quot;1&quot;;&lt;br /&gt;  int i    = s.ToInt32();&lt;br /&gt;&lt;br /&gt;  This allows you to take advantage of the extensible nature of various built-in or defined types and add newer methods     to them.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;.    Object and collection initializers &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  public class CoOrdinate&lt;br /&gt;  {&lt;br /&gt;     public int x ;&lt;br /&gt;     public int y;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  You then could declare and initialize a CoOrdinate object using an object initializer, like this:&lt;br /&gt;&lt;br /&gt;  var myCoOrd = new CoOrdinate{ x = 0, y= 0} ;&lt;br /&gt;  The above code may have made you raise your eyebrows and ask, &quot;Why not just write the following:&quot;&lt;br /&gt;&lt;br /&gt;  var myCoOrd = new CoOrdinate(0, 0) ;&lt;br /&gt;&lt;br /&gt;  Note: I never declared a constructor that accepted two parameters in my class. In fact, initializing the object using         an object initializer essentially is equivalent to calling a parameterless (default) constructor of the             CoOrdinate object and then assigning the relevant values.Similarly, you should easily be able to give values             to Collections in a rather concise and compact manner in C# 3.0.For instance, the following C# 2.0 code:&lt;br /&gt;&lt;br /&gt;  List&lt;string&gt; animals = new List&lt;string&gt;();&lt;br /&gt;  animals.Add(&quot;monkey&quot;);&lt;br /&gt;  animals.Add(&quot;donkey&quot;);&lt;br /&gt;  animals.Add(&quot;cow&quot;);&lt;br /&gt;  animals.Add(&quot;dog&quot;);&lt;br /&gt;  animals.Add(&quot;cat&quot;);&lt;br /&gt;&lt;br /&gt;  Now can be shortened to simply:&lt;br /&gt;&lt;br /&gt;  List&lt;string&gt; animals = new List&lt;string&gt; {&lt;br /&gt;         &quot;monkey&quot;, &quot;donkey&quot;, &quot;cow&quot;, &quot;dog&quot;, &quot;cat&quot; } ;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;.    Lambda expressions &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  It Allowes you to write code blocks in methods, which you could invoke easily using delegates. Delegates are             definitely useful, and they are used throughout the framework, but in many instances you had to declare a method or a     class just to use one. Thus, to give you an easier and more concise way of writing code, C# 2.0 allowed you to             replace standard calls to delegates with anonymous methods. The following code may have been written in .NET 1.1 or         earlier:&lt;br /&gt;&lt;br /&gt;  class Program&lt;br /&gt;  {&lt;br /&gt;     delegate void DemoDelegate();&lt;br /&gt;     static void Main(string[] args)&lt;br /&gt;     {&lt;br /&gt;        DemoDelegate myDelegate = new DemoDelegate(SayHi);&lt;br /&gt;        myDelegate();&lt;br /&gt;     }&lt;br /&gt;     void SayHi()&lt;br /&gt;     {&lt;br /&gt;        Console.Writeline(&quot;Hiya!!&quot;) ;&lt;br /&gt;     }&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  In C# 2.0, using anonymous methods, you could rewrite the code as follows:&lt;br /&gt;&lt;br /&gt;  class Program&lt;br /&gt;  {&lt;br /&gt;     delegate void DemoDelegate();&lt;br /&gt;     static void Main(string[] args)&lt;br /&gt;     {&lt;br /&gt;        DemoDelegate myDelegate = delegate()&lt;br /&gt;           {&lt;br /&gt;              Console.Writeline(&quot;Hiya!!&quot;);&lt;br /&gt;           };&lt;br /&gt;        myDelegate();&lt;br /&gt;        }&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  Lambda expressions are simply functions and they are declared in the context of expressions than as a member of a         class. It is an inline expression or a statement block which can be used to pass arguments to a method or assign         value to delegate. All lambda expressions use the lambda operator =&gt; and the left side of the operator denotes the         results and the right side contains the expression to be evaluated. For instance, consider the following lambda         expression:&lt;br /&gt;&lt;br /&gt;  age =&gt; age + 1;&lt;br /&gt;&lt;br /&gt;  The above function takes one argument named age, and returns age + 1 as the result. As you can see, Lambda             expressions follow the below syntax:&lt;br /&gt;&lt;br /&gt;  (parameter-list) =&gt; expression;&lt;br /&gt;&lt;br /&gt;  where expression can be any C# expression or a block of code. Just like anonymous methods you can use a lambda             expression in place of a delegate. Here are some sample lambda expressions and their corresponding delegates.&lt;br /&gt;&lt;br /&gt;  //Explicitly typed parameter&lt;br /&gt;  (Person obj) =&gt; MessageBox.Show(obj.FirstName.ToUpper());&lt;br /&gt;&lt;br /&gt;  //Implicitly typed parameter&lt;br /&gt;  (obj) =&gt; obj.FirstName == &quot;Thiru&quot;;&lt;br /&gt;&lt;br /&gt;  //Explicitly typed parameter&lt;br /&gt;  (int a, int b) =&gt; a + b&lt;br /&gt;&lt;br /&gt;  //Implicitly typed parameter&lt;br /&gt;  (x, y) =&gt; { return x + y; }&lt;br /&gt;&lt;br /&gt;  As you see from the preceding lines of code, lambda expressions can be written in such a way that itcan infer the         parameter type from the signature of the delegate it is assigned to.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;.    Query expressions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  Even though further enhancements may be introduced in the coming months as C# 3.0 matures, the new features described     in the preceding sections make it a lot easier to work with data inside C# in general. This feature, also known as         LINQ (Language Integrated Query), allows you to write SQL-like syntax in C#.&lt;br /&gt;&lt;br /&gt;  For instance, you may have a class that describes your data as follows:&lt;br /&gt;&lt;br /&gt;  public class CoOrdinate&lt;br /&gt;  {&lt;br /&gt;     public int x ;&lt;br /&gt;     public int y;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  You now could easily declare the logical equivalent of a database table inside C# as follows:&lt;br /&gt;&lt;br /&gt;  // Use Object and collection initializers&lt;br /&gt;  List&lt;coordinate&gt; coords = ... ;&lt;br /&gt;&lt;br /&gt;  And now that you have your data as a collection that implements IEnumerable&lt;t&gt;, you easily can query this data as         follows: &lt;br /&gt;&lt;br /&gt;  var filteredCoords =&lt;br /&gt;     from c in coords&lt;br /&gt;     where x == 1&lt;br /&gt;     select (c.x, c.y)&lt;br /&gt;&lt;br /&gt;  In the SQL-like syntax above, &quot;from&quot;, &quot;where&quot;, and &quot;select&quot; are query expressions that take advantage of C# 3.0         features such as anonymous types, extension methods, implicit typed local variables, and so forth. This way, you can         leverage SQL-like syntax and work with disconnected data easily.&lt;br /&gt;&lt;br /&gt;  Each query expression is actually translated into a C#-like invocation behind the scenes. For instance, the             following:&lt;br /&gt;&lt;br /&gt;  where x == 1&lt;br /&gt;  Translates to this:&lt;br /&gt;&lt;br /&gt;  coords.where(c =&gt; c.x == 1)&lt;br /&gt;  As you can see, the above looks an awful lot like a lambda expression and extension method. C# 3.0 has many other         query expressions and rules that surround them.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;.    Expression Trees &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  Expression trees represent language-level code in the form of data. The data is stored in a tree-shaped structure.         Each node in the expression tree represents an expression, for example a method call or a binary operation such as&lt;br /&gt;  x &lt;&gt;&lt;int,&gt;&gt; exprTree = num =&gt; num &lt; param =&quot; (ParameterExpression)exprTree.Parameters[0];&quot; operation =&quot; (BinaryExpression)exprTree.Body;&quot; left =&quot; (ParameterExpression)operation.Left;&quot; right =&quot; (ConstantExpression)operation.Right;&quot;&gt; {1} {2} {3}&quot;,&lt;br /&gt;                    param.Name, left.Name, operation.NodeType, right.Value);&lt;br /&gt;&lt;br /&gt;  /*  This code produces the following output:&lt;br /&gt;&lt;br /&gt;      Decomposed expression: num =&gt; num LessThan 5&lt;br /&gt;  */&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;.    Implicitly typed arrays. &lt;/span&gt;&lt;br /&gt;  class ImplicitlyTypedArraySample&lt;br /&gt;  {&lt;br /&gt;      static void Main()&lt;br /&gt;      {&lt;br /&gt;          var a = new[] { 1, 10, 100, 1000 }; // int[]&lt;br /&gt;          var b = new[] { &quot;hello&quot;, null, &quot;world&quot; }; // string[]&lt;br /&gt;&lt;br /&gt;          // single-dimension jagged array&lt;br /&gt;          var c = new[]&lt;br /&gt;      {&lt;br /&gt;          new[]{1,2,3,4},&lt;br /&gt;          new[]{5,6,7,8}&lt;br /&gt;      };&lt;br /&gt;&lt;br /&gt;          // jagged array of strings&lt;br /&gt;          var d = new[]&lt;br /&gt;      {&lt;br /&gt;          new[]{&quot;Luca&quot;, &quot;Mads&quot;, &quot;Luke&quot;, &quot;Dinesh&quot;},&lt;br /&gt;          new[]{&quot;Karen&quot;, &quot;Suma&quot;, &quot;Frances&quot;}&lt;br /&gt;      };&lt;br /&gt;      }&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;&lt;/int,&gt;&lt;/t&gt;&lt;/coordinate&gt;&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/int&gt;&lt;/int&gt;&lt;/customer&gt;&lt;/customer&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Framework 3.0 Language features&lt;/span&gt;&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;.    WPF&lt;br /&gt;.    WCF&lt;br /&gt;.    WF&lt;br /&gt;&lt;br /&gt;&lt;customer&gt;&lt;customer&gt;&lt;int&gt;&lt;int&gt;&lt;string&gt;&lt;string&gt;&lt;string&gt;&lt;string&gt;&lt;coordinate&gt;&lt;t&gt;&lt;int,&gt;&lt;br /&gt;&lt;/int,&gt;&lt;/t&gt;&lt;/coordinate&gt;&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/int&gt;&lt;/int&gt;&lt;/customer&gt;&lt;/customer&gt;</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/8989799769628038002/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/8989799769628038002' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/8989799769628038002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/8989799769628038002'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2009/11/net-framework-30-features.html' title='.Net Framework 3.0 features'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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-2956116147975731201.post-4020221143085215395</id><published>2009-11-20T04:28:00.000-08:00</published><updated>2009-11-25T23:41:59.796-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net 3.0 features"/><title type='text'>.Net Framework 3.0 features</title><content type='html'>&lt;span style=&quot;font-weight: bold;&quot;&gt;.Implicitly typed local variables&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;// i is compiled as an int&lt;br /&gt;var i = 5;&lt;br /&gt;&lt;br /&gt;// s is compiled as a string&lt;br /&gt;var s = &quot;Hello&quot;;&lt;br /&gt;&lt;br /&gt;// a is compiled as int[]&lt;br /&gt;var a = new[] { 0, 1, 2 };&lt;br /&gt;&lt;br /&gt;// expr is compiled as IEnumerable&lt;customer&gt;&lt;br /&gt;// or perhaps IQueryable&lt;customer&gt;&lt;br /&gt;var expr =&lt;br /&gt;    from c in customers&lt;br /&gt;    where c.City == &quot;London&quot;&lt;br /&gt;    select c;&lt;br /&gt;&lt;br /&gt;// anon is compiled as an anonymous type&lt;br /&gt;var anon = new { Name = &quot;Terry&quot;, Age = 34 };&lt;br /&gt;&lt;br /&gt;// list is compiled as List&lt;int&gt;                           &lt;br /&gt;var list = new List&lt;int&gt;();&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;. Anonymous types&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;C# 3.0 gives you the flexibility to create an instance of a class without having to write code for the class    beforehand. So, you now can write code as shown below:&lt;br /&gt;&lt;br /&gt;new {hair=&quot;black&quot;, skin=&quot;green&quot;, teethCount=64}&lt;br /&gt;The preceding line of code, with the help of the &quot;new&quot; keyword, gives you a new type that has three properties: hair,  skin, and teethCount. Behind the scenes, the C# compiler would create a class that looks as follows:&lt;br /&gt;&lt;br /&gt;class __Anonymous1&lt;br /&gt;{&lt;br /&gt;   private string _hair = &quot;black&quot;;&lt;br /&gt;   private string _skin = &quot;green&quot;;&lt;br /&gt;   private int _teeth   = 64;&lt;br /&gt;   public string hair {get { return _hair; } set { _hair = value; }}&lt;br /&gt;   public string skin {get { return _skin; } set { _skin = value; }}&lt;br /&gt;   public int teeth {get { return _teeth; } set { _teeth = value; }}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;. Extension methods&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Extension methods enable you to extend various types with additional static methods. However, they are quite limited   and should be used as a last resort—only where instance methods are insufficient.&lt;br /&gt;&lt;br /&gt;Extension methods can be declared only in static classes and are identified by the keyword &quot;this&quot; as a modifier on   the first parameter of the method. The following is an example of a valid extension method:&lt;br /&gt;&lt;br /&gt;public static int ToInt32(this string s)&lt;br /&gt;{&lt;br /&gt;   return Convert.ToInt32(s) ;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;If the static class that contains the above method is imported using the &quot;using&quot; keyword, the ToInt32 method will   appear in existing types (albeit in lower precedence to existing instance methods), and you will be able to compile   and execute code that looks as follows:&lt;br /&gt;&lt;br /&gt;string s = &quot;1&quot;;&lt;br /&gt;int i    = s.ToInt32();&lt;br /&gt;&lt;br /&gt;This allows you to take advantage of the extensible nature of various built-in or defined types and add newer methods  to them.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;. Object and collection initializers&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;public class CoOrdinate&lt;br /&gt;{&lt;br /&gt;   public int x ;&lt;br /&gt;   public int y;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;You then could declare and initialize a CoOrdinate object using an object initializer, like this:&lt;br /&gt;&lt;br /&gt;var myCoOrd = new CoOrdinate{ x = 0, y= 0} ;&lt;br /&gt;The above code may have made you raise your eyebrows and ask, &quot;Why not just write the following:&quot;&lt;br /&gt;&lt;br /&gt;var myCoOrd = new CoOrdinate(0, 0) ;&lt;br /&gt;&lt;br /&gt;Note: I never declared a constructor that accepted two parameters in my class. In fact, initializing the object using   an object initializer essentially is equivalent to calling a parameterless (default) constructor of the    CoOrdinate object and then assigning the relevant values.Similarly, you should easily be able to give values    to Collections in a rather concise and compact manner in C# 3.0.For instance, the following C# 2.0 code:&lt;br /&gt;&lt;br /&gt;List&lt;string&gt; animals = new List&lt;string&gt;();&lt;br /&gt;animals.Add(&quot;monkey&quot;);&lt;br /&gt;animals.Add(&quot;donkey&quot;);&lt;br /&gt;animals.Add(&quot;cow&quot;);&lt;br /&gt;animals.Add(&quot;dog&quot;);&lt;br /&gt;animals.Add(&quot;cat&quot;);&lt;br /&gt;&lt;br /&gt;Now can be shortened to simply:&lt;br /&gt;&lt;br /&gt;List&lt;string&gt; animals = new List&lt;string&gt; {&lt;br /&gt;    &quot;monkey&quot;, &quot;donkey&quot;, &quot;cow&quot;, &quot;dog&quot;, &quot;cat&quot; } ;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;. Lambda expressions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It Allowes you to write code blocks in methods, which you could invoke easily using delegates. Delegates are    definitely useful, and they are used throughout the framework, but in many instances you had to declare a method or a  class just to use one. Thus, to give you an easier and more concise way of writing code, C# 2.0 allowed you to    replace standard calls to delegates with anonymous methods. The following code may have been written in .NET 1.1 or   earlier:&lt;br /&gt;&lt;br /&gt;class Program&lt;br /&gt;{&lt;br /&gt;   delegate void DemoDelegate();&lt;br /&gt;   static void Main(string[] args)&lt;br /&gt;   {&lt;br /&gt;      DemoDelegate myDelegate = new DemoDelegate(SayHi);&lt;br /&gt;      myDelegate();&lt;br /&gt;   }&lt;br /&gt;   void SayHi()&lt;br /&gt;   {&lt;br /&gt;      Console.Writeline(&quot;Hiya!!&quot;) ;&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;In C# 2.0, using anonymous methods, you could rewrite the code as follows:&lt;br /&gt;&lt;br /&gt;class Program&lt;br /&gt;{&lt;br /&gt;   delegate void DemoDelegate();&lt;br /&gt;   static void Main(string[] args)&lt;br /&gt;   {&lt;br /&gt;      DemoDelegate myDelegate = delegate()&lt;br /&gt;        {&lt;br /&gt;            Console.Writeline(&quot;Hiya!!&quot;);&lt;br /&gt;        };&lt;br /&gt;      myDelegate();&lt;br /&gt;     }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Lambda expressions are simply functions and they are declared in the context of expressions than as a member of a   class. It is an inline expression or a statement block which can be used to pass arguments to a method or assign   value to delegate. All lambda expressions use the lambda operator =&gt; and the left side of the operator denotes the   results and the right side contains the expression to be evaluated. For instance, consider the following lambda   expression:&lt;br /&gt;&lt;br /&gt;age =&gt; age + 1;&lt;br /&gt;&lt;br /&gt;The above function takes one argument named age, and returns age + 1 as the result. As you can see, Lambda    expressions follow the below syntax:&lt;br /&gt;&lt;br /&gt;(parameter-list) =&gt; expression;&lt;br /&gt;&lt;br /&gt;where expression can be any C# expression or a block of code. Just like anonymous methods you can use a lambda    expression in place of a delegate. Here are some sample lambda expressions and their corresponding delegates.&lt;br /&gt;&lt;br /&gt;//Explicitly typed parameter&lt;br /&gt;(Person obj) =&gt; MessageBox.Show(obj.FirstName.ToUpper());&lt;br /&gt;&lt;br /&gt;//Implicitly typed parameter&lt;br /&gt;(obj) =&gt; obj.FirstName == &quot;Thiru&quot;;&lt;br /&gt;&lt;br /&gt;//Explicitly typed parameter&lt;br /&gt;(int a, int b) =&gt; a + b&lt;br /&gt;&lt;br /&gt;//Implicitly typed parameter&lt;br /&gt;(x, y) =&gt; { return x + y; }&lt;br /&gt;&lt;br /&gt;As you see from the preceding lines of code, lambda expressions can be written in such a way that itcan infer the   parameter type from the signature of the delegate it is assigned to.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;. Query expressions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Even though further enhancements may be introduced in the coming months as C# 3.0 matures, the new features described  in the preceding sections make it a lot easier to work with data inside C# in general. This feature, also known as   LINQ (Language Integrated Query), allows you to write SQL-like syntax in C#.&lt;br /&gt;&lt;br /&gt;For instance, you may have a class that describes your data as follows:&lt;br /&gt;&lt;br /&gt;public class CoOrdinate&lt;br /&gt;{&lt;br /&gt;   public int x ;&lt;br /&gt;   public int y;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;You now could easily declare the logical equivalent of a database table inside C# as follows:&lt;br /&gt;&lt;br /&gt;// Use Object and collection initializers&lt;br /&gt;List&lt;coordinate&gt; coords = ... ;&lt;br /&gt;&lt;br /&gt;And now that you have your data as a collection that implements IEnumerable&lt;t&gt;, you easily can query this data as   follows:&lt;br /&gt;&lt;br /&gt;var filteredCoords =&lt;br /&gt;   from c in coords&lt;br /&gt;   where x == 1&lt;br /&gt;   select (c.x, c.y)&lt;br /&gt;&lt;br /&gt;In the SQL-like syntax above, &quot;from&quot;, &quot;where&quot;, and &quot;select&quot; are query expressions that take advantage of C# 3.0   features such as anonymous types, extension methods, implicit typed local variables, and so forth. This way, you can   leverage SQL-like syntax and work with disconnected data easily.&lt;br /&gt;&lt;br /&gt;Each query expression is actually translated into a C#-like invocation behind the scenes. For instance, the    following:&lt;br /&gt;&lt;br /&gt;where x == 1&lt;br /&gt;Translates to this:&lt;br /&gt;&lt;br /&gt;coords.where(c =&gt; c.x == 1)&lt;br /&gt;As you can see, the above looks an awful lot like a lambda expression and extension method. C# 3.0 has many other   query expressions and rules that surround them.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;. Expression Trees&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Expression trees represent language-level code in the form of data. The data is stored in a tree-shaped structure.   Each node in the expression tree represents an expression, for example a method call or a binary operation such as&lt;br /&gt;x &lt;&gt;&lt;int, bool=&quot;&quot;&gt;&gt; exprTree = num =&gt; num &lt; param =&quot; (ParameterExpression)exprTree.Parameters[0];&quot; operation =&quot; (BinaryExpression)exprTree.Body;&quot; left =&quot; (ParameterExpression)operation.Left;&quot; right =&quot; (ConstantExpression)operation.Right;&quot;&gt; {1} {2} {3}&quot;,&lt;br /&gt;                  param.Name, left.Name, operation.NodeType, right.Value);&lt;br /&gt;&lt;br /&gt;/*  This code produces the following output:&lt;br /&gt;&lt;br /&gt;    Decomposed expression: num =&gt; num LessThan 5&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;. Implicitly typed arrays.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; class ImplicitlyTypedArraySample&lt;br /&gt;{&lt;br /&gt;    static void Main()&lt;br /&gt;    {&lt;br /&gt;       var a = new[] { 1, 10, 100, 1000 }; // int[]&lt;br /&gt;        var b = new[] { &quot;hello&quot;, null, &quot;world&quot; }; // string[]&lt;br /&gt;&lt;br /&gt;        // single-dimension jagged array&lt;br /&gt;        var c = new[] &lt;br /&gt; {&lt;br /&gt;     new[]{1,2,3,4},&lt;br /&gt;     new[]{5,6,7,8}&lt;br /&gt; };&lt;br /&gt;&lt;br /&gt;       // jagged array of strings&lt;br /&gt;        var d = new[] &lt;br /&gt; {&lt;br /&gt;     new[]{&quot;Luca&quot;, &quot;Mads&quot;, &quot;Luke&quot;, &quot;Dinesh&quot;},&lt;br /&gt;     new[]{&quot;Karen&quot;, &quot;Suma&quot;, &quot;Frances&quot;}&lt;br /&gt; };&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/int,&gt;&lt;/t&gt;&lt;/coordinate&gt;&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/int&gt;&lt;/int&gt;&lt;/customer&gt;&lt;/customer&gt;</content><link rel='replies' type='application/atom+xml' href='http://iyngarangce.blogspot.com/feeds/4020221143085215395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2956116147975731201/4020221143085215395' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/4020221143085215395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2956116147975731201/posts/default/4020221143085215395'/><link rel='alternate' type='text/html' href='http://iyngarangce.blogspot.com/2009/11/net-framework-30-features_20.html' title='.Net Framework 3.0 features'/><author><name>Dhinesh Paramasivam</name><uri>http://www.blogger.com/profile/11324323140294768179</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>