{"id":4688,"date":"2013-10-09T05:08:27","date_gmt":"2013-10-08T18:08:27","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=4688"},"modified":"2013-10-09T05:08:27","modified_gmt":"2013-10-08T18:08:27","slug":"silverlight-asp-net-mvc-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/silverlight-asp-net-mvc-primer-tutorial\/","title":{"rendered":"Silverlight ASP.Net MVC Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Silverlight ASP.Net MVC Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/Silverlight_Primer-56of.jpg\" title=\"Silverlight ASP.Net MVC Primer Tutorial\"   \/><\/a><p class=\"wp-caption-text\">Silverlight ASP.Net MVC Primer Tutorial<\/p><\/div>\n<p>Today&#8217;s tutorial creates a <a target=_blank title='Silverlight information from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Microsoft_Silverlight'>Silverlight<\/a> Navigation MVC Application website in ASP.Net with Microsoft Visual Studio (2010 Express) building on the knowledge of the previous <a target=_blank href='#ampt' title='ASP.Net MVC Primer Tutorial'>ASP.Net MVC Primer Tutorial<\/a>.   MVC stands for Model\/View\/Controller web design architecture methodology.   Even if you lack skills in the M[odel] bit of this software technique (and the experts recommend a &#8220;fat&#8221; M[odel] element to your design &#8230; guess we should be asking <a target=_blank title='You know who?' href='https:\/\/www.youtube.com\/channel\/HCLcE7mulHEGg'>you know who<\/a>, perhaps?)    Let&#8217;s see what Wikipedia says about MVC below.<\/p>\n<blockquote><p>Model\u2013view\u2013controller (MVC) is a software architecture pattern which separates the representation of information from the user&#8217;s interaction with it.[1][2] The model consists of application data, business rules, logic, and functions. A view can be any output representation of data, such as a chart or a diagram. Multiple views of the same data are possible, such as a bar chart for management and a tabular view for accountants. The controller mediates input, converting it to commands for the model or view.[3]<\/p><\/blockquote>\n<p>In the meantime enjoy this <a target=_blank title='Silverlight ASP.Net MVC Primer Tutorial' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/'>tutorial<\/a> showing you the great MVC methodology for the creation of Silverlight Navigation ASP.Net Application website using Microsoft Visual Studio (Express).   You&#8217;ll notice that the Microsoft Visual Studio 2010 Express needed to have Service Pack 1 (SP1) applied to it to get the ball(s) rolling &#8230; please do not stand in the middle of a tenpin bowling alley examining this too closely &#8230; too many developers have suffered this fate &#8230; and it needs stamping out.   You may also notice the use of Silverlight&#8217;s canvas element which we may revisit in the future for Silverlight and maybe HTML5 and maybe Tcl\/TK.<\/p>\n<p>Downloadable Silverlight ASP.Net (C#) Controller programming source code here for <a target=_blank title='HomeController.cs' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/HomeController.cs_GETME'>HomeController.cs<\/a> after changes and <a target=_blank title='HomeController.cs' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/HomeController.cs-GETME'>HomeController.cs<\/a> before changes (for your comparison).<\/p>\n<p>Downloadable Silverlight ASP.Net (C#) Model programming source code here for <a target=_blank title='AccountModels.cs' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/AccountModels.cs_GETME'>AccountModels.cs<\/a><\/p>\n<p>Downloadable Silverlight ASP.Net (C#) class programming source code here for <a target=_blank title='Extensions.cs' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/Extensions.cs_GETME'>Extensions.cs<\/a> as created for this tutorial to cater for Brushes object that used to be in System.Drawing before Silverlight thanks to <a target=_blank title='Brushes link' href='http:\/\/www.dreamincode.net\/forums\/topic\/252230-defining-a-borderbrush\/'>this great link<\/a>.<\/p>\n<p>Downloadable Silverlight ASP.Net configuration file here for <a target=_blank title='web.config' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/Web.config_GETME'>Web.config<\/a><\/p>\n<p>Downloadable Silverlight ASP.Net Content programming CSS code here for <a target=_blank title='Site.css' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/Site.css_GETME'>Site.css<\/a><\/p>\n<p>Downloadable Silverlight ASP.Net Content Master Page source code here for <a target=_blank title='Site.Master' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/Site.Master_GETME'>Site.Master<\/a><\/p>\n<p>Downloadable Silverlight ASP.Net View Page source code here for <a target=_blank title='Home.xaml' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/Home.xaml_GETME'>Home.xaml<\/a> after changes and <a target=_blank title='Home.xaml' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/Home.xaml-GETME'>Home.xaml<\/a> before changes (for your comparison).<\/p>\n<p>Downloadable Silverlight ASP.Net View Page source code here for <a target=_blank title='About.xaml' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/About.xaml_GETME'>About.xaml<\/a> after changes and <a target=_blank title='About.xaml' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/About.xaml-GETME'>About.xaml<\/a> before changes (for your comparison).<\/p>\n<p>Downloadable Silverlight ASP.Net View Page source code here for <a target=_blank title='App.xaml' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/App.xaml_GETME'>App.xaml<\/a><\/p>\n<p>Downloadable Silverlight ASP.Net View Page source code here for <a target=_blank title='MainPage.xaml' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/MainPage.xaml_GETME'>MainPage.xaml<\/a><\/p>\n<p>Downloadable Silverlight ASP.Net (C# code below) View Page source code here for <a target=_blank title='Home.xaml.cs' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/Home.xaml.cs_GETME'>Home.xaml.cs<\/a> after changes and <a target=_blank title='Home.xaml.cs' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/Home.xaml.cs-GETME'>Home.xaml.cs<\/a> before changes (for your comparison).<\/p>\n<p>Downloadable Silverlight ASP.Net (C# code below) View Page source code here for <a target=_blank title='About.xaml.cs' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/About.xaml.cs_GETME'><b>About.xaml.cs<\/b><\/a> after changes and <a target=_blank title='About.xaml.cs' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/About.xaml.cs-GETME'>About.xaml.cs<\/a> before changes (for your comparison).<\/p>\n<p>Downloadable Silverlight ASP.Net (C# code below) View Page source code here for <a target=_blank title='App.xaml.cs' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/App.xaml.cs_GETME'>App.xaml.cs<\/a><\/p>\n<p>Downloadable Silverlight ASP.Net (C# code below) View Page source code here for <a target=_blank title='MainPage.xaml.cs' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/Silverlight\/MVC\/MainPage.xaml.cs_GETME'>MainPage.xaml.cs<\/a><\/p>\n<p>Link to Silverlight <a target=_blank title='Silverlight information from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Microsoft_Silverlight'>information<\/a> from Wikipedia.<\/p>\n<p>Link to MVC <a target=_blank title='MVC information from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Model%E2%80%93view%E2%80%93controller'>information<\/a> from Wikipedia (as per quote above).<\/p>\n<p>Will (almost) leave you with good Microsoft link about <a target=_blank title='Silverlight' href='http:\/\/www.asp.net\/silverlight'>Silverlight<\/a>.<\/p>\n<p>Will leave you with good Microsoft link about <a target=_blank title='MVC' href='http:\/\/www.asp.net\/mvc'>MVC<\/a>.<\/p>\n<hr \/>\n<p id='ampt'>Previous <a target=_blank title='ASP.Net MVC Primer Tutorial' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=4381'>ASP.Net MVC Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/ASPNet\/MVC\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"ASP.Net MVC Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/ASPNet\/MVC\/ASPNet_MVC_Primer-2of.jpg\" title=\"ASP.Net MVC Primer Tutorial\"   \/><\/a><p class=\"wp-caption-text\">ASP.Net MVC Primer Tutorial<\/p><\/div>\n<p>Today&#8217;s tutorial creates an MVC website in ASP.Net with Microsoft Visual Studio (2010 Express).   MVC stands for Model\/View\/Controller web design architecture methodology.   Even if you lack skills in the M[odel] bit of this software technique (and the experts recommend a &#8220;fat&#8221; M[odel] element to your design &#8230; guess we should be asking <a target=_blank title='You know who?' href='https:\/\/www.youtube.com\/channel\/HCLcE7mulHEGg'>you know who<\/a>, perhaps?) MVC can be great for ASP.Net projects involving websites involving users who log in (ie. membership websites), where you can have the whole registration\/forgot-password\/remember-me\/log-in\/log-out methods coded in seconds.   Let&#8217;s see what Wikipedia says about MVC below.<\/p>\n<blockquote><p>Model\u2013view\u2013controller (MVC) is a software architecture pattern which separates the representation of information from the user&#8217;s interaction with it.[1][2] The model consists of application data, business rules, logic, and functions. A view can be any output representation of data, such as a chart or a diagram. Multiple views of the same data are possible, such as a bar chart for management and a tabular view for accountants. The controller mediates input, converting it to commands for the model or view.[3]<\/p><\/blockquote>\n<p>In the meantime enjoy this <a target=_blank title='ASP.Net MVC Primer Tutorial' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/MVC\/'>tutorial<\/a> showing you the great MVC methodology for the creation of ASP.Net websites using Microsoft Visual Studio (Express).<\/p>\n<p>Downloadable ASP.Net (VB.Net) Controller programming source code here for <a target=_blank title='HomeController.vb' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/MVC\/HomeController.vb_GETME'>HomeController.vb<\/a> after changes and <a target=_blank title='HomeController.vb' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/MVC\/HomeController.vb-GETME'>HomeController.vb<\/a> before changes (for your comparison).<\/p>\n<p>Downloadable ASP.Net configuration file here for <a target=_blank title='web.config' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/MVC\/Web.config_GETME'>Web.config<\/a> after changes and <a target=_blank title='Web.config' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/MVC\/Web.config-GETME'>Web.config<\/a> before changes (for your comparison).<\/p>\n<p>Downloadable ASP.Net Content programming CSS code here for <a target=_blank title='Site.css' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/MVC\/Site.css_GETME'>Site.css<\/a> after changes and <a target=_blank title='Site.css' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/MVC\/Site.css-GETME'>Site.css<\/a> before changes (for your comparison).<\/p>\n<p>Downloadable ASP.Net Content Master Page source code here for <a target=_blank title='Site.Master' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/MVC\/Site.Master_GETME'>Site.Master<\/a> after changes and <a target=_blank title='Site.Master' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/MVC\/Site.Master-GETME'>Site.Master<\/a> before changes (for your comparison).<\/p>\n<p>Downloadable ASP.Net View Page source code here for <a target=_blank title='Index.aspx' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/MVC\/Index.aspx_GETME'>Index.aspx<\/a> after changes and <a target=_blank title='Index.aspx' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/MVC\/Index.aspx-GETME'>Index.aspx<\/a> before changes (for your comparison).<\/p>\n<p>Downloadable ASP.Net View Page source code here for <a target=_blank title='About.aspx' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/MVC\/About.aspx_GETME'>About.aspx<\/a> after changes and <a target=_blank title='About.aspx' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/MVC\/About.aspx-GETME'>About.aspx<\/a> before changes (for your comparison).<\/p>\n<p>Downloadable ASP.Net View Page source code here for <a target=_blank title='Contact.aspx' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/MVC\/Contact.aspx_GETME'>Contact.aspx<\/a> as created for this tutorial (via copy and amend method).<\/p>\n<p>Downloadable ASP.Net View Page source code here for <a target=_blank title='Service.aspx' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/MVC\/Service.aspx_GETME'>Service.aspx<\/a> as created for this tutorial (via add new View method 1 of 2).<\/p>\n<p>Downloadable ASP.Net View Page source code here for <a target=_blank title='News.aspx' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/MVC\/News.aspx_GETME'>News.aspx<\/a> as created for this tutorial (via copy and amend method).<\/p>\n<p>Downloadable ASP.Net View Page source code here for <a target=_blank title='Guestbook.aspx' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/MVC\/Guestbook.aspx_GETME'>Guestbook.aspx<\/a> as created for this tutorial (via add new View method 2 of 2).<\/p>\n<p>Downloadable ASP.Net View Page source code here for <a target=_blank title='Links.aspx' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/MVC\/Links.aspx_GETME'>Links.aspx<\/a> as created for this tutorial (via copy and amend method).<\/p>\n<p>Link to MVC <a target=_blank title='MVC information from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Model%E2%80%93view%E2%80%93controller'>information<\/a> from Wikipedia (as per quote above).<\/p>\n<p>Will leave you with good Microsoft link about <a target=_blank title='MVC' href='http:\/\/www.asp.net\/mvc'>MVC<\/a>.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d4381' onclick='var dv=document.getElementById(\"d4381\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?cat=47\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d4381' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr \/>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d4688' onclick='var dv=document.getElementById(\"d4688\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?cat=47\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d4688' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today&#8217;s tutorial creates a Silverlight Navigation MVC Application website in ASP.Net with Microsoft Visual Studio (2010 Express) building on the knowledge of the previous ASP.Net MVC Primer Tutorial. MVC stands for Model\/View\/Controller web design architecture methodology. Even if you lack &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/silverlight-asp-net-mvc-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,37,39],"tags":[106,176,184,782,824,997,1143,1319,1383,1471],"class_list":["post-4688","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","category-visual-studio","tag-asp-net","tag-c","tag-canvas","tag-microsoft","tag-mvc","tag-programming","tag-silverlight","tag-tutorial","tag-visual-studio","tag-xaml"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/4688"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=4688"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/4688\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=4688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=4688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=4688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}