<?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-1056396716722015836</id><updated>2026-08-01T17:26:20.052-07:00</updated><title type='text'>.Apple Technologies</title><subtitle type='html'>Purely Educational Blog</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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>175</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1056396716722015836.post-3488178063578917765</id><published>2016-01-22T00:58:00.002-08:00</published><updated>2016-01-22T00:58:33.809-08:00</updated><title type='text'>RECOVER HIDDEN FILES AND FOLDERS OF PEN DRIVE USING CMD PROMPT</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;Generally we will facing a big problem as hiding and not showing our files when we use our pen drives and memory cards in some other systems coz of virus problem&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;To remove such virus&amp;nbsp;follow the steps&lt;/strong&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Open administrative command prompt.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Go to your pen-drive drive letter. Suppose your USB&amp;nbsp;disk is G:. Type G: and press Enter&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Now type the below command to remove system file, hidden read-only attribute&lt;br /&gt;&lt;code&gt;attrib -s -h -r /s /d *.*&lt;/code&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Delete Autorun.inf from USB&amp;nbsp;– Disk.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;This makes all files visible and you are now able to delete them .&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;strong&gt;&lt;code&gt;del *.lnk&lt;/code&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Now to remove the shortcuts from pen-drive , Check the size of any One or Few Shortcuts, all be same.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Delete suspicious files, on errror check task manager for process with same name or any suspicious process and end it.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Open Explorer and right Click on Pen-drive , Click Open.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Search with Advance Search for all files of same size in Pen-drive.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Select All and Delete&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/3488178063578917765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2016/01/recover-hidden-files-and-folders-of-pen.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/3488178063578917765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/3488178063578917765'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2016/01/recover-hidden-files-and-folders-of-pen.html' title='RECOVER HIDDEN FILES AND FOLDERS OF PEN DRIVE USING CMD PROMPT'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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-1056396716722015836.post-8769889494919305649</id><published>2015-05-12T23:33:00.002-07:00</published><updated>2015-05-12T23:38:01.226-07:00</updated><title type='text'>jQuery interview Question - Part II</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Previous I already posted basic Interviews question in&amp;nbsp;&lt;a href=&quot;http://hanutechvision.blogspot.in/2015/03/jquery-important-interview-questions.html&quot;&gt;jQuery Basic Interview Question&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;Here some more for you&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;21. What is the
difference between size and length of jQuery?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Size and length both
returns the number of element in an object. But length is faster than the size
because length is a property and size is a method.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;22. Can we add
more than one ‘document.ready’ function in a page?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Yes, we can add more
than one document.ready function in a page. But, body.onload can be added once
in a page.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;23. What is the
use of jQuery load method?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;jQuery load method is
a powerful AJAX method which is used to load the data from a server and assign
the data into the element without loading the page.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;24. Whether our
own specific characters are used in place of $ in jQuery?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Yes, We can use our
own variable in place of $ by suing the method called no Conflict ( ) method.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;var sample =
$.noConflict( )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;25. What are the
four parameters used for jQuery Ajax method?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;The four parameters
are&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 17.25pt; margin-right: 0in; margin-top: 0in; mso-list: l3 level1 lfo1; tab-stops: list .5in; text-indent: 0in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Symbol;&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;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;inherit&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Helvetica; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;URL – Need to specify the URL to send the request&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Symbol;&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;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;inherit&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Helvetica; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;type – Specifies type of request(Get or Post)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Symbol;&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;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;inherit&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Helvetica; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;data – Specifies data to be sent to server&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Symbol;&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;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;inherit&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Helvetica; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Cache – Whether the browser should cache the requested page&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;!--[if !supportLists]--&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;26. What is the
use of jQuery filter?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;The jQuery filter is
used to filter the certain values from the object list based on the criteria.
Example is to filter certain products from the master list of products in a
cart website.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;27. Which program
is useful for testing jQuery?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;QUnit is used to test
jQuery and it is very easy and efficient.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;28. What is CDN?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;CDN is abbreviated as
Content Distribution network and it is said to be a group of companies in
different location with network containing copies of data files to maximize
bandwidth in accessing the data.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;29. What are the
two types of CDNs?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;There are two types of
CDNs:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 17.25pt; margin-right: 0in; margin-top: 0in; mso-list: l5 level1 lfo2; tab-stops: list .5in; text-indent: 0in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Symbol;&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;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;inherit&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Helvetica; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Microsoft – Load jQuery from Ajax CDN&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Symbol;&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;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;inherit&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Helvetica; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Google – Load jQuery from Google libraries API&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;!--[if !supportLists]--&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;30. Which sign is
used as a shortcut for jQuery?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Dollar ($) sign is
used as a shortcut for jQuery.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;31. Is jQuery is
a client or server scripting?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;jQuery is a client
scripting.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;32. What is the
script build up by jQuery?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;jQuery is a Javascript
file and it is single javascript file that contains common DOM, event effects
and Ajax functions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;33. How can we
debug jQuery?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;There are two ways to
debug jQuery:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 18.55pt;&quot;&gt;Debugger keyword&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 17.25pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo3; tab-stops: list .5in; text-indent: 0in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Symbol;&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;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;inherit&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Helvetica; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Add the debugger to the line from where we have to start
debugging and then run Visual Studio in Debug mode with F5 function key.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Symbol;&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;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;inherit&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Helvetica; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Insert a break point after attaching the process&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;!--[if !supportLists]--&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;34. What are all
the ways to include jQuery in a page?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Following are the ways
to include jQuery in a page:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 17.25pt; margin-right: 0in; margin-top: 0in; mso-list: l1 level1 lfo4; tab-stops: list .5in; text-indent: 0in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Symbol;&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;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;inherit&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Helvetica; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Local copy inside script tag&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Symbol;&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;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;inherit&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Helvetica; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Remote copy of jQuery.com&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Symbol;&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;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;inherit&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Helvetica; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Remote copy of Ajax API&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Symbol;&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;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;inherit&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Helvetica; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Local copy of script manager control&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Symbol;&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;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;inherit&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Helvetica; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Embedded script using client script object&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;!--[if !supportLists]--&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;35. What is the
use of jQuery.ajax method ()?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;jQuery.ajax method is
used for asynchronous HTTP requests.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;36. Where can we
download JQuery?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;jQuery javascript can
be downloaded from jQuery official website – www.jquery.com&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;37. Is jQuery is
a replacement of JavaScript?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;No, jQuery is not a
replacement of JavaScript.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;38. What is
called chaining?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Chaining is used to
connect multiple events and functions in a selector.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;39. What are the
advantages of jQuery?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Following are the
advantages of jQuery:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 17.25pt; margin-right: 0in; margin-top: 0in; mso-list: l2 level1 lfo5; tab-stops: list .5in; text-indent: 0in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Symbol;&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;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;inherit&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Helvetica; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Just a JavaScript enhancement&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Symbol;&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;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;inherit&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Helvetica; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Coding is simple, clear, reusable&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Symbol;&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;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;inherit&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Helvetica; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Removal of writing more complex conditions and loops&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;!--[if !supportLists]--&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;40. Whether C#
code behind can be called from jQuery?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Yes, we can call C#
code behind from jQuery.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;41. What is the
use of jQuery.data() method?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;jQuery data method is
used to associate data with DOM nodes and JavaScript objects. This method will
make a code very concise and neat.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;42. What is the
difference between onload() and document.ready()?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;In a page, we can have
only one onload function but we can have more than one document.ready function.
Document.ready function is called when DOM is loaded but onload function is
called when DOM and images are loaded on the page.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;43. What is the
use of jQuery each function?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;jQuery each function
is used to loop through each and every element of the target jQuery object. It
is also useful for multi element DOM, looping arrays and object properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;44. How method
can be called inside code behind using jQuery?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;$.ajax can be called
and by declaring WebMethod inside code behind using jQuery.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;45. Which is the
fastest selector in jQuery?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;ID and Element are the
fastest selectors in jQuery.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;46. What is the
slowest selector in jQuery?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Class selectors are
the slowest selectors in jQuery.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;47. Where jQuery
code is getting executed?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;jQuery code is getting
executed on a client browser.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;48. What is the
method used to define the specific character in place of $ sign?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;‘NoConflict’ method is
used to reference a jQuery and save it in a variable. That variable can be used
instead of Sign.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;49. Why jQuery is
better than JavaScript?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;jQuery is a library
used for developing Ajax application and it helps to write the code clean and
concise. It also handles events, animation and Ajax support applications.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 11.5pt;&quot;&gt;50. What are the
types of selectors in jQuery?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&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: white; line-height: 18.55pt; margin-bottom: 10.2pt; margin-left: 0in; margin-right: 0in; margin-top: 10.2pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;There are three types
of selectors in jQuery:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.55pt; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 17.25pt; margin-right: 0in; margin-top: 0in; mso-list: l4 level1 lfo6; tab-stops: list .5in; text-indent: 0in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Symbol;&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;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;inherit&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Helvetica; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;CSS Selector&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Symbol;&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;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;inherit&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Helvetica; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;XPath Selector&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Symbol;&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;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &amp;quot;inherit&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Helvetica; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Custom Selector&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;!--[if !supportLists]--&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/8769889494919305649/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2015/05/jquery-interview-question-part-ii.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/8769889494919305649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/8769889494919305649'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2015/05/jquery-interview-question-part-ii.html' title='jQuery interview Question - Part II'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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-1056396716722015836.post-8219898933455355483</id><published>2015-03-28T07:32:00.002-07:00</published><updated>2015-05-12T23:34:55.507-07:00</updated><title type='text'>jQuery Important Interview Questions</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;b&gt;1. What is jQuery?&lt;/b&gt;&lt;br /&gt;
jQuery is not a programming language but a well written JavaScript code. It is a JavaScript code, which do document traversing, event handling, Ajax interactions and Animations.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2. Why jQuery is needed?&lt;/b&gt;&lt;br /&gt;
jQuery is needed for the following list:&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Used to develop browser compatible web applications&lt;/li&gt;
&lt;li&gt;Improve the performance of an application&lt;/li&gt;
&lt;li&gt;Very fast and extensible&lt;/li&gt;
&lt;li&gt;UI related functions are written in minimal lines of codes&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;3. Whether jQuery HTML work for both HTML and XML documents?&lt;/b&gt;&lt;br /&gt;
No, jQuery HTML only works for HTML documents not for XML Documents.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;4. What are the methods used to provide effects?&lt;/b&gt;&lt;br /&gt;
Some of the effects methods are:&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Show( )&lt;/li&gt;
&lt;li&gt;Hide( )&lt;/li&gt;
&lt;li&gt;Toggle( )&lt;/li&gt;
&lt;li&gt;FadeIn( ) and&lt;/li&gt;
&lt;li&gt;FadeOut( )&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;5. What is the advantage of using minimized version of jQuery?&lt;/b&gt;&lt;br /&gt;
Efficiency of web page increases when minimized version of jQuery is used.min.js file will be more than 50% less than the normal js file. Reduction in the file size makes the web page faster.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;6. Is jQuery is a JavaScript or JSON library file?&lt;/b&gt;&lt;br /&gt;
jQuery is a library of JavaScript file and it consists of DOM, event effects and the Ajax functions. jQuery is said to be a single JavaScript file.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;7. Which operating system is more compatible with jQuery?&lt;/b&gt;&lt;br /&gt;
Mac, Windows and Linux are more compatible with the jQuery.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;8. How can we include jQuery library in ASP.Net project?&lt;/b&gt;&lt;br /&gt;
Download the jQuery library from jQuery.com and include that reference in the asp.net page.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;9. Which command will give a version of jQuery?&lt;/b&gt;&lt;br /&gt;
The command $.ui.version returns jQuery UI version.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;10. In what scenarios jQuery can be used?&lt;/b&gt;&lt;br /&gt;
jQuery can be used in following scenarios:&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Apply CSS static or dynamic&lt;/li&gt;
&lt;li&gt;Calling functions on events&lt;/li&gt;
&lt;li&gt;Manipulation purpose&lt;/li&gt;
&lt;li&gt;Mainly for Animation effects&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;11. What is the difference between find and children methods?&lt;/b&gt;&lt;br /&gt;
Find method is used to find all levels down the DOM tree but children find single level down the DOM tree.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;12. What is jQuery connect?&lt;/b&gt;&lt;br /&gt;
A ‘ jQuery connect’ &amp;nbsp;is a plugin used to connect or bind a function with another &amp;nbsp;function. Connect is used to execute function from any other function or plugin is executed.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;13. How to use connect?&lt;/b&gt;&lt;br /&gt;
Connect can be used by downloading jQuery connect file from jQuery.com and then include that file in the HTML file. Use $.connect function to connect a function to another function.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;14. What are the features of jQuery, has been used in web applications?&lt;/b&gt;&lt;br /&gt;
jQuery uses features like Sliding, File uploading and accordian in web applications.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;15. What are the browser related issues for jQuery?&lt;/b&gt;&lt;br /&gt;
Browser compatibility of jQuery plugin is an issue and needs lot of time to fix it.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;16. Whether we need to add jQuery file in both Master and Content page?&lt;/b&gt;&lt;br /&gt;
jQuery file should be added to the Master page and can use access from the content page directly without having any reference to it.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;17. What are the basic selectors in jQuery?&lt;/b&gt;&lt;br /&gt;
Following are the basic selectors in jQuery:&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Element ID&lt;/li&gt;
&lt;li&gt;CSS Name&lt;/li&gt;
&lt;li&gt;Tag Name&lt;/li&gt;
&lt;li&gt;DOM hierarchy&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;18. Can we call C# code behind using jQuery?&lt;/b&gt;&lt;br /&gt;
Yes, we can call C# code from jQuery as it supports .net application.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;19. What is the use jQuery.data method?&lt;/b&gt;&lt;br /&gt;
jQuery.data methods is used to associate the data with the DOM nodes and the objects. This data method makes the jQuery code clear and concise.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;20. What is the use of each function in jQuery?&lt;/b&gt;&lt;br /&gt;
Each function is used to iterate each and every element of an object. It is used to loop DOM elements, arrays and the object properties.&lt;br /&gt;
&lt;br /&gt;
Click here for&amp;nbsp;&lt;a href=&quot;http://hanutechvision.blogspot.in/2015/05/jquery-interview-question-part-ii.html&quot;&gt;More Interview Question&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/8219898933455355483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2015/03/jquery-important-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/8219898933455355483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/8219898933455355483'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2015/03/jquery-important-interview-questions.html' title='jQuery Important Interview Questions'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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-1056396716722015836.post-1993556396638706776</id><published>2014-12-10T09:13:00.003-08:00</published><updated>2014-12-10T09:13:27.974-08:00</updated><title type='text'>All the best</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
My dear students, Friends and blog followers,&lt;br /&gt;
&lt;br /&gt;
Thanx for ur support. I hope this blog can little bit help to your career.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; I will share new technology and new concepts in a quick time.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;This is a comma but not a fullstop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Yours&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;b&gt;Hanumantha Rao&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/1993556396638706776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/12/all-best.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/1993556396638706776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/1993556396638706776'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/12/all-best.html' title='All the best'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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-1056396716722015836.post-4988200443777806848</id><published>2014-11-15T09:48:00.000-08:00</published><updated>2014-11-15T09:48:00.895-08:00</updated><title type='text'>Routing in MVC</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Routing within the ASP.NET MVC framework serves two main purposes:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;It matches incoming requests that would not otherwise match a fi le on the file system and&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;maps the requests to a controller action.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;It constructs outgoing URLs that correspond to controller actions.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The preceding two items describe only what Routing does in the context of an ASP.NET MVC&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;application.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;NOTE:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;One constant area of confusion about Routing is its relationship to ASP&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;.NET MVC. In its pre-beta days, Routing was an integrated feature of ASP.NET&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;MVC. However, the team saw that it would have a useful future as a fundamental&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;feature of ASP.NET that even Web Pages could build on, so it was extracted&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;into its own assembly and made part of the core ASP.NET framework. The&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;proper name for the feature is ASP.NET Routing, but everyone simply shortens&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;it to Routing.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Putting this feature into ASP.NET meant that it became a part of the .NET&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Framework (and, by association, Windows). So, while new versions of&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;ASP.NET MVC ship often, Routing is constrained by the schedule of the larger&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;.NET Framework; hence, it hasn’t changed much over the years.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;ASP.NET Web API is hostable outside of ASP.NET, which means it can’t use&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;ASP.NET Routing directly. Instead, it introduces a clone of the Routing code.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;But when ASP.NET Web API is hosted on ASP.NET, it mirrors all the Web API&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;routes into the core ASP.NET Routing’s set of routes. Routing, as it applies to&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;ASP.NET Web API&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Comparing Routing to URL Rewriting&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;To better understand Routing, many developers compare it to URL rewriting. After all, both&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;approaches are useful in creating a separation between the incoming URL and what ends up handling&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;the request. Additionally, both techniques can be used to create pretty URLs for Search Engine&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Optimization (SEO) purposes.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The key difference is that URL rewriting is focused on mapping one URL to another URL. For&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;example, URL rewriting is often used for mapping old sets of URLs to a new set of URLs. Contrast&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;that to Routing, which is focused on mapping a URL to a resource.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;You might say that Routing embodies a resource-centric view of URLs. In this case, the URL represents&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;a resource (not necessarily a page) on the Web. With ASP.NET Routing, this resource is a piece&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;of code that executes when the incoming request matches the route. The route determines how the&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;request is dispatched based on the characteristics of the URL — it doesn’t rewrite the URL.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Another key difference is that Routing also helps generate URLs using the same mapping rules that&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;it uses to match incoming URLs. URL rewriting applies only to incoming requests and does not help&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;in generating the original URL.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Another way to look at it is that ASP.NET Routing is more like bidirectional URL rewriting.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;However, this comparison falls short because ASP.NET Routing never actually rewrites your URL.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The request URL that the user makes in the browser is the same URL your application sees throughout&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;the entire request life cycle.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/4988200443777806848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/11/routing-in-mvc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/4988200443777806848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/4988200443777806848'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/11/routing-in-mvc.html' title='Routing in MVC'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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-1056396716722015836.post-4068286115843282344</id><published>2014-10-04T01:01:00.004-07:00</published><updated>2014-10-04T01:03:34.386-07:00</updated><title type='text'>Page development in Sharepoint</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Bydefault Sharepoint server has two types of pages. 1.Page(Wiki) 2.Web Part Page&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;1.Page: This is a normal wiki page. In this page we can add text, images, links, ..&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;2.Web Part Page : This is also a page but here we can&#39;t create any text. Only for adding webparts to the page.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We have another type of page is called Publishing page. This is the combination of both page and webpart. If we want to create publishing page means first we should show this option in page list like below.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;SiteActions --&amp;gt; SiteSettings --&amp;gt; SiteActions --&amp;gt; ManageSiteFeatures --&amp;gt; &amp;nbsp;SharePoint Server Publishing ----&amp;gt; Activate. Now you will find the option Publishing page.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;==================================&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;Webpart Page&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;SiteActions --&amp;gt; MoreOptions --&amp;gt; Page ---&amp;gt; Web Part Page ---&amp;gt; Create --&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; i.Name : SPDemoPage .... Check/uncheck :Overwrite if file already exists?&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;ii.Layout : Select a layout template to arrange Web Parts in zones on the page. Multiple Web Parts can be added to each zone. Specific zones allow Web Parts to be stacked in a horizontal or vertical direction, which is illustrated by differently colored Web Parts. If you do not add a Web Part to a zone, the zone collapses (unless it has a fixed width) and the other zones expand to fill unused space when you browse the Web Part Page.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;Choose any one layout template.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Ex.Header, Footer , 3columns &amp;nbsp;/ Full page, Vertical / Header leftcol, body&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;iii.Save Location : Select the document library where you want the Web Part Page to be saved. &amp;nbsp;choose any one of the following&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;SiteAssets / Shared Documents / SitePages&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;A new webpart page will be opened. now you can add webparts by click on Add a web part.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;After adding webparts to the page then click on Stop Editing option. Now page is ready.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;*While adding webparts you can also drag webparts from one place to another place.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Web part &amp;nbsp;zone is like div tag in asp.net / html.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We can add / delete or move webparts from one place to another place.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: purple; font-family: Verdana, sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Publishing Page&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This page is the combination of wiki page and web part page. We have 5 types of publishing pages available. Those are&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;1.Articles&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;2.Wiki Page&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;3. Project&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;4. Redirect&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;5. Welcome&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;SiteActions --&amp;gt; MoreOptions --&amp;gt; Page ---&amp;gt; Publishing Page --&amp;gt; Create --&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;1.Page Title and Description : Enter a URL name, title, and description for this page. &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;2.Page Layout : Select a page layout to control how the page will be displayed.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; i.(Article page) body only: The article page with body only contains a rich text field.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;ii.(Article page) Image on left : The article page with image on left contains an image field and a rich text field&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;iii.(Article page) Image on right :The article page with image on right contains an image field and a rich text field.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;iv.(Article page) Summary Links : The article page with links contains an image field and summary links.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;v.(Enterprise Wiki Page) Basic page:A basic page layout containing a single content area.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;vi.(Project Page) Basic Project Page:A basic page layout containing a single content area.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;vii.(Redirect Page)Redirect : This page layout contains a redirect control for automatically directing readers to any specified URL.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;viii.(Welcome Page) Blank Web part page: Page layout for creating web part pages&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;ix.(Welcome Page)Splash : The welcome with splash contains an image field on left, a rich text field and Web Part zones arranged in a header, and 2 columns. &amp;nbsp;The left navigation pane is hidden.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;x.(Welcome Page) Summary Links :The welcome page with summary links contains an image field on left, a rich text field, 2 summary links, and Web Part zones arranged in a header, a footer, and 2 columns.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;xi.(Welcome Page) Table of contents: The welcome page with table of contents contains an image field on left, a rich text field, a table of contents Web Part, and Web Part zones arranged in a header, a footer, and 2 columns.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Click on Create.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now you can add text, images ..... after completion of creating Save the page then click on Publish --&amp;gt; Publish ---&amp;gt; Enter any comments if ... Continue click&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;While you are developing the publishing page its status is &#39;Checked out&#39; Means it is under design. So no one cant access this page.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Like you can create all publish pages of enterprisewiki, basic project page, redirect page and welcome page.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;============================================================&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/4068286115843282344/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/10/page-development-in-sharepoint.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/4068286115843282344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/4068286115843282344'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/10/page-development-in-sharepoint.html' title='Page development in Sharepoint'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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-1056396716722015836.post-1437833084910841553</id><published>2014-09-23T09:23:00.001-07:00</published><updated>2014-09-23T09:23:16.940-07:00</updated><title type='text'>Sharepoint Realtime Interview questions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: purple; font-family: Verdana, sans-serif; font-size: large;&quot;&gt;Important interview questions for Sharepoint Developer&lt;/span&gt;&lt;br /&gt;
Q. How will you deploy files such as Css, js in SharePoint 2010?&lt;br /&gt;
Ans. The most preferable way to deploy files in SharePoint is by using the solution package. In SharePoint 2010 you can create an empty project with VS 2010 and then add a new SharePoint Mapped folder &amp;nbsp;in it. This will give the desired location in 14 hive where you can then add a file to deploy.&lt;br /&gt;
&lt;br /&gt;
Q. Can you display a page as a modal dialog?&lt;br /&gt;
Ans. Yes, any page can be displayed as modal dialog. A Modal dialog takes options as a parameter and we can speciy the url for any page usually saved in _layouts.&lt;br /&gt;
&lt;br /&gt;
Q. Can you display the modal dialog from a webpart?&lt;br /&gt;
Ans. Yes a modal dialog can be displayed from within a webpart code since its a JavaScript block that can be registered on the page.&lt;br /&gt;
&lt;br /&gt;
Q. What is difference between an Application page and a Custom aspx page in SharePoint 2010. If you have to deploy a page with some code in it which one would you prefer?&lt;br /&gt;
Ans.&lt;br /&gt;
Application Page – You would typically use an applictaion page when you need some content that is merged with SharePoint master page. A master page enables application pages to share the same appearance and behavior as other pages on a site. Application page generally gets deployed in _layouts and inhertirs the look and feel of the site that you are using.&lt;br /&gt;
A Custom .net aspx page on the other hand would need content and master page tags in your page to make it inherit the look and feel of the site.&lt;br /&gt;
I would prefer deploying an application page with code as it is much easier and has built-in templates available in VS 2010.&lt;br /&gt;
&lt;br /&gt;
Q. What is Docuement Set and how is it useful to the end users?&lt;br /&gt;
Ans. A Document Set is a group of related documents that can be created in one step and then managed as a single entity. This can be seen as a folder of documents with a cover letter(welcome page) and which can share common data between its documents (share document set info\columns).&lt;br /&gt;
Document Set is very useful when it comes to managing the documents for a single project or task. For e.g. a manager while working on a project wants to create a single folder\entity with all the documents related to that project. He also wants that each document shares the project info (for e.g. Project Id, Manager name etc.) and can be checked in\checked out individually. Document Set will also allow him to add a cover letter\welcome page to the entity(or his set of documents) and use some basic document features like record version history, start a workflow, e-mail document set etc.&lt;br /&gt;
&lt;br /&gt;
Q. What are Projected Fields in SPQuery and when would you use that?&lt;br /&gt;
Ans. In SharePoint 2010, Referential integrity can now be implemented using Lookup columns. Joins and ProjectedFields properties of SPQuery were introduced to facilitate this. Projected Fields are the fields which you can access when a list is joined by a lookup columns. These are additional columns from a parent lookup column list.&lt;br /&gt;
&lt;br /&gt;
Q. What is WebProvisioned event receiver and when would you use that?&lt;br /&gt;
Ans. WebProvisioned event receiver is fired after the site has been created and is fully provisioned(asynchronous). For e.g. if you want to update the site title of logo after its been created or if you want to add a new list\library after the out-of-box site has been created you can use the WebProvisioned event handler.&lt;br /&gt;
&lt;br /&gt;
Q. If you have to add a new Ribbon button to one of the existing tabs how will you identify the location?&lt;br /&gt;
Ans. The Its typically Ribbon.Tabs.group.Controls._children.&lt;br /&gt;
&lt;br /&gt;
Q. How does Client object model works ?&lt;br /&gt;
Ans. When we use SharePoint client API’s to perform a specific task, the SharePoint Foundation 2010 managed client object model bundles up these uses of the API into XML and sends it to the server that runs SharePoint Foundation. The server receives this request, and makes appropriate calls into the object model on the server, collects the responses, forms them into JavaScript Object Notation (JSON), and sends that JSON back to the SharePoint Foundation 2010 managed client object model. The client object model parses the JSON and presents the results to the application as .NET Framework objects (or ECMAScript objects for ECMAScript).&lt;br /&gt;
&lt;br /&gt;
Q. How many types of Client Object model extension are available in 2010 and when would you use one or the other.&lt;br /&gt;
Ans. To develop rich client side solutions, three set of client-side APIs has been introduced in the Microsoft.SharePoint.Client namespace. The three APIs are targeted for three different types of clients.&lt;br /&gt;
1. .net Managed applications – These are used when we have to create console applications or window applications, web applications which are not running inside SharePoint Contex.&lt;br /&gt;
2. For Silverlight applications&lt;br /&gt;
3. ECMAScript – It is a client object model extension for using with JavaScript or JScript. This is used for creating applications which are hosted inside SharePoint. For example, web part deployed in SharePoint site can use this JavaScript API for accessing SharePoint from browser using JavaScript.&lt;br /&gt;
&lt;br /&gt;
Q. What is difference between Load() and LoadQuery() methods ?&lt;br /&gt;
Ans. Load method populates the client object directly with what it gets data from the server i.e. a collection object like ListItemCollection etc. but LoadQuery returns the data as a completely new collection in &amp;nbsp;IEnumerable format. Other major difference is that the Collections that you load using the Load() method are eligible for garbage collection only when the client context variable itself goes out of scope where as, in &amp;nbsp;these collections go out of scope at the end of &amp;nbsp;IEnumerable&amp;lt;List&amp;gt;list.&lt;br /&gt;
&lt;br /&gt;
Q. How can you write efficient and better performing client object applications ?&lt;br /&gt;
Ans. You can always use Lambda expressions in your queries to return only specific properties that will be used in your block. You can also use LoadQuery() method and specify multiple levels of properties to load for e.g. while returning specific properties of the lists using LoadQuery(), you can also specify the fields to return from each list to optimize the data access.&lt;br /&gt;
&lt;br /&gt;
Q. How do you access ECMAScript object model API’s ?&lt;br /&gt;
Ans. The ECMAScript library is available in a number of JS files in the LAYOUTS folder. The main file among number of .js files is SP.js. When you include this file in the APSX page using a ScriptLink control, all other required JS files are loaded automatically. By linking SP.js to your page, the SP namespace gets registered. SP is the SharePoint namespace that contains all objects. For debugging purposes every js file also has a ‘debug’ equivalent in the same folder.&lt;br /&gt;
&lt;br /&gt;
Q. What is the purpose of calling clientContext.ExecuteQuery() ?&lt;br /&gt;
Ans. ExecuteQuery gives you the option to minimize the number of roundtrips to the server from your client code. All the components loaded into the clientcontext are executed in one go.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/1437833084910841553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/09/sharepoint-realtime-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/1437833084910841553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/1437833084910841553'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/09/sharepoint-realtime-interview-questions.html' title='Sharepoint Realtime Interview questions'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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-1056396716722015836.post-5115290409679138905</id><published>2014-08-25T10:41:00.002-07:00</published><updated>2014-08-25T10:42:16.750-07:00</updated><title type='text'>New Article</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;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/5115290409679138905/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/08/happy-vinayaka-chaviti.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/5115290409679138905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/5115290409679138905'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/08/happy-vinayaka-chaviti.html' title='New Article'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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-1056396716722015836.post-8932095709869009092</id><published>2014-08-22T02:19:00.003-07:00</published><updated>2014-08-22T03:22:18.652-07:00</updated><title type='text'>SharePoint 2013 </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;Welcome to the world of SharePoint 2013. SharePoint 2013 Production version is released &amp;amp; Live implementations are going on. In this article I would like to re-iterate the features of SharePoint as a whole &amp;amp; advantages of going with it.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: purple; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Sharepoint Features&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;Depending on the business perspective the features of SharePoint are many:&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&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/AVvXsEj4wHVbLXah08yyj5OZj-LbGE30hKPWHnGLTN3bo8MIZScdF8F07b0SwVt3MGWZpVsHc2NimHWHLmla1h1ripRKpAZ7yOxYqieI-HQvmJfGP_dlFg6DZavmZ-qW_3HZ96Z7_cK1PS-tOVM/s1600/sps.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/AVvXsEj4wHVbLXah08yyj5OZj-LbGE30hKPWHnGLTN3bo8MIZScdF8F07b0SwVt3MGWZpVsHc2NimHWHLmla1h1ripRKpAZ7yOxYqieI-HQvmJfGP_dlFg6DZavmZ-qW_3HZ96Z7_cK1PS-tOVM/s1600/sps.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; color: #ff9900; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 30px; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
How to Install SharePoint 2013?&lt;/h2&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
As SharePoint is a server side software, it requires the Windows Server operating system. You can start with a new installation or use a Virtual Machine. Once you have the Operating System ready, you can download and install SharePoint 2013 from the following link:&amp;nbsp;&lt;a href=&quot;http://technet.microsoft.com/en-us/evalcenter/hh973397.aspx&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot; wrc_done=&quot;true&quot;&gt;http://technet.microsoft.com/en-us/evalcenter/hh973397.aspx&lt;/a&gt;&amp;nbsp;.&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; color: #ff9900; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 30px; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
Hardware Requirements&lt;/h2&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
Following are the core hardware requirements:&lt;/div&gt;
&lt;ol style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;CPU 64-bit&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;RAM 8 GB&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;HDD 80 GB&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 style=&quot;background-color: white; color: #ff9900; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 30px; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
Software Requirements&lt;/h2&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
Following are the software requirements:&lt;/div&gt;
&lt;ol style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Windows Server 2012&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Microsoft SQL Server 2012 64-bit&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Internet Information Services 7.5&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Microsoft .NET 4.5&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/8932095709869009092/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/08/sharepoint-2013.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/8932095709869009092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/8932095709869009092'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/08/sharepoint-2013.html' title='SharePoint 2013 '/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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/AVvXsEj4wHVbLXah08yyj5OZj-LbGE30hKPWHnGLTN3bo8MIZScdF8F07b0SwVt3MGWZpVsHc2NimHWHLmla1h1ripRKpAZ7yOxYqieI-HQvmJfGP_dlFg6DZavmZ-qW_3HZ96Z7_cK1PS-tOVM/s72-c/sps.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1056396716722015836.post-5903635470079702717</id><published>2014-07-18T12:42:00.002-07:00</published><updated>2014-07-18T12:42:56.116-07:00</updated><title type='text'>Routing MVC 4 </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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 18pt;&quot;&gt;Routing&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&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;&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: Verdana, sans-serif; font-size: 10pt;&quot;&gt;All ASP.NET MVC
traffic starts out like any other website traffic: with a request to a URL.
This means that, despite the fact that it is not mentioned anywhere in the
name, the &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;ASP.NET
Routing &lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;framework is at
the core of every ASP.NET MVC request. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&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;&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: Verdana, sans-serif; font-size: 10pt;&quot;&gt;In simple terms,
ASP.NET routing is just a pattern-matching system. At startup, the application
registers one or more patterns with the framework’s &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;route table &lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;to tell the routing system what to do
with any requests that match those patterns. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&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;&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: Verdana, sans-serif; font-size: 10pt;&quot;&gt;When the routing
engine receives a request at runtime, it matches that request’s URL against the
URL patterns registered with it (&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;Figure 1-6&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&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;&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: Verdana, sans-serif; font-size: 10pt;&quot;&gt;When the routing
engine finds a matching pattern in its route table, it forwards the request to
the appropriate handler for that request.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;Otherwise, when the request’s URL does not match any of
the registered route patterns, the routing engine indicates that it could not
figure out how to handle the request by returning a 404 HTTP status code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 15.0pt; mso-bidi-font-family: MyriadPro-SemiboldCond; mso-bidi-language: TE;&quot;&gt;Configuring Routes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;ASP.NET MVC routes are responsible for determining which
controller method (otherwise known as a &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka-Italic; mso-bidi-language: TE;&quot;&gt;controller action&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;) to execute for a given URL. They consist of the following properties:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka-Italic; mso-bidi-language: TE;&quot;&gt;Unique name : &lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;A name may be used as a specific reference to a
given route&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Birka-Italic; mso-bidi-language: TE;&quot;&gt;URL pattern : &lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;A simple pattern syntax that
parses matching URLs into meaningful&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;segments&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&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/AVvXsEhcoF2MW02_Qgha36OrPVldnXObRNarNr5oOR4yhkbqbxHjNNDffAagKgxMc_A_SMpACE01mAS1XVycOhAiDhWB-a74afI9DeAseKM74-sjqQATy0HlN1FaeShw0rJPkC_8S2j2he2DQW0/s1600/mv1.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/AVvXsEhcoF2MW02_Qgha36OrPVldnXObRNarNr5oOR4yhkbqbxHjNNDffAagKgxMc_A_SMpACE01mAS1XVycOhAiDhWB-a74afI9DeAseKM74-sjqQATy0HlN1FaeShw0rJPkC_8S2j2he2DQW0/s1600/mv1.png&quot; height=&quot;640&quot; width=&quot;393&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; line-height: 115%; mso-bidi-font-family: Birka-Italic; mso-bidi-language: TE;&quot;&gt;Figure 1-6. ASP.NET
routing&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka-Italic; mso-bidi-language: TE;&quot;&gt;Defaults : &lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;An optional set of default values for the segments
defined in the URL pattern &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka-Italic; mso-bidi-language: TE;&quot;&gt;Constraints&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;A set of constraints to apply against the URL pattern to
more narrowly define the URLs that it matches&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;The default ASP.NET MVC project templates add
a generic route that uses the following URL convention to break the URL for a
given request into three named segments, wrapped with brackets (&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;{}&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;):&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;“controller”, “action”, and “id”: &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 8pt;&quot;&gt;{controller}/{action}/{id}
&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;This route pattern
is registered via a call to the &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;MapRoute() &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;extension method that runs during application startup
(located in &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;App_Start/RouteConfig.cs&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;):&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #000088; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TheSansMonoCd-W5Regular; mso-bidi-language: TE;&quot;&gt;routes&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #000088; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TheSansMonoCd-W5Regular; mso-bidi-language: TE;&quot;&gt;MapRoute&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;(&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #cd3300; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TheSansMonoCd-W5Regular; mso-bidi-language: TE;&quot;&gt;&quot;Default&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;, &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #35586d; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TheSansMonoCd-W5RegularItalic; mso-bidi-language: TE;&quot;&gt;// Route name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #cd3300; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TheSansMonoCd-W5Regular; mso-bidi-language: TE;&quot;&gt;&quot;{controller}/{action}/{id}&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;, &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #35586d; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TheSansMonoCd-W5RegularItalic; mso-bidi-language: TE;&quot;&gt;// URL with
parameters&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #00669a; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TheSansMonoCd-W7Bold; mso-bidi-language: TE;&quot;&gt;new &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;{ &lt;/span&gt;&lt;span style=&quot;color: #000088; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TheSansMonoCd-W5Regular; mso-bidi-language: TE;&quot;&gt;controller &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #cd3300; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TheSansMonoCd-W5Regular; mso-bidi-language: TE;&quot;&gt;&quot;Home&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #000088; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TheSansMonoCd-W5Regular; mso-bidi-language: TE;&quot;&gt;action &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #cd3300; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TheSansMonoCd-W5Regular; mso-bidi-language: TE;&quot;&gt;&quot;Index&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #000088; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TheSansMonoCd-W5Regular; mso-bidi-language: TE;&quot;&gt;id &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #000088; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TheSansMonoCd-W5Regular; mso-bidi-language: TE;&quot;&gt;UrlParameter&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #000088; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TheSansMonoCd-W5Regular; mso-bidi-language: TE;&quot;&gt;Optional &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;} &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #35586d; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TheSansMonoCd-W5RegularItalic; mso-bidi-language: TE;&quot;&gt;// Parameter defaults&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;In addition to providing a name and URL
pattern, this route also defines a set of default parameters to be used in the
event that the URL fits the route pattern, but doesn’t actually provide values
for every segment.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;For instance, &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;Table 1-1 &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;contains a list of URLs that match this route pattern,
along with corresponding values that the routing framework will provide for
each of them.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;Table 1-1. Values provided for
URLs that match our route pattern&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;URL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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; Controller &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Action
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;/auctions/auction/1234 &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;/i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 8pt;&quot;&gt;AuctionsController &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Auction &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1234&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;/auctions/recent &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 8pt;&quot;&gt;AuctionsController &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Recent&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;/auctions &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 8pt;&quot;&gt;AuctionsController&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
Index&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; 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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 8pt;&quot;&gt;HomeController&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  Index&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&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;&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: Verdana, sans-serif; font-size: 10pt;&quot;&gt;The first URL (&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;/auctions/auction/1234&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;) in the table is a perfect match
because it satisfies every segment of the route pattern, but as you continue
down the list and remove segments from the end of the URL, you begin to see
defaults filling in for values that are not provided by the URL.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&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;&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: Verdana, sans-serif; font-size: 10pt;&quot;&gt;This is a very
important example of how ASP.NET MVC leverages the concept of &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;convention over configuration&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;: when the application starts up,
ASP.NET MVC discovers all of the application’s controllers by searching through
the available assemblies for classes that implement the &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;System.Web.Mvc.IController
&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;interface (or
derive from a class that implements this interface, such as &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;System.Web.Mvc.Controller&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;) &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;and &lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;whose class names end with the suffix &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Controller&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&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;&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: Verdana, sans-serif; font-size: 10pt;&quot;&gt;When the routing
framework uses this list to figure out which controllers it has access to, it
chops off the &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Controller &lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;suffix from all of the controller class
names. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&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;&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: Verdana, sans-serif; font-size: 10pt;&quot;&gt;So, whenever you
need to refer to a controller, you do so by its shortened name, e.g., &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;AuctionsController &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;is referred to as &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Auctions&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;, and &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Home Controller &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;becomes &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Home&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-language: TE; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&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: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;What’s more, the controller
and action values in a route are not case-sensitive. This means that each of
these requests—&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka-Italic; mso-bidi-language: TE;&quot;&gt;/Auctions/Recent&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;, &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka-Italic; mso-bidi-language: TE;&quot;&gt;/auctions/Recent&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;, &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka-Italic; mso-bidi-language: TE;&quot;&gt;/auctions/recent&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;, or even &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka-Italic; mso-bidi-language: TE;&quot;&gt;/aucTionS/rEceNt—&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;will successfully resolve to the &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TheSansMonoCd-W5Regular; mso-bidi-language: TE;&quot;&gt;Recent &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;action
in the &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TheSansMonoCd-W5Regular; mso-bidi-language: TE;&quot;&gt;AuctionsController&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-language: TE; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&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: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;Note: URL route patterns are
relative to the application root, so they do not need to start with a forward
slash (&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka-Italic; mso-bidi-language: TE;&quot;&gt;/&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;) or a virtual path designator (&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka-Italic; mso-bidi-language: TE;&quot;&gt;~/&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-language: TE; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&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: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;Route patterns that include
these characters are invalid and will cause the routing system to throw an
exception.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-language: TE; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&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: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;As you may have noticed, URL
routes can contain a wealth of information that the routing engine is able to
extract. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-language: TE; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&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: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;In order to process an ASP.NET
MVC request, however, the routing engine must be able to determine two crucial
pieces of information: the &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka-Italic; mso-bidi-language: TE;&quot;&gt;controller &lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;and the &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka-Italic; mso-bidi-language: TE;&quot;&gt;action&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-language: TE; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&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: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Birka; mso-bidi-language: TE;&quot;&gt;The routing engine can then
pass these values to the ASP.NET MVC runtime to create and execute the
specified action of the appropriate controller.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/5903635470079702717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/07/routing-mvc-4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/5903635470079702717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/5903635470079702717'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/07/routing-mvc-4.html' title='Routing MVC 4 '/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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/AVvXsEhcoF2MW02_Qgha36OrPVldnXObRNarNr5oOR4yhkbqbxHjNNDffAagKgxMc_A_SMpACE01mAS1XVycOhAiDhWB-a74afI9DeAseKM74-sjqQATy0HlN1FaeShw0rJPkC_8S2j2he2DQW0/s72-c/mv1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1056396716722015836.post-4869190051072465940</id><published>2014-07-15T11:30:00.004-07:00</published><updated>2014-07-15T11:30:55.748-07:00</updated><title type='text'>Modifying our first MVC 4 Web Application</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
&lt;br /&gt;&lt;/h2&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
Apart from the generated code 
I’m just going to add some more pieces to this &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; Web 
Application. I will be publishing a full fledge ePhoneBook on ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; 4 
later. This sample code will help you to get more understanding on &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; 4. &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
The first thing I’m going to 
do is adding a PhoneBook Model class .&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img align=&quot;baseline&quot; alt=&quot;Adding MVC Model&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/AddingModel.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt; &lt;/div&gt;
&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;display: inline !important; float: none; font-family: verdana;&quot;&gt;I have changed the 
PhoneBookModel code as below,  &lt;/span&gt;&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt; &lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/phModel.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
In this class I have mentioned 
the validation attribute for the elements. The &lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;ValidationAttributes&lt;/strong&gt; are comes from&lt;code style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;System.ComponentModel.DataAnnotations&lt;/code&gt;. There 
are multiple validation attributes available and all are 
self-descriptive. &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/ValidationAttributeList.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;The 
above image shows the available validation attributes. Read &lt;/span&gt;More on &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.validationattribute.aspx&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Validation Attribute&lt;/a&gt; from MSDN. &lt;/div&gt;
&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;display: inline !important; float: none; font-family: verdana;&quot;&gt;Now let’s add required views 
(Create, Edit, Delete, Details, List), to add the views just right click on the 
View folder and click on Add --&amp;gt; Views menu.&lt;/span&gt;&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;  
&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/AddViewMenu.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Now 
I’m going to add the Listing view, I have given the View &lt;/span&gt;Name as “Index” 
and selected the &#39;create a strongly typed view&#39; Model from the Drop-down so that 
the code will be generated accordingly to the Model. If the created 
PhoneBookModel is not showing in the dropdown then build the application  and 
then check. &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img align=&quot;baseline&quot; alt=&quot;select typed model - view mvc&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/AddView_model.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt; &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Now 
we  can specify &lt;/span&gt;which scaffolding template to use so that the code will 
be generated as per the template , I have selected “List” template like 
below &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/AddView_scaffold.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;When 
you click on ‘OK’ button the Index.cshtml is ready.&lt;/span&gt; &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/List.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;The 
same way I have added all files for this sample project&lt;/span&gt; &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/ViewAll.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt; The details page looks like 
&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img align=&quot;baseline&quot; alt=&quot;&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/Details.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt; &lt;/div&gt;
&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;If you look at the code from 
Create template all validations are in place &lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/ViewCreate.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
Now we need to add Controller 
actions for these scaffolding items. &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/AddControllerMenu.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Click 
on the Add ---&amp;gt;Controller menu, once you have clicked &lt;/span&gt;on that menu 
then a popup will be shown like below , &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/AddControllerDialog.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;There are multiple controller 
templates available in this dialogue box &lt;/span&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; font-family: verdana; margin: 0px 0px 0px 40px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;ul style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 10px 0px; padding-bottom: 0px; padding-left: 40px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Empty &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; controller &lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; controller with read/write actions and 
views, using Entity Framework&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; controller with empty read/write 
actions &lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Empty 
API controller &lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;API 
controller with read/write actions and views, using Entity Framework&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;API 
controller with empty read/write actions &lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;I 
choosed “&lt;/span&gt;&lt;span class=&quot;search-highlight ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-family: verdana; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt;&lt;span class=&quot;Apple-converted-space ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;controller with empty 
read/write actions” controller template Now give the controller name as 
PhoneBookController. Note that &lt;/span&gt;&lt;span class=&quot;search-highlight ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-family: verdana; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt;&lt;span class=&quot;Apple-converted-space ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;requires the name of all 
controllers to end with &quot;Controller&quot;. &lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img align=&quot;baseline&quot; alt=&quot;&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/ControllerNaming.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
Click on “Add” button to add 
the controller to our application, now the controller file is created as per our 
template selection and added to our project, &lt;a href=&quot;http://www.codeproject.com/KB/aspnet/470107/NewController.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;click here&lt;/a&gt; to see the 
generated file&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
Now I’m going to modify the 
newly added controller file, the first thing I have added a property that will 
have a default values for the ePhoneBook &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img align=&quot;baseline&quot; alt=&quot;&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/ActionDflt.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;After that I have modified the 
Created method same as below, &lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img align=&quot;baseline&quot; alt=&quot;Create Action MVC&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/ActionCreate.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;If you see this method the 
return type is ActionResult,&lt;/span&gt;&lt;span class=&quot;Apple-converted-space ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt; &lt;/span&gt;&lt;strong class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: verdana; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;What’’s &lt;a class=&quot;anchor&quot; href=&quot;https://www.blogger.com/null&quot; name=&quot;25&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot; title=&quot;25&quot;&gt;ActionResult&lt;/a&gt;&lt;/strong&gt;&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;. An action result represents 
a command that the framework will perform on behalf of the action method. The 
ActionResult class is the base class for action results. It Encapsulates the 
result of an action method and is used to perform a framework-level operation on 
behalf of the action method. &lt;/span&gt;
&lt;br /&gt;
&lt;ul class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: verdana; margin: 10px 0px; padding-bottom: 0px; padding-left: 40px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;ContentResult &lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;EmptyResult &lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;FileResult&lt;/li&gt;
&lt;ul style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 10px 0px; padding-bottom: 0px; padding-left: 40px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;FileContentResult  &lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;FilePathResult &lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;FileStreamResult &lt;/li&gt;
&lt;/ul&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;HttpUnauthorizedResult&lt;/li&gt;
&lt;ul style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 10px 0px; padding-bottom: 0px; padding-left: 40px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;HttpUnauthorizedResult &lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;HttpNotFoundResult&lt;/li&gt;
&lt;/ul&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;JavaScriptResult &lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;JsonResult  &lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;RedirectResult &lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;RedirectToRouteResult &lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;ViewResultBase &lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;PartialViewResult&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;ViewResult  &lt;/li&gt;
&lt;/ul&gt;
&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt; Read more from&lt;/span&gt;&lt;span class=&quot;Apple-converted-space ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt; &lt;/span&gt;&lt;a class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; href=&quot;http://msdn.microsoft.com/en-us/library/system.web.mvc.actionresult(v=vs.108).aspx&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: verdana; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;MSDN&lt;/a&gt;&lt;a class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; href=&quot;http://msdn.microsoft.com/en-us/library/system.web.mvc.actionresult(v=vs.108).aspx&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: verdana; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot;&gt; &lt;/a&gt;&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;   &lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
 &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
lets come back to our 
application, The same way I have updated the Edit also &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/ActionEdit.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;display: inline !important; float: none; font-family: verdana;&quot;&gt;The above code will return the 
data for selected entry by the mobile number, Onceyou click on update button in 
edit page the below method will get called&lt;/span&gt;&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;  
&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/ActionEdit_1.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;display: inline !important; float: none; font-family: verdana;&quot;&gt;For the “Delete” method we 
don’t have any special User Interface that’s whyonce the entry is deleted we are 
returning the “Index”view.&lt;/span&gt;&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;  &lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img align=&quot;baseline&quot; alt=&quot;Delete Action MVC&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/ActionDelete.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;display: inline !important; float: none; font-family: verdana;&quot;&gt;The “Details” method is 
written as below &lt;/span&gt;&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt; &lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/ActionDetails.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;display: inline !important; float: none; font-family: verdana;&quot;&gt;The “Index” page will display 
the data from the below code &lt;/span&gt;&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt; &lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/ActionIndex.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img align=&quot;baseline&quot; alt=&quot;Layout menu mvc&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/PhoneBookMenu.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;display: inline !important; float: none; font-family: verdana;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt; 
&lt;/span&gt;
&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;display: inline !important; float: none; font-family: verdana;&quot;&gt;  I have added a menu for 
Phone Book in &lt;/span&gt;&lt;code class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;border: 0px; font-family: verdana; margin: 0px; padding: 0px;&quot;&gt;_Layout.cshtml&lt;/code&gt;&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;display: inline !important; float: none; font-family: verdana;&quot;&gt;. Once this all done let’s 
“Run” our modified application,  &lt;/span&gt;&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt; &lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/ScreenIndex.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;display: inline !important; float: none; font-family: verdana;&quot;&gt; When you click on the “Create 
New” the below page will be shown  &lt;/span&gt;&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt; &lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/ScreenCreate.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;display: inline !important; float: none; font-family: verdana;&quot;&gt; Edit page looks like below, 
all validations are working as per the validation attributesin 
model.     &lt;/span&gt;&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt; &lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/ScreenEdit.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/4869190051072465940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/07/modifying-our-first-mvc-4-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/4869190051072465940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/4869190051072465940'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/07/modifying-our-first-mvc-4-web.html' title='Modifying our first MVC 4 Web Application'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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-1056396716722015836.post-4657011194355597804</id><published>2014-07-15T11:29:00.002-07:00</published><updated>2014-07-15T11:29:46.105-07:00</updated><title type='text'>Running Our First MVC 4 Application</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
&lt;span style=&quot;border: 0px; font-size: small; margin: 0px; padding: 0px;&quot;&gt;Now 
we will run our newly created ePhoneBook application. We &lt;/span&gt;&lt;span style=&quot;border: 0px; font-size: small; margin: 0px; padding: 0px;&quot;&gt;can 
run this in debug mode or without debug. To run this go to the Menu &lt;/span&gt;&lt;span style=&quot;border: 0px; font-size: small; margin: 0px; padding: 0px;&quot;&gt;Debug 
--&amp;gt;Start Debugging/Start without debugging.&lt;/span&gt;&lt;/h2&gt;
&lt;h2 class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img align=&quot;baseline&quot; alt=&quot;F5 - run application&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/F5.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;You 
can also use the shortcut key F5 / Ctrl + F5 to run this &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;application&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;The 
run command is also there in the Standard Toolbar, the below given image shows 
the run toolbar in VS 2012 IDE.&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img align=&quot;baseline&quot; alt=&quot;F5 - running web application&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/F5_1.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;The 
below given image shows the run command in standard &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;toolbar 
of VS 2010&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img align=&quot;baseline&quot; alt=&quot;F5 - running web application&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/F5_2.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Once 
you have run the application you can see the below Home &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;page&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img align=&quot;baseline&quot; alt=&quot;First MVC 4 Web Application&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/Running1.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;If 
you want to debug your application then you need to set a break-point at the 
location where you want to hit the debugger.&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;To 
set breakpoints just go to the menu Debug --&amp;gt;Toggle &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Breakpoint.&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img align=&quot;baseline&quot; alt=&quot;visual studio - break point&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/F9.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;You 
can use the shortcut key F9 also for the same. &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;you 
might want to note the short keys for Step Into (F11) and Step Over 
(F10). &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Once 
you hit the breakpoint you can resume debugging by pressing F5.&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;To 
demonstrate the debugging I have placed two breakpoints, one in Home Controller 
– About() and About.cshtml. When I clicked on About Menu &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;the 
first break point got hit.&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/debugging.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;You 
can Step Over by F10 or just resume to the next&lt;/span&gt; &lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;breakpoint 
by F5. I pressed F5 and the second breakpoint got hit.&lt;/span&gt;    
&lt;/span&gt;&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img align=&quot;baseline&quot; alt=&quot;debugging MVC 4 Web Application&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/debugging_1.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt; &lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;If 
you want see the value then you can see in watch window and also there are other 
windows too&lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;, 
to add a object to Watch Window, select the required object and 
right &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;click 
and click on AddWatch.&lt;/span&gt;    
&lt;/span&gt;&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img align=&quot;baseline&quot; alt=&quot;Add Watch - visual studio&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/AddWatch.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Once 
you have placed the object in Watch window you can see &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;the 
current value in that window&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/WatchWindow.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;If 
you resume your breakpoints you can see the About page in &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;action,&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img align=&quot;baseline&quot; alt=&quot;MVC 4 Url routing&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/AboutURL.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Have 
you noticed that the url is very user friendly with no &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;extensions 
and all. The ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; routing takes care of this URL 
routing.&lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt; Read more on routing on &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/cc668201.aspx&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;MSDN&lt;/a&gt;. &lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;To 
stop debugging you need to press Shift + F5 or go to the &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Debug 
menu and click on Stop Debugging.&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img align=&quot;baseline&quot; alt=&quot;stop debugging - visual studio&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/stopDebugging.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Stopping 
Debugging from the standard toolbar&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/stopDebugging_1.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;If 
you want to make any changes while debugging then you can &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;edit 
and continue the application, if that option is enabled. to check 
this &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;option 
is enabled or not, go to Tools-&amp;gt;Options then&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/EditAndContinue.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;In 
ASP.&lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt;, Layout is used to give similar look and feel 
for&lt;/span&gt; &lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;the 
entire application this was called master page in ASP.NET Web forms. Below given 
the Layout page in our application,&lt;/span&gt; 
&lt;/span&gt;&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/masterpage.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;You 
can see that the Menus like Home, About Contact was&lt;/span&gt; &lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;shown 
from this Layout. So how this page is called? &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;So 
where the content page is placed, it’s simple, the&lt;/span&gt; &lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;code style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;@RenderBody&lt;/code&gt; mentioned that the content page will 
be &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;displayed 
in that area.&lt;/span&gt; &lt;/span&gt;&lt;/h2&gt;
&lt;h2 class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img align=&quot;baseline&quot; alt=&quot;Content place holder asp.net mvc layout master page&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/RenderBody.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;This 
Layout can be mentioned in individual views or in &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;code style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;_viewstart&lt;/code&gt; file. The ViewStart file called the Layout 
in below syntax,&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/viewstart.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;While 
debugging our application we have noticed something &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;named &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.web.mvc.controllerbase.viewbag(v=vs.98).aspx&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;ViewBag&lt;/a&gt;. It&#39;s a dynamic data dictionary.&lt;/span&gt; 
&lt;/span&gt;&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/ViewBag.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;As 
we have used Internet Application Project template the&lt;/span&gt; &lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;code 
is generated with &lt;/span&gt;&lt;span style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Membership management&lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;. 
Let’s have a look into that.&lt;/span&gt; &lt;/span&gt;&lt;/h2&gt;
&lt;br /&gt;
&lt;h2 class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;  &lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Now 
I’m going to create a User named Shemeer using the&lt;/span&gt; &lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Register 
link.&lt;/span&gt;&lt;span style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt; &lt;/span&gt;    

&lt;/span&gt;&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/Register.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;If 
you want you can place a breakpoint on&lt;/span&gt; &lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;AccountController’s 
register action. When I click ‘Register’ Button it reaches the &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;code style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;WebSecurity.CreateUserAndAccount()&lt;/code&gt;.&lt;/span&gt;    

&lt;/span&gt;&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img align=&quot;baseline&quot; alt=&quot;membership creation mvc&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/membershipcreation.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt; &lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;This 
method saves my credential to the&lt;code style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt; aspnet*&lt;/code&gt; database. &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Wondering &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;J &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;this 
database was created automatically as part of memebership management 
and &lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;this 
database by default resides under the &lt;code style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;App_Data&lt;/code&gt; folder.&lt;/span&gt;&lt;span style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt; &lt;/span&gt;    

&lt;/span&gt;&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/aspnetdb.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;And 
the connection string has been created inside the&lt;/span&gt; &lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;web.config 
also&lt;/span&gt;    
&lt;/span&gt;&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img align=&quot;baseline&quot; alt=&quot;aspnet db con str&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/aspnetdbConstr.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt; &lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Now 
I&#39;m trying to login using the Login page&lt;/span&gt; 
&lt;/span&gt;&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/Login.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;I’m 
able to login and my user name is showing in right top&lt;/span&gt; &lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;corner 
as logged in&lt;/span&gt;    
&lt;/span&gt;&lt;div&gt;
  &lt;span style=&quot;font-size: small;&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/loggedinuser.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span id=&quot;ms-rterangecursor-end&quot;&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/4657011194355597804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/07/running-our-first-mvc-4-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/4657011194355597804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/4657011194355597804'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/07/running-our-first-mvc-4-application.html' title='Running Our First MVC 4 Application'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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-1056396716722015836.post-2742237327554677202</id><published>2014-07-15T11:28:00.000-07:00</published><updated>2014-07-15T11:28:00.970-07:00</updated><title type='text'>MVC -4 View Engine</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;ms-rteForeColor-2&quot; style=&quot;font-family: verdana; font-size: 16pt;&quot;&gt;
&lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/strong&gt;&lt;a class=&quot;anchor&quot; href=&quot;https://www.blogger.com/null&quot; name=&quot;11&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot; title=&quot;11&quot;&gt;&lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span id=&quot;ms-rterangecursor-start&quot;&gt;&lt;/span&gt;What&#39;s a View Engine?&lt;/strong&gt; &lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;a href=&quot;http://www.codeproject.com/Articles/467850/ASP-NET-MVC-view-engines&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;View Engine&lt;/a&gt; are responsible for rendering the HTML from your 
views to the browser. The view engine template will have different syntax for 
implementation. Currently there are few number of view engines available 
for &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; and 
the top four view engines are Razor, traditional ASPX, Spark and NHaml. I have 
written another article on &lt;a href=&quot;http://www.codeproject.com/Articles/467850/ASP-NET-MVC-view-engines&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;comparison of different view engines&lt;/a&gt;.  &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
Razor is the preferred View 
Engine for &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt;, ASPX View Engine is the legacy View Engine 
and this option is there for backward compatibility. &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img align=&quot;baseline&quot; alt=&quot;MVC View Engine&quot; border=&quot;0&quot; hspace=&quot;0&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/ViewEngine.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: 116px; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; width=&quot;276&quot; /&gt; &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
I will be explaining more 
about Razor on another article.  &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
Once you click &#39;OK&#39; after 
selecting the appropriate project template Visual Studio will create a &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; Web 
Application project with default files and folders as per the Template 
Selection.&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/5.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
If look at the visual studio 
status bar you can see that the project creation progress and the files adding 
to the project. ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; 4 
project template is using Nuget Package Manager to install and manage the 
assembly references in your application. the below files in status bar adding by 
Nuget.  &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/6.gif&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
Package.Config File contains 
the list of the Nuget Package used in this project. &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; setheight=&quot;771&quot; setwidth=&quot;1034&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/package.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: 771px; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 1034px;&quot; width=&quot;884&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
Now Visual Studio created our 
project in place and the solution file looks like ,&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img align=&quot;baseline&quot; alt=&quot;MVC Web Application&quot; border=&quot;0&quot; hspace=&quot;0&quot; setheight=&quot;605&quot; setwidth=&quot;241&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/ePhoneBook.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
&lt;span id=&quot;ms-rterangecursor-start&quot;&gt;&lt;/span&gt;I have explained the Project 
Items/ Application folder structure  in another article, before continuing with 
our newly created project I just wanted to explain the Project Templates. 
 &lt;/div&gt;
&lt;h2 class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
&lt;a class=&quot;anchor&quot; href=&quot;https://www.blogger.com/null&quot; name=&quot;13&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot; title=&quot;13&quot;&gt;&lt;span class=&quot;ms-rteFontSize-4 ms-rteThemeForeColor-6-0&quot;&gt;Project 
Templates&lt;/span&gt;&lt;strong&gt;  &lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/h2&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
Currently &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; 4 
Application in Visual Studio 2010 and Visual Studio 2012 offers 6 different 
types of project templates. (Previously it was 7 but the final version of &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; 4 
doesn&#39;t shipped with &lt;a href=&quot;http://www.asp.net/single-page-application&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;ASP.NET Single Page Application&quot;&gt;ASP.NET Single 
Page Application&lt;/a&gt; due to some compatibility) &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
&lt;img alt=&quot;&quot; setheight=&quot;122&quot; setwidth=&quot;575&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/Templates.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: 122px; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; width=&quot;575&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
I will be explaining the 
Basic, Empty, Internet Application, Intranet Application, Mobile Application and 
Web API project templates here.  &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
&lt;img alt=&quot;&quot; class=&quot;ms-rteThemeForeColor-9-5&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/TemplateIcon.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-size: 16pt; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;strong class=&quot;ms-rteThemeForeColor-9-5&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-size: 16pt; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Empty&lt;/strong&gt;&lt;span class=&quot;ms-rteThemeForeColor-9-5&quot; style=&quot;font-size: 16pt;&quot;&gt; &lt;/span&gt; &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
The Empty template created the 
minimum references and resources required to run an Asp.net &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; application.As you can see  in below image, 
 Models, Controllers, App_Data are completely empty folders and View folder only 
contains web.config and a Global.asax file and web.config.App_Start folder 
contains 3 configuration files ( FilterConfig.cs, RouteConfige.cs and 
WebApiConfig.cs ). &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/Empty.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt; &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
This option will be good if 
you plan to create everything from scratch. &lt;/div&gt;
&lt;div class=&quot;ms-rteForeColor-10&quot; style=&quot;font-size: 16pt;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/TemplateIcon.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/strong&gt;&lt;a class=&quot;anchor&quot; href=&quot;https://www.blogger.com/null&quot; name=&quot;15&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot; title=&quot;15&quot;&gt;&lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Basic&lt;/strong&gt; &lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
After comparing the Empty 
project image and Basic project image we can say that The Basic template is 
somewhat similar to Empty template. In addition to the Empty project , Content , 
Script folder are present in this template and Shared folder is present inside 
Views and also in App_Start folder apart from the three files in empty template, 
basic template added one more file named BundleConfig.cs (Bundling and 
minimization).  &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/Basic.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
Same like Empty Template,this 
option also good if you plan to create everything from scratch. &lt;/div&gt;
&lt;div class=&quot;ms-rteThemeForeColor-7-5&quot; style=&quot;font-size: 16pt;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/TemplateIcon.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Internet Application &lt;/strong&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
The Internet Application 
extends Basic Template with two controllers( Account controller and Home 
controller)  with all the logic and functionality implemented in actions and 
views. In this template membership management functionality gives the option to 
user to register and login, change password etc in the website. &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/Internet.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
It&#39;s a template used usually 
to start a normal web project in action. &lt;/div&gt;
&lt;div class=&quot;ms-rteForeColor-8&quot; style=&quot;font-size: 16pt;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/TemplateIcon.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Intranet Application &lt;/strong&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
The Intranet Application 
template is same like the Internet Application template, except that it is 
preconfigured to use Windows-based authentication. &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/Intranet.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
This template will be a good 
option if you plan to create an intranet web site. &lt;/div&gt;
&lt;div class=&quot;ms-rteForeColor-1&quot; style=&quot;font-size: 16pt;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/TemplateIcon.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Mobile Application &lt;/strong&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
The Mobile Application 
template is another variation of the Internet Application template. This 
template, however, is optimized for mobile devices and includes the jQuery 
Mobile JavaScript framework and views that apply the HTML that works best with 
jQuery Mobile. &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/Mobile.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
If you plan to target touch 
based mobile devices then this template is the right option. &lt;/div&gt;
&lt;div class=&quot;ms-rteForeColor-2&quot; style=&quot;font-size: 16pt;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/TemplateIcon.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/strong&gt;&lt;a class=&quot;anchor&quot; href=&quot;https://www.blogger.com/null&quot; name=&quot;19&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot; title=&quot;19&quot;&gt;&lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Web 
API&lt;/strong&gt; &lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
The Web API template is yet 
another variation of the Internet Application template that includes a 
preconfigured Web API controller.ASP.NET Web API is a framework that makes it 
easy to build HTTP services that reach a broad range of clients, including 
browsers and mobile devices. ASP.NET Web API is an ideal platform for building 
RESTful applications on the .NET Framework. &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/WebAPI.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
Web API is a great choice for 
quickly and easily creating data services that your AJAX-enabled applications 
can easily consume. &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
If we want to create a &lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Test project&lt;/strong&gt; while creating the &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; project itself then we need to mark the 
Create Unit Test Project Check box. If you don&#39;t want to do this at the first 
time you can add a unit test project later also. &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/WithTestProj.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt; &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
If we are creating &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; Application with Test project then the 
solution explorer will look like below . &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/TestProjSln.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;span style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-weight: 600; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/2742237327554677202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/07/mvc-4-view-engine.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/2742237327554677202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/2742237327554677202'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/07/mvc-4-view-engine.html' title='MVC -4 View Engine'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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-1056396716722015836.post-7278532063611077099</id><published>2014-07-15T11:25:00.001-07:00</published><updated>2014-07-15T11:25:33.270-07:00</updated><title type='text'>Creating MVC 4 Application </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 class=&quot;ms-rteFontSize-4 ms-rteForeColor-1&quot; style=&quot;font-family: verdana; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px; text-align: center;&quot;&gt;
&lt;a class=&quot;anchor&quot; href=&quot;https://www.blogger.com/null&quot; name=&quot;10&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot; title=&quot;10&quot;&gt;&lt;span id=&quot;ms-rterangecursor-start&quot;&gt;&lt;/span&gt;Creating 
an ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; Application – myPhoneBook&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
In this article all screen 
shots are based out of Visual Studio 2012 but If you are using Visual Studio 
2010 then you will find similar UIs there too.To Create a new &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; 4 
application we need to click on &#39;New Project&#39; menu. &#39;New Project&#39; menu can be 
accessed from the start page itself or File --&amp;gt; New --&amp;gt; Project 
menu. &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
The below given image shows 
how to create a New Project from start page.  &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/1.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
Creating New Project from File 
--&amp;gt;New --&amp;gt;Project. &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/2.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
Clicking on New Project menu 
will show a popup for selecting the required type of Project from the installed 
templates list. We can create Windows Application or normal ASP.NET Web 
Application etc using this popup but now we are more interested to create a new 
ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; 4 Web 
Application from scratch. &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/3.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
Give a proper name for this 
new &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; 4 
application and click &#39;OK&#39; button. I have given &#39;ePhoneBook&#39; name as I&#39;m going 
to use this project for all my &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; 4 
series.  &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
When you click &#39;OK&#39;, you’ll be 
presented with another dialog with Project Templates &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/4.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
Select appropriate Project 
Template (discussed in another section), &lt;a href=&quot;http://www.codeproject.com/Articles/467850/ASP-NET-MVC-view-engines&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;View Engine&lt;/a&gt; and also 
if you want you can opt for creating a Test Project for this application. You 
can create a test project later also if you don&#39;t want to do right now. I have 
selected the Internet Application with Razor View Engine.&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/7278532063611077099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/07/creating-mvc-4-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/7278532063611077099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/7278532063611077099'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/07/creating-mvc-4-application.html' title='Creating MVC 4 Application '/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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-1056396716722015836.post-1273721943346032265</id><published>2014-07-15T11:23:00.001-07:00</published><updated>2014-07-15T11:23:13.684-07:00</updated><title type='text'>MVC 4 Introduction</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 class=&quot;ms-rteThemeForeColor-6-0 ms-rteFontSize-3&quot; style=&quot;font-family: verdana; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
&lt;a class=&quot;anchor&quot; href=&quot;https://www.blogger.com/null&quot; name=&quot;1&quot; style=&quot;border: 0px; font-size: 16pt; margin: 0px; padding: 0px;&quot; title=&quot;1&quot;&gt;&lt;strong&gt;&lt;span id=&quot;ms-rterangecursor-start&quot;&gt;&lt;/span&gt;Introduction&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;    &lt;/span&gt; &lt;/strong&gt;&lt;/h2&gt;
&lt;ul class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;li&gt;
&lt;div&gt;
ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; 4 is 
a framework for building scalable, standards-based web applicationsusing 
well-established design patterns and the power of ASP.NET and the .NET 
Framework.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;
In this article I will give an introduction to ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; 4 
from a &lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;beginner’s &lt;/strong&gt;perspective.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;
This article is meant for all kind of beginner users who wanted to get 
started with ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; 4.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;
I have included a small comparison between ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; and 
ASP.NET Web forms for those who have already explored ASP.NET Web 
forms &lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;
Currently ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; 4 is 
supported in Visual Studio 2010 and Visual Studio 2012, previous versions of 
Visual Studio does not support ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; 4 as 
of now. &lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;
If you don’t have ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; 4 in 
your box then install &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; 4 for 
Visual Studio 2010 or else use Visual Studio 2012 to get started with this 
article&amp;nbsp;. &lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
&lt;a class=&quot;anchor&quot; href=&quot;https://www.blogger.com/null&quot; name=&quot;2&quot; style=&quot;border: 0px; font-size: 16pt; margin: 0px; padding: 0px;&quot; title=&quot;2&quot;&gt;What is ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt;?&lt;/a&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt; &lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/h2&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
ASP.NET supports three 
different development models named Web Pages, &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; and 
Web Forms.&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
 &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/ASPNETTYPES.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana; text-align: justify;&quot;&gt;
ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; is a 
web application development framework built on top of Microsoft’s .NET 
Framework. ASP.NET Web Form was a replacement for Microsoft’s &lt;a href=&quot;http://en.wikipedia.org/wiki/Active_Server_Pages&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Active 
Server Pages&lt;/a&gt; (ASP) but ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; is 
not a replacement for ASP.NET Web Forms and it’s just an alternate way of making 
an ASP.NET website.&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana; text-align: justify;&quot;&gt;
&lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; margin: 0px; padding: 0px;&quot;&gt;MVC&lt;/span&gt; is 
open source&lt;/strong&gt;!- In March 2012, Scott Guthrie announced on his blog that 
Microsoft had released part of their web stack (including ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt;, Razor and Web API) under an open source 
license (Apache License 2.0).&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana; text-align: justify;&quot;&gt;
Download from &lt;a href=&quot;http://aspnetwebstack.codeplex.com/&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Codeplex.com&lt;/a&gt; &lt;/div&gt;
&lt;h2 class=&quot;ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana; font-size: 16pt; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
&lt;a class=&quot;anchor ms-rteForeColor-10&quot; href=&quot;https://www.blogger.com/null&quot; name=&quot;3&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot; title=&quot;3&quot;&gt;Why &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt;?&lt;/a&gt;&lt;span class=&quot;ms-rteForeColor-10&quot;&gt; &lt;/span&gt; &lt;/h2&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana; text-align: justify;&quot;&gt;
ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; helps 
to reduce the complexity of the web application by dividing an application into 
three layers, Model, View and Controller. This separation (loose coupling) helps 
in some long term benefits like isolation of components while development and 
also this separation provides better support for test-driven development (TDD). 
ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt;web site are good in performance and also easy 
to maintain. &lt;/div&gt;
&lt;h2 class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
&lt;a class=&quot;anchor ms-rteThemeForeColor-9-0&quot; href=&quot;https://www.blogger.com/null&quot; name=&quot;4&quot; style=&quot;border: 0px; font-size: 16pt; margin: 0px; padding: 0px;&quot; title=&quot;4&quot;&gt;&lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; Release History &lt;/a&gt;&lt;span class=&quot;ms-rteThemeForeColor-9-0&quot;&gt; &lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/h2&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
The Current Version of 
ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; is 4 
and it was released on 15&lt;sup style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;th&lt;/sup&gt; Aug 2012. ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; 4 is 
packaged with Visual Studio 2012 and &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; 4 can 
be installed for Visual Studio 2010. Below I have mentioned the release history 
of ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt;.   &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
 &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; class=&quot;ms-rteTable-default&quot; style=&quot;font-size: 1em; width: 600px;&quot;&gt;
&lt;tbody&gt;
&lt;tr class=&quot;ms-rteTableHeaderRow-default ms-rteThemeBackColor-6-5 ms-rteThemeForeColor-1-0&quot;&gt;
&lt;th class=&quot;ms-rteTableHeaderFirstCol-default ms-rteThemeBackColor-6-5 ms-rteThemeForeColor-1-0&quot; colspan=&quot;1&quot; rowspan=&quot;1&quot; style=&quot;width: 150px;&quot;&gt;​DATE&lt;/th&gt;
&lt;th class=&quot;ms-rteTableHeaderOddCol-default ms-rteThemeBackColor-6-5 ms-rteThemeForeColor-1-0&quot; colspan=&quot;1&quot; rowspan=&quot;1&quot; style=&quot;width: 280px;&quot;&gt;​VERSION&lt;/th&gt;&lt;/tr&gt;
&lt;tr class=&quot;ms-rteTableOddRow-default&quot;&gt;
&lt;th class=&quot;ms-rteTableFirstCol-default&quot; colspan=&quot;1&quot; rowspan=&quot;1&quot; style=&quot;width: 150px;&quot;&gt;10 Dec 07 ​&lt;/th&gt;
&lt;td class=&quot;ms-rteTableOddCol-default&quot; style=&quot;width: 280px;&quot;&gt;​ASP.NET MVC 
CTP&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;ms-rteTableEvenRow-default&quot;&gt;
&lt;th class=&quot;ms-rteTableFirstCol-default&quot; colspan=&quot;1&quot; rowspan=&quot;1&quot; style=&quot;width: 150px;&quot;&gt;​13 Mar 09&lt;/th&gt;
&lt;td class=&quot;ms-rteTableOddCol-default&quot; style=&quot;width: 280px;&quot;&gt;ASP.NET MVC 
1.0​&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;ms-rteTableOddRow-default&quot;&gt;
&lt;th class=&quot;ms-rteTableFirstCol-default&quot; colspan=&quot;1&quot; rowspan=&quot;1&quot; style=&quot;width: 150px;&quot;&gt;​16 Dec 09&lt;/th&gt;
&lt;td class=&quot;ms-rteTableOddCol-default&quot; style=&quot;width: 280px;&quot;&gt;​ASP.NET MVC 2 
RC&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;ms-rteTableEvenRow-default&quot;&gt;
&lt;th class=&quot;ms-rteTableFirstCol-default&quot; colspan=&quot;1&quot; rowspan=&quot;1&quot; style=&quot;width: 150px;&quot;&gt;​04 Feb 10&lt;/th&gt;
&lt;td class=&quot;ms-rteTableOddCol-default&quot; style=&quot;width: 280px;&quot;&gt;​ASP.NET MVC 2 RC 
2&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;ms-rteTableOddRow-default&quot;&gt;
&lt;th class=&quot;ms-rteTableFirstCol-default&quot; colspan=&quot;1&quot; rowspan=&quot;1&quot; style=&quot;width: 150px;&quot;&gt;​10 Mar 10&lt;/th&gt;
&lt;td class=&quot;ms-rteTableOddCol-default&quot; style=&quot;width: 280px;&quot;&gt;​ASP.NET MVC 2 
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;ms-rteTableEvenRow-default&quot;&gt;
&lt;th class=&quot;ms-rteTableFirstCol-default&quot; colspan=&quot;1&quot; rowspan=&quot;1&quot; style=&quot;width: 150px;&quot;&gt;​06 Oct 10&lt;/th&gt;
&lt;td class=&quot;ms-rteTableOddCol-default&quot; style=&quot;width: 280px;&quot;&gt;​ASP.NET MVC 3 
Beta&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;ms-rteTableOddRow-default&quot;&gt;
&lt;th class=&quot;ms-rteTableFirstCol-default&quot; colspan=&quot;1&quot; rowspan=&quot;1&quot; style=&quot;width: 150px;&quot;&gt;​09 Nov 10&lt;/th&gt;
&lt;td class=&quot;ms-rteTableOddCol-default&quot; style=&quot;width: 280px;&quot;&gt;​ASP.NET MVC 3 
RC&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;ms-rteTableEvenRow-default&quot;&gt;
&lt;th class=&quot;ms-rteTableFirstCol-default&quot; colspan=&quot;1&quot; rowspan=&quot;1&quot; style=&quot;width: 150px;&quot;&gt;​10 Dec 10&lt;/th&gt;
&lt;td class=&quot;ms-rteTableOddCol-default&quot; style=&quot;width: 280px;&quot;&gt;​ASP.NET MVC 3 RC 
2&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;ms-rteTableOddRow-default&quot;&gt;
&lt;th class=&quot;ms-rteTableFirstCol-default&quot; colspan=&quot;1&quot; rowspan=&quot;1&quot; style=&quot;width: 150px;&quot;&gt;13 Jan 11​&lt;/th&gt;
&lt;td class=&quot;ms-rteTableOddCol-default&quot; style=&quot;width: 280px;&quot;&gt;ASP.NET MVC 
3 &lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;ms-rteTableEvenRow-default&quot;&gt;
&lt;th class=&quot;ms-rteTableFirstCol-default&quot; colspan=&quot;1&quot; rowspan=&quot;1&quot; style=&quot;width: 150px;&quot;&gt;​20 Sep 11&lt;/th&gt;
&lt;td class=&quot;ms-rteTableOddCol-default&quot; rowspan=&quot;1&quot; style=&quot;width: 280px;&quot;&gt;ASP.NET MVC 4 
Developers Preview​&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;ms-rteTableOddRow-default&quot;&gt;
&lt;th class=&quot;ms-rteTableFirstCol-default&quot; colspan=&quot;1&quot; rowspan=&quot;1&quot; style=&quot;width: 150px;&quot;&gt;​15 Feb 12&lt;/th&gt;
&lt;td class=&quot;ms-rteTableOddCol-default&quot; rowspan=&quot;1&quot; style=&quot;width: 280px;&quot;&gt;​ASP.NET MVC 
4 Beta&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;ms-rteTableEvenRow-default&quot;&gt;
&lt;th class=&quot;ms-rteTableFirstCol-default&quot; colspan=&quot;1&quot; rowspan=&quot;1&quot; style=&quot;width: 150px;&quot;&gt;​31 May 12&lt;/th&gt;
&lt;td class=&quot;ms-rteTableOddCol-default&quot; rowspan=&quot;1&quot; style=&quot;width: 280px;&quot;&gt;​ASP.NET MVC 
4 RC&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;ms-rteTableFooterRow-default&quot;&gt;
&lt;th class=&quot;ms-rteTableFooterFirstCol-default&quot; colspan=&quot;1&quot; rowspan=&quot;1&quot; style=&quot;width: 150px;&quot;&gt;​15 AUG 12&lt;/th&gt;
&lt;td class=&quot;ms-rteTableFooterOddCol-default&quot; rowspan=&quot;1&quot; style=&quot;width: 280px;&quot;&gt;​ASP.NET MVC 4&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
In this article we are 
discussing more about the latest version of &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt;, that&#39;s &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; 4. 
Read more from &lt;a href=&quot;http://en.wikipedia.org/wiki/ASP.NET_MVC_Framework#Release_history&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot; target=&quot;_blank&quot;&gt;Wikipedia&lt;/a&gt; on&lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; Release History.  &lt;/div&gt;
&lt;div class=&quot;ms-rteForeColor-1&quot; style=&quot;font-family: verdana; font-size: 16pt;&quot;&gt;
&lt;span class=&quot;ms-rteFontSize-1&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-weight: 600; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div class=&quot;ms-rteForeColor-1&quot; style=&quot;font-family: verdana; font-size: 16pt;&quot;&gt;
&lt;span style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-weight: 600; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; margin: 0px; padding: 0px;&quot;&gt;MVC&lt;/span&gt; Architecture &lt;/span&gt; &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
The Model-View-Controller 
(&lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt;) pattern is an architectural design principle 
that separates the application components of a Web application into three 
layers. This separation gives you more control over the individual parts of the 
application, which lets you more easily develop, modify, and test them.&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; setheight=&quot;303&quot; setwidth=&quot;458&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/MVC_Architecture.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: auto; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteForeColor-9&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/strong&gt;&lt;a class=&quot;anchor&quot; href=&quot;https://www.blogger.com/null&quot; name=&quot;6&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot; title=&quot;6&quot;&gt;&lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;The 
Model&lt;/strong&gt; &lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
Model contains and exposes the 
properties and application logic  In a better way we can say that The model 
represents core business logic and data. In the ePhoneBook Sample the 
&#39;PhoneBookModel&#39; class represents the properties of a “Phone Book” in the 
application and may expose properties such as First Name,  Last Name and Mobile 
Number etc and also it may expose methods.    &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/strong&gt;&lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteForeColor-9&quot;&gt;
&lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/strong&gt;&lt;a class=&quot;anchor&quot; href=&quot;https://www.blogger.com/null&quot; name=&quot;6&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot; title=&quot;6&quot;&gt;&lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;The 
View&lt;/strong&gt;&lt;/a&gt;&lt;a class=&quot;anchor&quot; href=&quot;https://www.blogger.com/null&quot; name=&quot;7&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot; title=&quot;7&quot;&gt; &lt;/a&gt;&lt;/div&gt;
&lt;/strong&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
The View is responsible for 
creating the response HTML or any responses back to the browser like pdf, html 
or excel etc. In other way we can sat that the view is responsible for 
transforming a model or models into a visual representation.  &lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/strong&gt;&lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteForeColor-9&quot;&gt;
&lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/strong&gt;&lt;strong style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;The&lt;/strong&gt;&lt;a class=&quot;anchor&quot; href=&quot;https://www.blogger.com/null&quot; name=&quot;8&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot; title=&quot;8&quot;&gt; Controller  &lt;/a&gt;&lt;/div&gt;
&lt;/strong&gt;&lt;/div&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
Controller is responsible for 
processing user inputs from view and give responses back to the view. It means 
that the controller decides the action and performs the tasks/logic based on the 
parameters.Controller acts as the coordinator between the view and the 
model. &lt;/div&gt;
&lt;h2 class=&quot;ms-rteForeColor-1&quot; style=&quot;font-family: verdana; font-size: 16pt; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
&lt;a class=&quot;anchor&quot; href=&quot;https://www.blogger.com/null&quot; name=&quot;9&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot; title=&quot;9&quot;&gt;Comparing ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; with 
ASP.NET Web Forms&lt;/a&gt; &lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;display: inline !important; float: none; font-family: verdana;&quot;&gt;If you have already worked 
with ASP.NET Web forms then you might be interested to see some comparisons 
between these two.&lt;/span&gt;&lt;span class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt; &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
The main thing is that both 
ASP.NET Web form and ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; are 
built on top of ASP.NET Framework. &lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
There are some similarities 
and differences between these two. &lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
ASP.NET Web forms web 
development is very easy compared to ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; apps. 
and Web forms doesn&#39;t require a developer to be an expert in JavaScript and HTML 
to write a web application but ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; is 
full of scripting technologies and it requires a good command over scripting 
technologies. &lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
ASP.NET Web form is very rich 
with server controls but in ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; there 
are no server controls supported and its fully depend on HTML controls. If you 
look at the below image you can see that no server controls are present in the 
toolbox. &lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
&lt;img alt=&quot;&quot; setheight=&quot;796&quot; setwidth=&quot;1085&quot; src=&quot;http://www.codeproject.com/KB/aspnet/470107/noserverctrl.png&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; height: 796px; margin: 0px; overflow: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 1085px;&quot; width=&quot;849&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
There is no View State in 
ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt;. we can use &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.web.mvc.htmlhelper(v=vs.108).aspx&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;HtmlHelpers&lt;/a&gt; in ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; for 
rendering HTML controls in a view. &lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; is 
based on &lt;a href=&quot;http://en.wikipedia.org/wiki/Separation_of_concerns&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Separation Of Concerns&lt;/a&gt; that&#39;s why ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; is 
pluggable and flexible system. &lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
Implementing Test projects 
with ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; is 
simple than Web forms. &lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; request cycle is very simpler than Web forms 
and &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; gives 
a good performance.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
 In my opinion I feel for a 
Web form developer, ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; is 
difficult to learn and understand as its much into coding not much drag and drop 
but once its fully understood then its very easy. &lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
Layout page is the Master page 
available in ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; and 
partial views can be considered as a replacement of user control in Web 
form. &lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
Web form uses 
normal Web-form syntax where as &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; app 
uses customizable syntax default to Razor.   &lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class=&quot;ms-rteFontSize-3 ms-rteThemeForeColor-2-0&quot; style=&quot;font-family: verdana;&quot;&gt;
There are many more 
similarities and differences, Once you start writing code with ASP.NET &lt;span class=&quot;search-highlight&quot; style=&quot;border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-weight: bold; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;MVC&lt;/span&gt; you 
will learn more. &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;span id=&quot;ms-rterangecursor-end&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/1273721943346032265/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/07/mvc-4-introduction.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/1273721943346032265'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/1273721943346032265'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/07/mvc-4-introduction.html' title='MVC 4 Introduction'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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-1056396716722015836.post-3593038408131134700</id><published>2014-06-03T00:41:00.001-07:00</published><updated>2014-06-03T00:41:06.429-07:00</updated><title type='text'>Creating a New ASP.NET MVC Project</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We are going to start by creating a new MVC project in Visual Studio. Select New Project from the File&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;menu to open the New Project dialog. If you select the Web templates, you’ll see that the MVC 3 installer&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;has created a new item called ASP.NET MVC 3 Web Application, as shown in Figure 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&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/AVvXsEhLS4z2_eFC4iXg8dRm_1tBOogN7Hq8eTnOjcaUJHrkkf-aArPR1owxCyzsKtIiDk4YsM0nJ8wkhl3rS_6bNTcT0TUlJPRUnXAC636lXqh3C3vwwAGY_r_y9YylafpUqi4n6b5fzPe1Nfo/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLS4z2_eFC4iXg8dRm_1tBOogN7Hq8eTnOjcaUJHrkkf-aArPR1owxCyzsKtIiDk4YsM0nJ8wkhl3rS_6bNTcT0TUlJPRUnXAC636lXqh3C3vwwAGY_r_y9YylafpUqi4n6b5fzPe1Nfo/s1600/1.jpg&quot; height=&quot;472&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Set the name of the new project to PartyInvites and click the OK button to continue. You will see&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;another dialog box, shown in Figure 2, which asks you to choose between three different types of MVC&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;project templates.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&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/AVvXsEixk3CthTms0mTLcKtD3L-FizapnkfgSUyGaml77-Vl3cgjqxMFqUeL6r5OcB8PEO0uvjmpfNGxUlMyUIQLLZV3xN9paH54YJz7IiFqz7z9zwLS3kv6v8uU1mZ5dz9en9hdsMy-L8FuQ9I/s1600/2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixk3CthTms0mTLcKtD3L-FizapnkfgSUyGaml77-Vl3cgjqxMFqUeL6r5OcB8PEO0uvjmpfNGxUlMyUIQLLZV3xN9paH54YJz7IiFqz7z9zwLS3kv6v8uU1mZ5dz9en9hdsMy-L8FuQ9I/s1600/2.jpg&quot; height=&quot;450&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The Empty option creates a project with only the minimum files and folders required for an MVC 3&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;application. The Internet Application option creates a small example application that you can modify&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;and build on. It includes user registration and authentication, navigation, and a consistent visual style.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The Intranet Application option is similar to Internet Application, but is designed for use in&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;environments that authenticate users through a domain/Active Directory infrastructure. For this&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;chapter, we are going to keep things simple. Select the Empty option, leave the Use HTML5 semantic&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;markup option unchecked, and click OK to create the new project.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Once Visual Studio creates the project, you’ll see a number of files and folders displayed in the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Solution Explorer window. This is the default structure for an MVC 3 project. You can try to run the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;application now by selecting Start Debugging from the Debug menu (if it prompts you to enable&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;debugging, just click the OK button). You can see the result in Figure 3-3. Since we started with the empty&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;project template, the application doesn’t contain anything to run, so we see a 404 Not Found Error.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&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/AVvXsEgaIftSz4k7J8KInOSrf7fWMMpURdzmQPha2ZkLJvthaR82VIxnIu2KIjuw3EK1lxRvqCNOsAnm9eFfI6A6xFpix2z_vHaIOgl64VKiYRPIZL0tKN7T27p4VIF2oPNB7F2pPMg-01NJNas/s1600/3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaIftSz4k7J8KInOSrf7fWMMpURdzmQPha2ZkLJvthaR82VIxnIu2KIjuw3EK1lxRvqCNOsAnm9eFfI6A6xFpix2z_vHaIOgl64VKiYRPIZL0tKN7T27p4VIF2oPNB7F2pPMg-01NJNas/s1600/3.jpg&quot; height=&quot;452&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;When you’re finished, be sure to stop debugging by closing the browser window that shows the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;error, or by going back to Visual Studio and selecting Stop Debugging from the Debug menu.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: purple; font-family: Verdana, sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Adding the First Controller&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In MVC architecture, incoming requests are handled by controllers. In ASP.NET MVC, controllers are just&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;simple C# classes (usually inheriting from system.Web.Mvc.Controller, the framework’s built-in&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;controller base class). Each public method in a controller is known as an action method, meaning you&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;can invoke it from the Web via some URL to perform an action. The MVC convention is to put&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;controllers in a folder called Controllers, which Visual Studio created for us when it set up the project.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;You don’t need to follow this or most other MVC conventions, but we recommend that you do—not least&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;because it will help you make sense of the examples in this book.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;To add a controller to our project, right-click the Controllers folder in the Visual Studio Solution&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Explorer window and choose Add and then Controller from the pop-up menus, as shown in Figure -4.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&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/AVvXsEiazYvvJlkSrOxtZupgoA-kkyAsCbH9U5-nWkftTy3QWN45qmGHpUkwvusrmCwAZ7M1LMweI1YD7oes34o5GBk47B7Ot2C8EJp7IotC17RJ9EqtUnGghEPMNA-dGxYBK0Np13MxaPgMSeo/s1600/4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiazYvvJlkSrOxtZupgoA-kkyAsCbH9U5-nWkftTy3QWN45qmGHpUkwvusrmCwAZ7M1LMweI1YD7oes34o5GBk47B7Ot2C8EJp7IotC17RJ9EqtUnGghEPMNA-dGxYBK0Np13MxaPgMSeo/s1600/4.jpg&quot; height=&quot;314&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;When the Add Controller dialog appears, set the name to HomeController, as shown in Figure 3-5.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This is another convention: the names we give to controllers should be descriptive and end with&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Controller.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&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/AVvXsEjB4lxP-Zd1mlH58EKlZdV6eSfqW6vESR9gYHwBjJE1HHzeYYq1y2S9bPNn0yMqvx6EwNkcROXZAq-60YjBWLKrCEObw0-RZxpFbEp9OewD-ykNzXFGDzmmPxgiInjIUaSKdECS7Fxcoig/s1600/5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjB4lxP-Zd1mlH58EKlZdV6eSfqW6vESR9gYHwBjJE1HHzeYYq1y2S9bPNn0yMqvx6EwNkcROXZAq-60YjBWLKrCEObw0-RZxpFbEp9OewD-ykNzXFGDzmmPxgiInjIUaSKdECS7Fxcoig/s1600/5.jpg&quot; height=&quot;416&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The Scaffolding options section of the dialog allows us to create a controller using a template with&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;common functions. We aren’t going to use this feature, so ensure that the Empty controller item is&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;selected in the Template menu, as shown in the figure.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Click the Add button to create the controller. Visual Studio will create a new C# code file in the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Controller folder called HomeController.cs and open it for editing. You can see that the class is called&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;HomeController and it is derived from System.Web.Mvc.Controller. Edit the code in this file so that it&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;matches Listing -1.&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: purple; font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Listing -1. Modifying the HomeController Class&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;using System.Web.Mvc;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;namespace PartyInvites.Controllers {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;public class HomeController : Controller {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; public string Index() {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return &quot;Hello, world&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We haven’t created anything exciting, but this is a good way of getting started with MVC. We’ve&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;created an action method called Index, which returns the string “Hello, world”. Run the project again by&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;selecting Start Debugging from the Visual Studio Debug menu. The browser will display the result of the&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Index action method, as shown in Figure -6.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&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/AVvXsEiwNxOfqmReMa5lSYCh0cYA5cQT7yMNB_MTpmyL6nbszGBWz131lym9nWtgtQWTrOlueZgpL0GiexF5Mb1PYOB618Vj_UrYT6v3u3jP4sFMG6nIDDoZ9dnRopGOEdHviGUmLMX-zReqldg/s1600/6.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwNxOfqmReMa5lSYCh0cYA5cQT7yMNB_MTpmyL6nbszGBWz131lym9nWtgtQWTrOlueZgpL0GiexF5Mb1PYOB618Vj_UrYT6v3u3jP4sFMG6nIDDoZ9dnRopGOEdHviGUmLMX-zReqldg/s1600/6.jpg&quot; height=&quot;180&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/3593038408131134700/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/06/creating-new-aspnet-mvc-project.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/3593038408131134700'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/3593038408131134700'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/06/creating-new-aspnet-mvc-project.html' title='Creating a New ASP.NET MVC Project'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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/AVvXsEhLS4z2_eFC4iXg8dRm_1tBOogN7Hq8eTnOjcaUJHrkkf-aArPR1owxCyzsKtIiDk4YsM0nJ8wkhl3rS_6bNTcT0TUlJPRUnXAC636lXqh3C3vwwAGY_r_y9YylafpUqi4n6b5fzPe1Nfo/s72-c/1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1056396716722015836.post-3633574480685798657</id><published>2014-06-03T00:19:00.002-07:00</published><updated>2014-06-03T00:24:41.431-07:00</updated><title type='text'>Who Should Use ASP.NET MVC?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;As with any new technology, the fact of ASP.NET MVC’s existence isn’t a compelling reason to adopt it.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Here, we’ll give you our view of how the MVC Framework compares with the most obvious alternatives.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We’ve tried to be as unbiased as two people writing a book about the MVC Framework can be, but we&amp;nbsp;&lt;/span&gt;know that there is a limit to our objectivity. The following sections are technology-based comparisons.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;When selecting a web application framework, you should also consider the skills of your team, the work&amp;nbsp;&lt;/span&gt;involved in porting any existing projects, and your relationship with, and confidence in, the technology&amp;nbsp;source.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: purple; font-family: Verdana, sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Comparisons with ASP.NET Web Forms&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We have already detailed the weaknesses and limitations in traditional ASP.NET Web Forms, and how&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;ASP.NET MVC overcomes many of those problems. That doesn’t mean that Web Forms is dead, though.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Microsoft has repeatedly stated that both technologies are being actively developed and actively&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;supported, and that there are no plans to retire Web Forms. In some ways, your choice between the two&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;is a matter of development philosophy.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Consider these points:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Web Forms takes the view that UIs should be stateful, and to that end, adds a&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;sophisticated abstraction layer on top of HTTP and HTML, using View State and&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;postbacks to create the effect of statefulness.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This makes it suitable for drag-anddrop&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Windows Forms–style development, in which you pull UI widgets onto a&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;canvas and fill in code for their event handlers.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;MVC embraces HTTP’s true stateless nature, working with it rather than fighting&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;against it.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The MVC Framework requires you to understand how web applications&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;actually work.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Given that understanding, it provides a simple, powerful, &amp;nbsp;modern&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;approach to writing web applications, with tidy code that’s easier to extend and&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;maintain over time, and that’s free of bizarre complications and painful&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;limitations.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;There are certainly cases where Web Forms is at least as good as, and probably better than, MVC.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The obvious example is small, intranet-type applications that are largely about binding grids directly to&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;database tables or stepping users through a wizard.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Web Forms drag-and-drop development strengths&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;can outweigh its weaknesses when you don’t need to worry about bandwidth consumption or search&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;engine optimization.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;If, on the other hand, you are writing applications for the Internet or larger intranet applications,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;you will be attracted by the bandwidth&amp;nbsp;efficiency,&amp;nbsp;better browser compatibility, and better support for&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;automated testing that MVC offers.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/3633574480685798657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/06/who-should-use-aspnet-mvc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/3633574480685798657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/3633574480685798657'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/06/who-should-use-aspnet-mvc.html' title='Who Should Use ASP.NET MVC?'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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-1056396716722015836.post-4069926134103696153</id><published>2014-05-17T21:56:00.001-07:00</published><updated>2014-05-17T22:00:19.805-07:00</updated><title type='text'>Creating Excel file in C#</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;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The following section explains how to&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;create an Excel file programmatically using&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;C#. Before you create an Excel file in C# , you&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;have to add the Microsoft Excel 12.0 Object&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Library to you project.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Create a new project and add a Command&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Button to the Form. Form the following&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;pictures you can find how to add Excel&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;reference library in your project. Select&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;reference dialogue from Project menu Select&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Microsoft Excel 12.0 Object Library and click&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;OK button&lt;/span&gt;&lt;br /&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/AVvXsEiefxR7sIvcyVY74puVd1qFdvi4dnd2LZejcHfCep_Bs29I3UQS7ZsR-pVbDgJf9bHlqt7SlhI0RithQ7tFmxwlRPAD9cMhGOJmC8t46eHDE-6u5JmvJpWyJoieA8fKfRkkcYAOB48BLd0/s1600/vc1.jpg&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/AVvXsEiefxR7sIvcyVY74puVd1qFdvi4dnd2LZejcHfCep_Bs29I3UQS7ZsR-pVbDgJf9bHlqt7SlhI0RithQ7tFmxwlRPAD9cMhGOJmC8t46eHDE-6u5JmvJpWyJoieA8fKfRkkcYAOB48BLd0/s1600/vc1.jpg&quot; height=&quot;398&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&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/AVvXsEha4hH9XQeDjmWDcP3OQ3fgwXl9JZ607tMkLCVsNbMuXfSBjog1nLdtHBMKHIsG4rN-X1VC0c4VMHLK2t1iOCVzw2ARvdqqq0YVrdyYTaYr16B2k-O3uGwczVsKVm8LUg4Ieg9CAB7Es_Y/s1600/vc2.jpg&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/AVvXsEha4hH9XQeDjmWDcP3OQ3fgwXl9JZ607tMkLCVsNbMuXfSBjog1nLdtHBMKHIsG4rN-X1VC0c4VMHLK2t1iOCVzw2ARvdqqq0YVrdyYTaYr16B2k-O3uGwczVsKVm8LUg4Ieg9CAB7Es_Y/s1600/vc2.jpg&quot; height=&quot;500&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Copy and paste the following source code in&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;your C# project file.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;using System;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;using System.Windows.Forms;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;using Excel = Microsoft.Office.Interop.Excel;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;namespace WinFormsExcelDemo&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; public partial class Form1 : Form&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public Form1()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; InitializeComponent();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private void button1_Click(object sender, EventArgs e)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (textBox1.Text == &quot;&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MessageBox.Show(&quot;Please Give a name for Excel&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; textBox1.Focus();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Excel.Application xlapp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Excel.Workbook xlworkbook;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Excel.Worksheet xlworksheet;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; object misvalue = System.Reflection.Missing.Value;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //xlapp = new Excel.ApplicationClass();&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xlapp = new Excel.Application();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xlworkbook = xlapp.Workbooks.Add(misvalue);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xlworksheet = (Excel.Worksheet)xlworkbook.Worksheets.get_Item(1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xlworksheet.Cells[1, 1] = &quot; New Work sheet&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xlworkbook.SaveAs(textBox1.Text + &quot;.xls&quot;, Excel.XlFileFormat.xlWorkbookNormal, misvalue, misvalue, misvalue, misvalue,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Excel.XlSaveAsAccessMode.xlExclusive, misvalue, misvalue, misvalue, misvalue, misvalue);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xlworkbook.Close(true, misvalue, misvalue);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xlapp.Quit();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; releaseObject(xlworksheet);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; releaseObject(xlworkbook);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; releaseObject(xlapp);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MessageBox.Show(&quot;Excel file created , you can find the file in Documents&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private void releaseObject(object obj)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.Runtime.InteropServices.Marshal.ReleaseComObject(obj);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; obj = null;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch (Exception ex)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; obj = null;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MessageBox.Show(&quot;Exception occured while releasing object&quot;+ex.ToString());&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; finally&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GC.Collect();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Note : You have to add Microsoft.Office.Interop.Excel to your source code.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;using Excel = Microsoft.Office.Interop.Excel;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;When you execute this program , it will create an excel file in you c:\Documents&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/4069926134103696153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/05/creating-excel-file-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/4069926134103696153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/4069926134103696153'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/05/creating-excel-file-in-c.html' title='Creating Excel file in C#'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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/AVvXsEiefxR7sIvcyVY74puVd1qFdvi4dnd2LZejcHfCep_Bs29I3UQS7ZsR-pVbDgJf9bHlqt7SlhI0RithQ7tFmxwlRPAD9cMhGOJmC8t46eHDE-6u5JmvJpWyJoieA8fKfRkkcYAOB48BLd0/s72-c/vc1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1056396716722015836.post-2257789383096082359</id><published>2014-04-02T01:30:00.001-07:00</published><updated>2014-04-02T01:30:11.599-07:00</updated><title type='text'>ASP.NET MVC - Internet Application</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;div class=&quot;intro&quot; style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 14px; line-height: 18.200000762939453px; margin-top: 10px;&quot;&gt;
To learn ASP.NET MVC, we will Build an Internet Application&lt;/div&gt;
&lt;div class=&quot;intro&quot; style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 14px; line-height: 18.200000762939453px; margin-top: 10px;&quot;&gt;
Part I: Creating the Application&lt;/div&gt;
&lt;hr style=&quot;background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; height: 1px;&quot; /&gt;
&lt;h2 style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-size: 22px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
What We Will Build&lt;/h2&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
We will build an Internet application that supports adding, editing, deleting, and listing of information stored in a database.&lt;/div&gt;
&lt;hr style=&quot;background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; height: 1px;&quot; /&gt;
&lt;h2 style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-size: 22px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
What We Will Do&lt;/h2&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
Visual Web Developer offers different templates for building web applications.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
We will use&amp;nbsp;&lt;strong&gt;Visual Web Developer&lt;/strong&gt;&amp;nbsp;to create an empty MVC Internet application with&amp;nbsp;&lt;strong&gt;HTML5 markup&lt;/strong&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
When the empty Internet application is created, we will gradually add code to the application until it is fully finished. We will use&amp;nbsp;&lt;strong&gt;C#&lt;/strong&gt;&amp;nbsp;as the programming language, and the newest&amp;nbsp;&lt;strong&gt;Razor&lt;/strong&gt;&amp;nbsp;server code markup.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
Along the way we will explain the content, the code, and all the components of the application.&lt;/div&gt;
&lt;hr style=&quot;background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; height: 1px;&quot; /&gt;
&lt;h2 style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-size: 22px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
Creating the Web Application&lt;/h2&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
If you have Visual Web Developer installed, start Visual Web Developer and select&amp;nbsp;&lt;strong&gt;New Project&lt;/strong&gt;. Otherwise just read and learn.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
&lt;img alt=&quot;New Project&quot; height=&quot;448&quot; src=&quot;http://www.w3schools.com/aspnet/pic_mvc_new_project.jpg&quot; style=&quot;border: 0px;&quot; width=&quot;523&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
In the New Project dialog box:&lt;/div&gt;
&lt;ul style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
&lt;li&gt;Open the&amp;nbsp;&lt;b&gt;Visual C#&lt;/b&gt;&amp;nbsp;templates&lt;/li&gt;
&lt;li&gt;Select the template&amp;nbsp;&lt;b&gt;ASP.NET MVC 3 Web Application&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Set the project name to&amp;nbsp;&lt;b&gt;MvcDemo&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Set the disk location to something like&amp;nbsp;&lt;b&gt;c:\w3schools_demo&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Click&amp;nbsp;&lt;b&gt;OK&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
When the New Project Dialog Box opens:&lt;/div&gt;
&lt;ul style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
&lt;li&gt;Select the&amp;nbsp;&lt;b&gt;Internet Application&lt;/b&gt;&amp;nbsp;template&lt;/li&gt;
&lt;li&gt;Select the&amp;nbsp;&lt;b&gt;Razor Engine&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Select&amp;nbsp;&lt;b&gt;HTML5 Markup&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Click&amp;nbsp;&lt;strong&gt;OK&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
Visual Studio Express will create a project much like this:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
&lt;img alt=&quot;Mvc Explorer&quot; height=&quot;462&quot; src=&quot;http://www.w3schools.com/aspnet/pic_mvc_explorer.jpg&quot; style=&quot;border: 0px;&quot; width=&quot;630&quot; /&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
We will explore the content of the files and folders in the next chapter of this tutorial.&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/2257789383096082359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/04/aspnet-mvc-internet-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/2257789383096082359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/2257789383096082359'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/04/aspnet-mvc-internet-application.html' title='ASP.NET MVC - Internet Application'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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-1056396716722015836.post-327008688362290457</id><published>2014-04-02T01:26:00.004-07:00</published><updated>2014-04-02T01:26:47.997-07:00</updated><title type='text'>ASP.NET MVC Introduction</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;h2 style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-size: 22px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
The MVC Programming Model&lt;/h2&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
MVC is one of three ASP.NET programming models.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
MVC is a framework for building web applications using a MVC (Model View Controller) design:&lt;/div&gt;
&lt;ul style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
&lt;li&gt;The Model represents the application core (for instance a list of database records).&lt;/li&gt;
&lt;li&gt;The View displays the data (the database records).&lt;/li&gt;
&lt;li&gt;The Controller handles the input (to the database records).&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
The MVC model also provides full control over HTML, CSS, and JavaScript.&lt;/div&gt;
&lt;hr style=&quot;background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; height: 1px;&quot; /&gt;
&lt;table style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;line-height: 16.899999618530273px;&quot;&gt;&lt;img alt=&quot;MVC&quot; height=&quot;305&quot; src=&quot;http://www.w3schools.com/aspnet/27.jpg&quot; style=&quot;border: 0px;&quot; width=&quot;320&quot; /&gt;&lt;/td&gt;&lt;td style=&quot;line-height: 16.899999618530273px; vertical-align: top;&quot;&gt;&lt;div class=&quot;intro&quot; style=&quot;background-color: transparent; font-size: 14px; line-height: 18.200000762939453px; margin-top: 10px;&quot;&gt;
The MVC model defines web&lt;br /&gt;applications with 3 logic layers:&lt;/div&gt;
&lt;div class=&quot;intro&quot; style=&quot;background-color: transparent; font-size: 14px; line-height: 18.200000762939453px; margin-top: 10px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;intro&quot; style=&quot;background-color: transparent; font-size: 14px; line-height: 18.200000762939453px; margin-top: 10px;&quot;&gt;
The business layer (Model logic)&lt;/div&gt;
&lt;div class=&quot;intro&quot; style=&quot;background-color: transparent; font-size: 14px; line-height: 18.200000762939453px; margin-top: 10px;&quot;&gt;
The display layer (View logic)&lt;/div&gt;
&lt;div class=&quot;intro&quot; style=&quot;background-color: transparent; font-size: 14px; line-height: 18.200000762939453px; margin-top: 10px;&quot;&gt;
The input control (Controller logic)&lt;/div&gt;
&lt;div class=&quot;intro&quot; style=&quot;background-color: transparent; font-size: 14px; line-height: 18.200000762939453px; margin-top: 10px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
&lt;b&gt;The Model&lt;/b&gt;&amp;nbsp;is the part of the application that handles the logic for the application data.&lt;br /&gt;Often model objects retrieve data (and store data) from a database.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
&lt;b&gt;The View&lt;/b&gt;&amp;nbsp;is the parts of the application that handles the display of the data.&lt;br /&gt;Most often the views are created from the model data.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
&lt;b&gt;The Controller&lt;/b&gt;&amp;nbsp;is the part of the application that handles user interaction.&lt;br /&gt;Typically controllers read data from a view, control user input, and send input data to the model.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
The MVC separation helps you manage complex applications, because you can focus on one aspect a time. For example, you can focus on the view without depending on the business logic. It also makes it easier to test an application.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
The MVC separation also simplifies group development. Different developers can work on the view, the controller logic, and the business logic in parallel.&lt;/div&gt;
&lt;hr style=&quot;background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; height: 1px;&quot; /&gt;
&lt;h2 style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-size: 22px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
Web Forms vs MVC&lt;/h2&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
The MVC programming model is a lighter alternative to traditional ASP.NET (Web Forms). It is a lightweight, highly testable framework, integrated with all existing ASP.NET features, such as Master Pages, Security, and Authentication.&lt;/div&gt;
&lt;hr style=&quot;background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; height: 1px;&quot; /&gt;
&lt;h2 style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-size: 22px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
Visual Studio Express 2012/2010&lt;/h2&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
Visual Studio Express is a free version of Microsoft Visual Studio.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
Visual Studio Express is a development tool tailor made for MVC (and Web Forms).&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
Visual Studio Express contains:&lt;/div&gt;
&lt;ul style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
&lt;li&gt;MVC and Web Forms&lt;/li&gt;
&lt;li&gt;Drag-and-drop web controls and web components&lt;/li&gt;
&lt;li&gt;A web server language (Razor using VB or C#)&lt;/li&gt;
&lt;li&gt;A web server (IIS Express)&lt;/li&gt;
&lt;li&gt;A database server (SQL Server Compact)&lt;/li&gt;
&lt;li&gt;A full web development framework (ASP.NET)&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
If you install Visual Studio Express, you will get more benefits from this tutorial.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
If you want to install Visual Studio Express, click on one of these links:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
&lt;a href=&quot;http://www.microsoft.com/web/handlers/webpi.ashx?command=getinstallerredirect&amp;amp;appid=VWDOrVs11AzurePack&quot; style=&quot;background-color: transparent; color: black;&quot;&gt;Visual Web Developer 2012&lt;/a&gt;&amp;nbsp;(If you have Windows 7 or Windows 8)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
&lt;a href=&quot;http://www.microsoft.com/web/gallery/install.aspx?appid=VWDorVS2010SP1Pack&quot; style=&quot;background-color: transparent; color: black;&quot;&gt;Visual Web Developer 2010&lt;/a&gt;&amp;nbsp;(If you have Windows Vista or XP)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
&lt;/div&gt;
&lt;table class=&quot;lamp&quot; style=&quot;background-color: white; border: 1px solid rgb(212, 212, 212); color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; padding: 0px; width: 820px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th style=&quot;color: black; padding: 10px 5px 10px 10px; width: 34px;&quot;&gt;&lt;img alt=&quot;Note&quot; src=&quot;http://www.w3schools.com/images/lamp.jpg&quot; style=&quot;border: 0px; height: 32px; width: 32px;&quot; /&gt;&lt;/th&gt;&lt;td style=&quot;line-height: 16.899999618530273px; padding: 4px 10px 4px 0px;&quot;&gt;After you have installed Visual Studio Express the first time, it pays to run the installation one more time, to install fixes and service packs. Just click on the link once more.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px;&quot; /&gt;
&lt;hr style=&quot;background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; height: 1px;&quot; /&gt;
&lt;h2 style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-size: 22px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
ASP.NET MVC References&lt;/h2&gt;
&lt;div style=&quot;background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;&quot;&gt;
At the end of this tutorial you will find a complete ASP.NET MVC reference.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/327008688362290457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/04/aspnet-mvc-introduction.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/327008688362290457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/327008688362290457'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/04/aspnet-mvc-introduction.html' title='ASP.NET MVC Introduction'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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-1056396716722015836.post-7723654543936053311</id><published>2014-03-31T19:09:00.000-07:00</published><updated>2014-03-31T19:09:09.989-07:00</updated><title type='text'>ASP.NET MVC Top 10  Interview Questions</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;h4 style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 16px;&quot;&gt;
1. Explain MVC (Model-View-Controller) in general?&lt;/h4&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
MVC (Model-View-Controller) is an architectural software pattern that basically decouples various components of a web application. By using MVC pattern, we can develop applications that are more flexible to changes without affecting the other components of our application.&lt;/div&gt;
&lt;ul style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&quot;Model&quot; is basically domain data.&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&quot;View&quot; is user interface to render domain data.&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&quot;Controller&quot; translates user actions into appropriate operations performed on model.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 16px;&quot;&gt;
2. What is ASP.NET MVC?&lt;/h4&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
ASP.NET MVC is a web development framework from Microsoft that is based on MVC (Model-View-Controller) architectural design pattern. Microsoft has streamlined the development of MVC based applications using ASP.NET MVC framework.&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 16px;&quot;&gt;
3. Difference between ASP.NET MVC and ASP.NET WebForms?&lt;/h4&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
ASP.NET Web Forms uses Page controller pattern approach for rendering layout, whereas ASP.NET MVC uses Front controller approach. In case of Page controller approach, every page has its own controller, i.e., code-behind file that processes the request. On the other hand, in ASP.NET MVC, a common controller for all pages processes the requests.&lt;br /&gt;Follow the link for the&amp;nbsp;&lt;a href=&quot;http://www.devcurry.com/2009/09/difference-between-aspnet-webforms-and.html#.UjRvRNLtaBI&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;difference between the ASP.NET MVC and ASP.NET WebForms&lt;/a&gt;.&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 16px;&quot;&gt;
4. What are the Core features of ASP.NET MVC?&lt;/h4&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
Core features of ASP.NET MVC framework are:&lt;/div&gt;
&lt;ul style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Clear separation of application concerns (Presentation and Business Logic)&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;An extensible and pluggable framework&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Extensive support for ASP.NET Routing&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Support for existing ASP.NET features&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
Follow for detailed understanding of the above mentioned&amp;nbsp;&lt;a href=&quot;http://www.asp.net/mvc/tutorials/older-versions/overview/asp-net-mvc-overview&quot; style=&quot;border: 0px; color: purple; font-family: Arial, Helvetica, sans-serif; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;core features&lt;/a&gt;.&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 16px;&quot;&gt;
5. Can you please explain the request flow in ASP.NET MVC framework?&lt;/h4&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
Request flow for ASP.NET MVC framework is as follows:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
Request hits the controller coming from client. Controller plays its role and decides which model to use in order to serve the request further passing that model to view which then transforms the model and generates an appropriate response that is rendered to the client.&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 16px;&quot;&gt;
6. What is Routing in ASP.NET MVC?&lt;/h4&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
In case of a typical ASP.NET application, incoming requests are mapped to physical files such as&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;.aspx&lt;/em&gt;&amp;nbsp;file. ASP.NET MVC framework uses friendly URLs that more easily describe user’s action but are not mapped to physical files.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
ASP.NET MVC framework uses a routing engine, that maps URLs to controller classes. We can define routing rules for the engine, so that it can map incoming request URLs to appropriate controller.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
Practically, when a user types a URL in a browser window for an ASP.NET MVC application and presses “go” button, routing engine uses routing rules that are defined in&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Global.asax&lt;/em&gt;&amp;nbsp;file in order to parse the URL and find out the path of corresponding controller.&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 16px;&quot;&gt;
7. What is the difference between ViewData, ViewBag and TempData?&lt;/h4&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
In order to pass data from controller to view and in next subsequent request, ASP.NET MVC framework provides different options i.e.,&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;ViewData&lt;/code&gt;,&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;ViewBag&amp;nbsp;&lt;/code&gt;and&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;TempData&lt;/code&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
Both&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;ViewBag&amp;nbsp;&lt;/code&gt;and&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;ViewData&amp;nbsp;&lt;/code&gt;are used to communicate between controller and corresponding view. But this communication is only for server call, it becomes&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;null&amp;nbsp;&lt;/code&gt;if redirect occurs. So, in short, it&#39;s a mechanism to maintain state between controller and corresponding view.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;ViewData&amp;nbsp;&lt;/code&gt;is a&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;dictionary&amp;nbsp;&lt;/code&gt;object while&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;ViewBag&amp;nbsp;&lt;/code&gt;is a dynamic property (a new C# 4.0 feature).&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;ViewData&amp;nbsp;&lt;/code&gt;being a&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;dictionary&amp;nbsp;&lt;/code&gt;object is accessible using&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;string&lt;/code&gt;s as keys and also requires typecasting for complex types. On the other hand,&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;ViewBag&amp;nbsp;&lt;/code&gt;doesn&#39;t have typecasting and&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;null&amp;nbsp;&lt;/code&gt;checks.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;TempData&amp;nbsp;&lt;/code&gt;is also a&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;dictionary&amp;nbsp;&lt;/code&gt;object that stays for the time of an HTTP Request. So,&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;Tempdata&amp;nbsp;&lt;/code&gt;can be used to maintain data between redirects, i.e., from one controller to the other controller.&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 16px;&quot;&gt;
8. What are Action Methods in ASP.NET MVC?&lt;/h4&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
I already explained about request flow in ASP.NET MVC framework that request coming from client hits controller first. Actually MVC application determines the corresponding controller by using routing rules defined in&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Global.asax&lt;/em&gt;. And controllers have specific methods for each user actions. Each request coming to controller is for a specific&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;Action&lt;/code&gt;Method. The following code example, “&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;ShowBooks&lt;/code&gt;” is an example of an&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;Action&amp;nbsp;&lt;/code&gt;method.&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain0&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-width: 0px 0px 1px; color: #005782; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;img height=&quot;9&quot; id=&quot;preimg0&quot; preid=&quot;0&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;border: 0px; cursor: pointer; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse0&quot; preid=&quot;0&quot; style=&quot;border: 0px; cursor: pointer; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;|&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/653746/Top-ASP-NET-MVC-Interview-Questions#&quot; preid=&quot;0&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;
&lt;pre id=&quot;pre0&quot; lang=&quot;cs&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt; ViewResult ShowBooks(&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt; id)
{
  &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;var&lt;/span&gt; computerBook = db.Books.Where(p =&amp;gt; P.BookID == id).First(); 
  &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;return&lt;/span&gt; View(computerBook);
}&lt;/pre&gt;
&lt;h4 style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 16px;&quot;&gt;
9. Explain the role of Model in ASP.NET MVC?&lt;/h4&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
One of the core features of ASP.NET MVC is that it separates the input and UI logic from business logic. Role of Model in ASP.NET MVC is to contain all application logic including validation, business and data access logic except view, i.e., input and controller, i.e., UI logic.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
Model is normally responsible for accessing data from some persistent medium like database and manipulate it.&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 16px;&quot;&gt;
10. What are Action Filters in ASP.NET MVC?&lt;/h4&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
If we need to apply some specific logic before or after action methods, we use action filters. We can apply these action filters to a controller or a specific controller action. Action filters are basically custom classes that provide a means for adding pre-action or post-action behavior to controller actions.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
For example:&lt;/div&gt;
&lt;ul style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;Authorize&amp;nbsp;&lt;/code&gt;filter can be used to restrict access to a specific user or a role.&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;OutputCache&amp;nbsp;&lt;/code&gt;filter can cache the output of a controller action for a specific duration.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 style=&quot;background-color: white; color: #ff9900; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 30px; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
Related Web Development Tutorials&lt;/h2&gt;
&lt;ul style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://www.webdevelopmenthelp.net/2013/04/HTML5-Interview-Questions.html&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Top 10 HTML5 Interview Questions&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://www.webdevelopmenthelp.net/2013/09/7-jQuery-Code-Snippet.html&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;7 jQuery code snippets every web developer must have&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://www.topwcftutorials.net/2012/06/wcf-vs-asmx-web-services.html&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;WCF Vs ASMX Web Services&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://www.topwcftutorials.net/2012/06/wcf-top-10-interview-questions.html&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Top 10 WCF Interview Questions&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://www.topwcftutorials.net/2012/06/simple-steps-to-enable-tracing-in-wcf.html&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;4 simple steps to enable tracing in WCF&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/7723654543936053311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/03/aspnet-mvc-top-10-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/7723654543936053311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/7723654543936053311'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/03/aspnet-mvc-top-10-interview-questions.html' title='ASP.NET MVC Top 10  Interview Questions'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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-1056396716722015836.post-7886735314255895456</id><published>2014-03-27T03:21:00.001-07:00</published><updated>2014-03-27T03:21:15.810-07:00</updated><title type='text'>How to fix “Cannot connect to the configuration database.” for Sharepoint</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;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Most of the people facing the problem to open Central Administration or WebApplications after successfully created.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Then they finding the error message &quot;Cannot connect to the configuration database&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;I am also facing this problem so many times, at firstly i just restarted the system, but this is not the correct process, so i tried to find solution finally i got some solutions&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;1. Verify that the SQL database is running or not:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;Start --&amp;gt; SqlServerManagement Studio ---&amp;gt; Server name [choose sharepoint]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Click ok. check is open or giving any error.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;If it is not opening then Goto&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Start ---&amp;gt; Run ---&amp;gt; Type : &quot;Services.msc&quot; ---&amp;gt; OK&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;There you can check SqlServer(SHAREPOINT) started or not, if not you can start manually.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/7886735314255895456/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/03/how-to-fix-cannot-connect-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/7886735314255895456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/7886735314255895456'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/03/how-to-fix-cannot-connect-to.html' title='How to fix “Cannot connect to the configuration database.” for Sharepoint'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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-1056396716722015836.post-1668641894914533239</id><published>2014-03-05T00:24:00.000-08:00</published><updated>2014-03-05T00:24:06.845-08:00</updated><title type='text'>Creating Simple Event Receivers in SharePoint 2013</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;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;Create an empty SharePoint 2013 project in Visual Studio 2012. In the project, select&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;add new item&lt;/i&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;&amp;nbsp;and select&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;Event Receiver&lt;/i&gt;&lt;br /&gt;
&lt;i style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;&lt;br /&gt;&lt;/i&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/AVvXsEjoSo9LLMs26whaQyAETfToJTL3YIEXG5jyXd2cPbkcAM5vRKrhxHpbX7c85YCjnleIPWJVuHnibEr1WNpEOx2_0xZT1wDkkMxkE5Fgaine-Mn8FyBjX-Sxn71sxLTm4wEkSxVrQ8iOolo/s1600/1.jpg&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/AVvXsEjoSo9LLMs26whaQyAETfToJTL3YIEXG5jyXd2cPbkcAM5vRKrhxHpbX7c85YCjnleIPWJVuHnibEr1WNpEOx2_0xZT1wDkkMxkE5Fgaine-Mn8FyBjX-Sxn71sxLTm4wEkSxVrQ8iOolo/s1600/1.jpg&quot; height=&quot;360&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;&lt;br /&gt;&lt;/i&gt;
&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;Select the type of event receiver you need to add, and select the events you need to handle.&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/AVvXsEhW0a2AKFCZI4dYJv_Agao4YUVLAV1Sp4nokZU2LIl1y2DdGT5sMGiQ-VIiIVbVclIJhuMz0lW0t_TXVykhZnzBjxpb7hdp5vNgAu_qEOs6t1N7gO5N4tWe_-O_3s5Fa6z7QT2VA8pRgn8/s1600/2.jpg&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/AVvXsEhW0a2AKFCZI4dYJv_Agao4YUVLAV1Sp4nokZU2LIl1y2DdGT5sMGiQ-VIiIVbVclIJhuMz0lW0t_TXVykhZnzBjxpb7hdp5vNgAu_qEOs6t1N7gO5N4tWe_-O_3s5Fa6z7QT2VA8pRgn8/s1600/2.jpg&quot; height=&quot;506&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: #fefdfa; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;
In this sample I&#39;m trying to update a SharePoint list based on file changes happening to a separate&amp;nbsp;SharePoint library. Basically, the list will act like a log. So we need to create the library and a list. Here, I have created the&amp;nbsp;&lt;i&gt;Department&amp;nbsp;&lt;/i&gt;library to add and maintain documents and also created&amp;nbsp;&lt;i&gt;DocumentLog&amp;nbsp;&lt;/i&gt;list to log the changes happening to the library.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: #fefdfa; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: #fefdfa; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;
In the list I have three columns,&amp;nbsp;&lt;i&gt;Title&lt;/i&gt;,&amp;nbsp;&lt;i&gt;Action&lt;/i&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;i&gt;DateAndTime&amp;nbsp;&lt;/i&gt;in order to catalog the changes happening to the library.&lt;/div&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/AVvXsEgrrMzF__nVzSMb9WFCgZA74Rh0m8EKzpbCIbCIr2U2tSmDv_lQNtubpJX4d9X0MphDJOOU9tsiyQkSdCDd5KdJbUO4uCizTzRFmdzgFt2IcxIS_qrfsHAwFGuV_9CHuLN1EpqOlKNZVVI/s1600/3.jpg&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/AVvXsEgrrMzF__nVzSMb9WFCgZA74Rh0m8EKzpbCIbCIr2U2tSmDv_lQNtubpJX4d9X0MphDJOOU9tsiyQkSdCDd5KdJbUO4uCizTzRFmdzgFt2IcxIS_qrfsHAwFGuV_9CHuLN1EpqOlKNZVVI/s1600/3.jpg&quot; height=&quot;388&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;Back to the SharePoint project. Now go to the event receiver .cs file and you&#39;ll get a bunch of methods base on your selection during event receiver creation. Edit the code as below to implement the logic. Note that the&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;ItemAdded&amp;nbsp;&lt;/i&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;method is used instead of the&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;ItemAdding&amp;nbsp;&lt;/i&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;method.&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;public override void&amp;nbsp;&lt;b&gt;ItemAdded&lt;/b&gt;(SPItemEventProperties properties)&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //base.ItemAdded(properties);&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; using (SPWeb web = properties.OpenWeb())&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SPList list = web.Lists[&quot;DocumentLog&quot;];&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SPListItem newItem = list.Items.Add();&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; newItem[&quot;Title&quot;] = properties.ListItem.Name;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; newItem[&quot;DateAndTime&quot;] = System.DateTime.Now;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; newItem[&quot;Action&quot;] = &quot;Item Added&quot;;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; newItem.Update();&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch (Exception ex)&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; throw ex;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;public override void&amp;nbsp;&lt;b&gt;ItemUpdating&lt;/b&gt;(SPItemEventProperties properties)&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //base.ItemUpdating(properties);&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; using (SPWeb web = properties.OpenWeb())&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SPList list = web.Lists[&quot;DocumentLog&quot;];&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SPListItem newItem = list.Items.Add();&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; newItem[&quot;Title&quot;] = properties.ListItem.Name;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; newItem[&quot;DateAndTime&quot;] = System.DateTime.Now;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; newItem[&quot;Action&quot;] = &quot;Item Updated&quot;;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; newItem.Update();&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch (Exception ex)&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; throw ex;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;public override void&amp;nbsp;&lt;b&gt;ItemDeleting&lt;/b&gt;(SPItemEventProperties properties)&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //base.ItemDeleting(properties);&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; using (SPWeb web = properties.OpenWeb())&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SPList list = web.Lists[&quot;DocumentLog&quot;];&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SPListItem newItem = list.Items.Add();&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; newItem[&quot;Title&quot;] = properties.ListItem.Name;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; newItem[&quot;DateAndTime&quot;] = System.DateTime.Now;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; newItem[&quot;Action&quot;] = &quot;Item Deleted&quot;;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; newItem.Update();&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch (Exception ex)&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; throw ex;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;As I am targeting to add the event receiver only to the&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;Department&amp;nbsp;&lt;/i&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;document library, the&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;&lt;b&gt;Elements.xml&lt;/b&gt;&lt;/i&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;&amp;nbsp;file requires a change.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&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/AVvXsEgM-cMYVga-VxySJy4kvWKysFmd19f591Ycq6_c7mfQVdsxbl2YMOvSuyekJV036rauW5nFEMYPQ-w3xPSvwiw9Z3OA7_sYF3htZnW_Xis3eWARwe_cSz0ZjPNugaLy5u9xKQZlq3zN0Sg/s1600/6.jpg&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/AVvXsEgM-cMYVga-VxySJy4kvWKysFmd19f591Ycq6_c7mfQVdsxbl2YMOvSuyekJV036rauW5nFEMYPQ-w3xPSvwiw9Z3OA7_sYF3htZnW_Xis3eWARwe_cSz0ZjPNugaLy5u9xKQZlq3zN0Sg/s1600/6.jpg&quot; height=&quot;400&quot; width=&quot;396&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;&amp;nbsp;Note that I have commented out the setting which points to all document libraries, instead pointed to&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;Department&lt;/i&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;document library. The edited Elements.xml file is as below:&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;lt;Elements xmlns=&quot;http://schemas.microsoft.com/sharepoint/&quot;&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;b&gt;&amp;nbsp;&amp;lt;!-- &amp;nbsp; &amp;lt;Receivers ListTemplateId=&quot;101&quot;&amp;gt; --&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;lt;Receivers&amp;nbsp;&lt;b&gt;ListUrl=&quot;Department&quot;&lt;/b&gt;&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;lt;Receiver&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Name&amp;gt;DepartmentEventReceiverItemAdded&amp;lt;/Name&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Type&amp;gt;ItemAdded&amp;lt;/Type&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Assembly&amp;gt;$SharePoint.Project.AssemblyFullName$&amp;lt;/Assembly&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Class&amp;gt;MySharePointProject.ListEventReceiver.DepartmentEventReceiver&amp;lt;/Class&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;SequenceNumber&amp;gt;10000&amp;lt;/SequenceNumber&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Receiver&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Receiver&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Name&amp;gt;ListEventReceiverItemUpdating&amp;lt;/Name&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Type&amp;gt;ItemUpdating&amp;lt;/Type&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Assembly&amp;gt;$SharePoint.Project.AssemblyFullName$&amp;lt;/Assembly&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Class&amp;gt;MySharePointProject.ListEventReceiver.DepartmentEventReceiver&amp;lt;/Class&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;SequenceNumber&amp;gt;10000&amp;lt;/SequenceNumber&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Receiver&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Receiver&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Name&amp;gt;ListEventReceiverItemDeleting&amp;lt;/Name&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Type&amp;gt;ItemDeleting&amp;lt;/Type&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Assembly&amp;gt;$SharePoint.Project.AssemblyFullName$&amp;lt;/Assembly&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Class&amp;gt;MySharePointProject.ListEventReceiver.DepartmentEventReceiver&amp;lt;/Class&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;SequenceNumber&amp;gt;10000&amp;lt;/SequenceNumber&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Receiver&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;lt;/Receivers&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;lt;/Elements&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: inherit; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;Compile and deploy the solution to your site. Now you may play around with the library and observe the changes happening to the list.... :)&lt;/span&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;I have added a document, uploaded, added, modified the 3 docs and then deleted one of the docs respectively.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&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/AVvXsEhFwPw1un42iqFe4ZWjFW2jBPLab0ZhTbB-zZ2SBTiagtZXD_ZR8OH-XgQGSY1LdUc5Aij__QXjkIMnQRLI9ms1YOCIAm-A6kLnz63zO9bwdO8j9ZA-KhfaaTEVpMxRLb3a1K7h8rjH3Rk/s1600/4.jpg&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/AVvXsEhFwPw1un42iqFe4ZWjFW2jBPLab0ZhTbB-zZ2SBTiagtZXD_ZR8OH-XgQGSY1LdUc5Aij__QXjkIMnQRLI9ms1YOCIAm-A6kLnz63zO9bwdO8j9ZA-KhfaaTEVpMxRLb3a1K7h8rjH3Rk/s1600/4.jpg&quot; height=&quot;292&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;i style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;&lt;br /&gt;&lt;/i&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: #fefdfa; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;
And here&#39;s what I get in the&amp;nbsp;&lt;i&gt;DocumentLog&lt;/i&gt;&amp;nbsp;list.&lt;/div&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/AVvXsEjG5lvunYSgqUvRjHf7v5uV-KM599orhaQirtoo8TrPQ0hJnXkV886xpHSrY2zBCv5rdZhJA7sQ0NSGbuBLMGrxG-xjw5IBRwB894qpXtaWAmzSLh7MRsZljClzYHGdRN7PebBr2Ws4y8U/s1600/5.jpg&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/AVvXsEjG5lvunYSgqUvRjHf7v5uV-KM599orhaQirtoo8TrPQ0hJnXkV886xpHSrY2zBCv5rdZhJA7sQ0NSGbuBLMGrxG-xjw5IBRwB894qpXtaWAmzSLh7MRsZljClzYHGdRN7PebBr2Ws4y8U/s1600/5.jpg&quot; height=&quot;460&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;i style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/1668641894914533239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/03/creating-simple-event-receivers-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/1668641894914533239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/1668641894914533239'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/03/creating-simple-event-receivers-in.html' title='Creating Simple Event Receivers in SharePoint 2013'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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/AVvXsEjoSo9LLMs26whaQyAETfToJTL3YIEXG5jyXd2cPbkcAM5vRKrhxHpbX7c85YCjnleIPWJVuHnibEr1WNpEOx2_0xZT1wDkkMxkE5Fgaine-Mn8FyBjX-Sxn71sxLTm4wEkSxVrQ8iOolo/s72-c/1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1056396716722015836.post-6572801421729321357</id><published>2014-02-21T09:36:00.000-08:00</published><updated>2014-02-21T09:36:03.056-08:00</updated><title type='text'>n-Tier Architecture</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;What is
n-Tier Architecture?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;This is a very important topic to consider
when developing an application. Many elements need to be considered when
deciding on the architecture of the application, such as performance,
scalability and future development issues. When you are deciding on which
architecture to use, first decide on which of the three aforementioned elements
you think is most valuable -- as some choices you make will impact on others.
For example, some choices that boost performance will impact on the scalability
or future development of your design, etc. &lt;br /&gt;
&lt;br /&gt;
Here we will talk generally about what n-Tier architecture is, and then we will
have a look at different n-Tier architectures you can use to develop ASP.NET
applications and issues that arise relating to performance, scalability and
future development issues for each one. &lt;br /&gt;
&lt;br /&gt;
Firstly, what is n-Tier architecture? N-Tier architecture refers to the
architecture of an application that has at least 3 &quot;logical&quot; layers
-- or parts -- that are separate. Each layer interacts with only the layer
directly below, and has specific function that it is responsible for. &lt;br /&gt;
&lt;br /&gt;
Why use n-Tier architecture? Because each layer can be located on physically
different servers with only minor code changes, hence they scale out and handle
more server load. Also, what each layer does internally is completely hidden to
other layers and this makes it possible to change or update one layer without
recompiling or modifying other layers. &lt;br /&gt;
&lt;br /&gt;
This is a very powerful feature of n-Tier architecture, as additional features
or change to a layer can be done without redeploying the whole application. For
example, by separating data access code from the business logic code, when the
database servers change you only needs to change the data access code. Because
business logic code stays the same, the business logic code does not need to be
modified or recompiled. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;[Note]&lt;/b&gt; tier and layer mean the same thing &lt;b&gt;[End Note]&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
An n-Tier application usually has three tiers, and they are called the
presentation tier, the business tier and the data tier. Let&#39;s have a look at
what each tier is responsible for. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Presentation Layer&lt;/b&gt;&lt;br /&gt;
Presentation Layer is the layer responsible for displaying user interface and
&quot;driving&quot; that interface using business tier classes and objects. In
ASP.NET it includes ASPX pages, user controls, server controls and sometimes
security related classes and objects. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Business Tier&lt;/b&gt;&lt;br /&gt;
Business Tier is the layer responsible for accessing the data tier to retrieve,
modify and delete data to and from the data tier and send the results to the
presentation tier. This layer is also responsible for processing the data
retrieved and sent to the presentation layer. &lt;br /&gt;
&lt;br /&gt;
In ASP.NET it includes using SqlClient or OleDb objects to retrieve, update and
delete data from SQL Server or Access databases, and also passing the data
retrieved to the presentation layer in a DataReader or DataSet object, or a
custom collection object. It might also include the sending of just an integer,
but the integer would have been calculated using the data in the data tier such
as the number of records a table has. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;BLL and DAL&lt;/b&gt;&lt;br /&gt;
Often this layer is divided into two sub layers: the Business Logic Layer
(BLL), and the Data Access Layers (DAL). Business Logic Layers are above Data
Access Layers, meaning BLL uses DAL classes and objects. DAL is responsible for
accessing data and forwarding it to BLL. &lt;br /&gt;
&lt;br /&gt;
In ASP.NET it might be using SqlClient or OleDb to retrieve the data and
sending it to BLL in the form of a DataSet or DataReader. BLL is responsible
for preparing or processing the data retrieved and sends it to the presentation
layer. In ASP.NET it might be using the DataSet and DataReader objects to fill
up a custom collection or process it to come up with a value, and then sending
it to Presentation Layer. BLL sometimes works as just transparent layer. For
example, if you want to pass a DataSet or DataReader object directly to the
presentation layer. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Data Tier&lt;/b&gt;&lt;br /&gt;
Data tier is the database or the source of the data itself. Often in .NET it&#39;s
an SQL Server or Access database, however it&#39;s not limited to just those. It
could also be Oracle, mySQL or even XML. In this article we will focus on SQL
Server, as it has been proven to be the fastest database within a .NET
Application. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Logical Layers vs. Physical Layers (Distributed)&lt;/b&gt;&lt;br /&gt;
Logical Layers and Physical Layers are the ones that confuse people. Firstly, a
logical layer means that layers are separate in terms of assembly or sets of
classes, but are still hosted on the same server. Physical layer means that
those assemblies or sets of classes are hosted on different servers with some
additional code to handle the communication between the layers. E.g. remoting
and web services. &lt;br /&gt;
&lt;br /&gt;
Deciding to separate the layers physically or not is very important. It really
depends on the load your application expects to get. I think it&#39;s worth
mentioning some of the facts that might affect your decision. &lt;br /&gt;
&lt;br /&gt;
Please DO note that separating the layers physically WILL slow your application
down due to the delay in communicating between the servers throughout the
network, so if you are using the physical layer approach, make sure the
performance gain is worth the performance loss from this. &lt;br /&gt;
&lt;br /&gt;
Hopefully you would have designed your application using the n-Tier approach. If
this is the case, then note that you can separate the layers in the future. &lt;br /&gt;
&lt;br /&gt;
Cost for deploying and maintaining physically separated applications is much
greater. First of all, you will need more servers. You also need network
hardware connecting them. At this point, deploying the application becomes more
complex too! So decide if these things will be worth it or not. &lt;br /&gt;
&lt;br /&gt;
Another fact that might affect your decision is how each of the tiers in the
application are going to be used. You will probably want to host a tier on a
separate server if more than 1 service is dependent on it, e.g. You might want
to host business logic somewhere else if you have multiple presentation layers
for different clients. You might also want a separate SQL server if you have other
applications using the same data.&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;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/6572801421729321357/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/02/n-tier-architecture.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/6572801421729321357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/6572801421729321357'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/02/n-tier-architecture.html' title='n-Tier Architecture'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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-1056396716722015836.post-5793494320331543518</id><published>2014-02-21T09:33:00.002-08:00</published><updated>2014-02-21T09:33:11.725-08:00</updated><title type='text'>MVC Routes</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
MVC3 gives you great control over how URLs are mapped to your controllers. It gives you the ability to define your URLs in a human readable SEO (Search Engine Optimization) friendly fashion, to remap old URLs to new functionality and side-by-side utilize classic ASP.NET sites inside of MVC3. It also results in hiding what kind of page user is calling and what environment we are working in. Most of the new websites are following this and it is important to understand that routing is not URL rewriting as routing will have customizations and many attachments towards request/response.&lt;br /&gt;
When we create any type of MVC application by default GLOBAL.ASAX file is created becoz ASP.NET implements MVC using this global application class mainly. Routes defined in the Global.asax.cs file of our MVC3 web application/site. In this global.asax file most important element relative to our work is RegisterRoutes method. By default, there is only one route defined in the RegisterRoutes method that looks like the line below.&lt;br /&gt;
routes.MapRoute(&lt;br /&gt;
&quot;Default&quot;, // Route name&lt;br /&gt;
&quot;{controller}/{action}/{id}&quot;, // URL with parameters&lt;br /&gt;
new { controller = &quot;Home&quot;, action = &quot;Index&quot;, id = UrlParameter.Optional } // Parameter defaults&lt;br /&gt;
);&lt;br /&gt;
This route defines the route name, which can be anything as long as it is unique, the URL template, and the parameter defaults. The default route that is pre-defined for you maps to Controller/Action/id. You can add additional routes by copying the same line and adjusting the URL parameters and the related default values. Remember when we add additional routes the order is important.&lt;br /&gt;
Custom MVC3 Routes&lt;br /&gt;
One of the many factors frequently considered by search engines to determine the relevance of a particular page to a particular search term is whether or not the URL link itself includes a particular term. In a classic ASP.NET site for a magazine, you might have a URL that looks like www.internet.com/ViewArticle.aspx?id=123. This URL passes the ID number of the article to view, but the URL itself doesn&#39;t describe the content in any human readable way. If the URL instead was www.internet.com/MVC3_Routing/123 a human-or a web crawler-could read that and know that the article is about MVC3 Routing.&lt;br /&gt;
Another frequent use of custom routing is to allow multiple sites to link to the same location while providing additional data about where they came from. For example, if you had a link to a product page and you wanted to provide custom co-branding based on which one of your partners linked in to a page, you could do so by including a &quot;partner name&quot; variable in the link. A link like this could be to www.internet.com/PartnerA/Article/123 or www.internet.com/PartnerB/Article/123 for example. This would allow two different sites to link to the same article while providing their own information in the process.&lt;br /&gt;
The code block below defines a new route called ArticleRoute that defines a new parameter called article in addition to the standard controller and action.&lt;br /&gt;
routes.MapRoute(&lt;br /&gt;
&quot;ArticleRoute&quot;,&lt;br /&gt;
&quot;{article}/{controller}/{action}&quot;,&lt;br /&gt;
new { article=&quot;Unknown&quot;, controller = &quot;Home&quot;, action = &quot;Index&quot; } );&lt;br /&gt;
You can access this custom article part of the route in your controller by accessing the RouteData object.&lt;br /&gt;
RouteData.Values[&quot;article&quot;]&lt;br /&gt;
To access the RouteData object in your Razor views, use the @Url.RequestContext.RouteData object.&lt;br /&gt;
When you are constructing URLs that use string data such as article titles or author&#39;s names, you will need to use some form of URL-friendly encoding. The easiest method is to use HttpUtility.UrlEncode(&quot;Your String&quot;) which will replace all of the URL unfriendly characters with the appropriate HTML escapes.B This method is web spider friendly but not necessarily human readable URL friendly.&lt;br /&gt;
It is very important to remember that any data in a URL is easily user manipulated and shouldn&#39;t be trusted. It is not an appropriate place to pass application variables between pages unless they are of a nature that it would be acceptable if the user manipulated them.&lt;br /&gt;
Re-mapping Routes&lt;br /&gt;
From time to time it is necessary to re-route an old URL to a new location. Traditionally you would use a redirect page to let users know to update their bookmarks and include a link to the new location. Sometimes it is impractical or even impossible to change URLs as is the case when you have 3rd party software systems set up to access and scrape particular URLs.&lt;br /&gt;
If you wanted to route MyRazor.cshtml page to your MVC3 Home/Index controller, you can do so by defining a route like the one below.&lt;br /&gt;
routes.MapRoute(&quot;RT&quot;, &quot; MyRazor.cshtml &quot;,&lt;br /&gt;
new { controller = &quot;OtherController&quot;, action = &quot;Packed&quot; });&lt;br /&gt;
Including Classic ASP.NET as a Sub-directory in an MVC3 Web Application&lt;br /&gt;
If you have a large classic ASP.NET web site that you need to incrementally transition to MVC3 you can put the entire classic ASP.NET web site in your MVC3 web site as a sub-directory. You can then call the IgnoreRoute method seen in the code block below to tell MVC3 to not handle that particular URL path.&lt;br /&gt;
routes.IgnoreRoute(&quot;OldClassicASP/&quot;);&lt;br /&gt;
Constraints&lt;br /&gt;
You can define additional constraints to your defined routes to insure that the values passed for particular parts of your route are valid. This is useful not only for general security related needs but is also useful for scenarios where you might want to have additional routing logic in place for particular routes.&lt;br /&gt;
routes.MapRoute(&lt;br /&gt;
&quot;ColorPath&quot;, // Route name&lt;br /&gt;
&quot;{color}/{controller}/{action}/{id}&quot;, // URL with parameters&lt;br /&gt;
new { controller = &quot;Home&quot;, action = &quot;Index&quot;, id = UrlParameter.Optional } // Parameter defaults&lt;br /&gt;
, new { color=&quot;blue&quot; }&lt;br /&gt;
);&lt;br /&gt;
In the example route above, a new anonymous object is added to the MapRoute path call that adds a constraint to this path. The route will only be used if the color is blue.&lt;br /&gt;
Namespaces&lt;br /&gt;
In large ASP.NET MVC3 applications you can potentially have hundreds of controllers. This can become problematic because the .NET Framework looks in the Controllers folder and all sub-folders looking for controllers to match up with the defined routes.&lt;br /&gt;
To help you organize your code, you can add namespaces to your routes to constrain the controllers the route will match to particular namespaces. The route below will only use controllers defined in the Home.Guru namespace.&lt;br /&gt;
routes.MapRoute(&quot;NamespacedRoute&quot;, &quot;Cool/{controller}/{action}&quot;,&lt;br /&gt;
new { controller = &quot;Home&quot;, action = &quot;Index&quot;, id = UrlParameter.Optional } , null,&lt;br /&gt;
, new string[] { &quot;Home.Guru&quot; });&lt;br /&gt;
Global Filters&lt;br /&gt;
If you want to define code that runs before or after your routing calls, you can define a global filter. Global filters are registered in the Global.asax.cs file by adding a line to the RegisterGlobalFilters method. This method, by default, registers the HandleErrorAttribute that is used to handle error conditions in ASP.NET MVC3 applications.&lt;br /&gt;
If you wanted to add a copyright notice at the bottom of all of your pages, you could add a global filter attribute that overrides the OnResultExecuted method which is run after your page has run.&lt;br /&gt;
public class CopyrightNoticeAttribute : ActionFilterAttribute&lt;br /&gt;
{&lt;br /&gt;
public override void OnResultExecuted(ResultExecutedContext filterContext)&lt;br /&gt;
{&lt;br /&gt;
filterContext.HttpContext.Response.Write(String.Format(&quot;&amp;lt;h1&amp;gt;Copyright {0}&amp;lt;/h1&amp;gt;&quot;,DateTime.Now.Year));&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
Once your custom attribute has been written you can add it to the global.asax.cs file.&lt;br /&gt;
public static void RegisterGlobalFilters(GlobalFilterCollection filters)&lt;br /&gt;
{&lt;br /&gt;
filters.Add(new CopyrightNoticeAttribute());&lt;br /&gt;
filters.Add(new HandleErrorAttribute());//Default in MVC3&lt;br /&gt;
}&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
------------------*--------------------------*-----------------------------------*-------------------------&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hanutechvision.blogspot.com/feeds/5793494320331543518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hanutechvision.blogspot.com/2014/02/mvc-routes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/5793494320331543518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1056396716722015836/posts/default/5793494320331543518'/><link rel='alternate' type='text/html' href='http://hanutechvision.blogspot.com/2014/02/mvc-routes.html' title='MVC Routes'/><author><name>HanuTechVision</name><uri>http://www.blogger.com/profile/16578082546699840853</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>