ASP.NET Slides:channel9.msdn.com
Sites |
Services |
Web Forms |
Web Pages |
Single Page Apps |
MVC | Web Api |
|
SignalR |
ASP.NET |
There are nine videos, the source code is available from the Web Camp Training Kits, with SignalR, Damian keeps his GitHub in harmony.
In class MainWindow remember to modify private async void Go() to use the appropriate website.
ASP.NET 4.5
- Mod 01: What's New in ASP.NET 4.5
Sites |
Services |
Web Forms |
Web Pages |
Single Page Apps |
MVC |
Web Api |
|
SignalR |
ASP.NET |
- [02:51] - Web development overview
- [10:48] - ASP.NET Web Forms model binding
- [20:27] - Bundling and Optimization
- [39:53] - Page inspector
- [43:58] - Async
Web Camp Training Kits Download
Build, Deploying MVC 4
- Mod 02: Building and Deploying Websites with ASP.NET MVC 4
Covers model creation and database creation.
Capture some screen shots
At about 12:30 Scott does his public ActionResult Foo() { return View(); }
18min00sec:
PM enable-migrations - Migrations folder appears
PM add-migration Initial
PM update-database
- [01:26] - Intro to ASP.NET MVC
- [03:58] - Creating a new ASP.NET MVC site
- [15:19] - Adding a model, controller, view
- [34:57] - Deploying to Windows Azure Web Sites
In this session, you will learn how to get started with ASP.NET MVC 4.
We'll start with a new project, add in data access with Entity Framework Code First,
build out some business logic and client-side interaction,
and deploy it using Windows Azure Web Sites.
But we are not done there: you'll see how new features in ASP.NET MVC,
Entity Framework migrations and Visual Studio 2012 help you to gracefully handle site updates.
HTML5, jQuery
- Mod 03: Creating HTML5 Applications with jQuery
At about 38:00 the Visual Studio 2012 race condition in mvc goes crash - touch web.config to force full rebuild
By now you should know that HTML5 is literally the best thing to happen to the web in years.
There is a massive array of new tags that provide support for video, audio, embedded fonts, databinding, and in-browser data persistence.
When coupled with advancements in JavaScript technology like jQuery and the myriad of jQuery plugins available for free,
the ability to create truly dynamic client experiences is limited only by your imagination.
Add to that the new Single Page Application template using Knockout.js, and you've got a whole new web of opportunities to blow your users' minds.
$(function(){
$('.submit').click( function(){
$('.submit').css('color','#ff0000');
$('#container')
.append( $('Clicked!')
.click( function(){ alert('foo'); } ));
});
});
Models Add Class Person {public int ID string First string Last DateTime Birthday}
Controllers Add Controller PersonController
$(function(){
if ( !Modernizr.inputtypes.datetime){
$("input[type='datetime']").datepicker(); /* The Opera Browser Has A Built In datetimepicker */
}
});
/* Remember to Reference with Razor: @Scripts.Render("~/bundles/jquery")@Scripts.Render("~/bundles/jqueryui") */
Under Content>themes>base is jquery.ui.all.css which may have to be dragged in.
VS WebEssentials useful to hover over css like -moz-box-shadow and get shown browser support by version.
Ctrl-J is css editor displays colour form.
Service Layer Web API
- Mod 04: Building a Service Layer with ASP.NET Web API
ASP.NET Office Apps
- Mod 05: Leveraging Your ASP.NET Development Skills to Build Office Apps
Leveraging Social Services
- Mod 06: Building and Leveraging Social Services in ASP.NET
In this session you will see how to build a social web app using ASP.NET.
In addition you will see a demo of how social authentication works with social web applications such as Facebook, Google, Yammer, LinkedIn, etc.
Help
To get the most out of the Village, visit Village Help
There are some large exciting pictures of Kenyan Wildlife.
View the Lions.
View the Rhinoceros
Quote of the Day"Smoke Wet Cement And Get Really Stoned." < William Straw > ( Son Of Jack )
It is also possible to download in Microsoft Word 95 Format which is not a risk to the 'Melissa' macro virus
Finally if requested a copy of the C.V. will be forwarded with the content embedded in a mail message.
The site contains a number of java applets.
The toolbar, calendar, image marquee, and browser connection greetings.
Check out "Adverts" under "Sites & Adverts" and items in the utility chapter.
Mobile Web
- Mod 07: Building for the Mobile Web
SignalR
- Mod 08: Real-time Communication with SignalR
08min30sec: route
10min30sec: Hub MoveShape javascript:shapeMoved(x,y);
[HubName("moveShape")]
public class MoveShapeHub : Hub
{
public void MoveShape(double x, double y)
{
Clients.Others.shapeMoved(x, y);
}
}
$(function () {
var hub = $.connection.moveShape,
$shape = $("#shape");
hub.client.shapeMoved = function (x, y) {
$shape.css({ left: x, top: y });
};
$.connection.hub.start().done(function () {
$shape.draggable({
drag: function () {
var $this = $(this),
x = this.offsetLeft / (body.clientWidth - $this.width()),
y = this.offsetTop / (body.clientHeight - $this.height());
hub.server.moveShape(x, y);
}
});
});
});
18min00sec: two Browser move.
IE Browser Tools -> Network Capture
Damian has a download at github, that improves on the video(WPF,XAML), the Web Camp Training Kits are more advanced (firework) but tangent.
Windows Azure Services
- Mod 09: Taking Advantage of Windows Azure Services
Sites | Services |
Web Forms |
Web Pages |
Single Page Apps |
MVC | Web Api |
|
SignalR |
ASP.NET |
Web Camps Training Kit: Labs
ASPNET45VisualStudio2012
- Directory of C:\WebCampsTrainingKit\Labs\ASPNET45AndVisualStudio2012\source : WhatsNewASPNET
The new version of Visual Studio introduces a number of enhancements focused on improving the experience and performance when working with Web technologies. Visual Studio Editors for CSS, JavaScript and HTML have been completely revamped to include many of the most in-demand code aids, such as IntelliSense and automatic indentation. Regarding performance, bundling and minification are now integrated as built-in features to easily reduce page load time.
ASPNETWebForms
- Directory of C:\WebCampsTrainingKit\Labs\ASPNETWebForms\source : Ex1-ModelBinding
- Directory of C:\WebCampsTrainingKit\Labs\ASPNETWebForms\source : Ex2-Validation
- Directory of C:\WebCampsTrainingKit\Labs\ASPNETWebForms\source : Ex3-Async
ASP.NET Web Forms 4.5 introduces a number of improvements focused on improving the experience when working with data. These include strongly-typed data controls, model binding capabilities, new request validation features and asynchronous page processing enhancements. In this lab, you will get a chance to try out these new features and learn how they work.
ASPNETWebAPI
- Directory of C:\WebCampsTrainingKit\Labs\ASPNETWebAPI\source : Ex01-ReadOnlyWebAPI
- Directory of C:\WebCampsTrainingKit\Labs\ASPNETWebAPI\source : Ex02-ReadWriteWebAPI
- Directory of C:\WebCampsTrainingKit\Labs\ASPNETWebAPI\source : Ex03-ConsumingWebAPI
Build RESTful APIs with ASP.NET Web API
In this hands-on lab, you will use Web API to build a simple REST API for a contact manager application. You will also build a client to consume the API.
PageInspector
- Directory of C:\WebCampsTrainingKit\Labs\PageInspector\source : Ex1-MVC4
- Directory of C:\WebCampsTrainingKit\Labs\PageInspector\source : Ex2-WebForms
In this Hands-on Lab you will discover a new tool to find and fix web page issues in Visual Studio.
MVC4_ASPNET
- Directory of C:\WebCampsTrainingKit\Labs\ASPNETMVC4\source : Ex2-PhotoGallery
- Directory of C:\WebCampsTrainingKit\Labs\ASPNETMVC4\source : Ex3-MobileSupport
- Directory of C:\WebCampsTrainingKit\Labs\ASPNETMVC4\source : Ex4-Async
In this hands-on lab, you will start with the ASP.NET MVC 4 "Internet Application" project template to create a Photo Gallery application. You will progressively enhance the app using jQuery Mobile and ASP.NET MVC 4's new features to make it compatible with different mobile devices and desktop web browsers. You will also learn about new code recipes for code generation and how ASP.NET MVC 4 makes it easier for you to write asynchronous action methods by supporting ActionResult return types
MVC4_Fundamentals
Directory of C:\WebCampsTrainingKit\Labs\MVC4Fundamentals\source : Ex01-CreatingMusicStoreProject
Directory of C:\WebCampsTrainingKit\Labs\MVC4Fundamentals\source : Ex02-CreatingAController
Directory of C:\WebCampsTrainingKit\Labs\MVC4Fundamentals\source : Ex03-PassingParametersToAController
Directory of C:\WebCampsTrainingKit\Labs\MVC4Fundamentals\source : Ex04-CreatingAView
Directory of C:\WebCampsTrainingKit\Labs\MVC4Fundamentals\source : Ex05-CreatingAViewModel
Directory of C:\WebCampsTrainingKit\Labs\MVC4Fundamentals\source : Ex06-UsingParametersInView
MVC4_DependencyInjection
Directory of C:\WebCampsTrainingKit\Labs\MVC4DependencyInjection\source : Ex01-Injecting Controller
Directory of C:\WebCampsTrainingKit\Labs\MVC4DependencyInjection\source : Ex02-Injecting View
Directory of C:\WebCampsTrainingKit\Labs\MVC4DependencyInjection\source : Ex03-Injecting Action Filter
The Dependency Injection design pattern separates the component behavior from the resolution of dependencies without object intervention. In this Hands-On lab you will learn ASP.NET MVC 4 Dependency Injection features, Unity integration, and Dependency Injection in Controllers, Views and Action Filters.
MVC4_CustomActionFilters
Directory of C:\WebCampsTrainingKit\Labs\MVC4CustomActionFilters\source : Ex01-LoggingActions
Directory of C:\WebCampsTrainingKit\Labs\MVC4CustomActionFilters\source : Ex02-ManagingMultipleActionFilters
In this Hands-on Lab you will create a custom action filter attribute into MVC Music Store solution to catch controller's requests and log the activity of a site into a database table. You will be able to add your logging filter by injection to any controller or action. Finally, you will see the log view that shows the list of visitors.
MVC4_ModelsAndDataAccess
Directory of C:\WebCampsTrainingKit\Labs\MVC4ModelsAndDataAccess\source : Ex1-AddingADatabaseDBFirst
Directory of C:\WebCampsTrainingKit\Labs\MVC4ModelsAndDataAccess\source : Ex2-CreatingADatabaseCodeFirst
Directory of C:\WebCampsTrainingKit\Labs\MVC4ModelsAndDataAccess\source : Ex3-QueryingTheDatabaseWithParametersCodeFirst
Directory of C:\WebCampsTrainingKit\Labs\MVC4ModelsAndDataAccess\source : Ex3-QueryingTheDatabaseWithParametersDBFirst
This Hands-on Lab will show you how to use a database engine in order to store and retrieve the data needed for the Music Store application. To accomplish that, you will start with an existing database and create the Entity Data Model from it. Throughout this lab, you will meet the Database-First approach as well as the Code-First approach.
MVC4_HelpersFormsAndValidation
Directory of C:\WebCampsTrainingKit\Labs\MVC4HelpersFormsAndValidation\source : Ex1-CreatingTheStoreManagerController
Directory of C:\WebCampsTrainingKit\Labs\MVC4HelpersFormsAndValidation\source : Ex2-AddingAnHTMLHelper
Directory of C:\WebCampsTrainingKit\Labs\MVC4HelpersFormsAndValidation\source : Ex3-CreatingTheEditView
Directory of C:\WebCampsTrainingKit\Labs\MVC4HelpersFormsAndValidation\source : Ex4-AddingACreateView
Directory of C:\WebCampsTrainingKit\Labs\MVC4HelpersFormsAndValidation\source : Ex5-HandlingDeletion
Directory of C:\WebCampsTrainingKit\Labs\MVC4HelpersFormsAndValidation\source : Ex6-AddingValidation
Directory of C:\WebCampsTrainingKit\Labs\MVC4HelpersFormsAndValidation\source : Ex7-UnobtrusivejQueryValidation
In ASP.NET MVC 4 Models and Data Access Hands-on Lab, you have been loading and displaying data from the database. In this Hands-on Lab, you will add to the Music Store application the ability to edit that data.
MVC4_EntityFrameworkScaffoldingAndMigrations
Directory of C:\WebCampsTrainingKit\Labs\EntityFrameworkScaffoldingAndMigrations\source : Ex1-UsingMVC4ScaffoldingEFMigrations
In this lab you will learn how to use the ASP.NET MVC 4 scaffolding to automatically generate the baseline of your application's CRUD (Create, Read, Update and Delete). In addition, you will learn how easy it is to use Entity Framework Migrations to perform model updates throughout your entire application.
To resolve the problem of displaying a *.java file raw in the Web-Page, follow these steps:
- Click Start, type Notepad in the Start Search text box, right-click Notepad, and then click Run as administrator.
If you are prompted for an administrator password or for a confirmation, type your password or click Continue.
- On the File menu, click Open. In the File name box, type %windir%\System32\inetsrv\config\applicationHost.config, and then click Open.
- In the applicationHost.config file, press CTRL+F to search for the <requestFiltering> section.
- In the <requestFiltering> section, locate the following code:
<fileExtensions allowUnlisted="false">
- Replace the code that you found in step 4 with the following code:
<fileExtensions allowUnlisted="true">
Note If you want to deny some specific file name extensions for security, you can explicitly add these extensions. For example, see the following code:
<requestFiltering>
<fileExtensions allowUnlisted="true">
<add fileExtension=".asa" allowed="false" />
<add fileExtension=".asax" allowed="false" />
<add fileExtension=".ascx" allowed="false" />
<add fileExtension=".master" allowed="false" />
</fileExtensions>
</requestFiltering>
- On the File menu, click Save.
- Close Notepad.
- Run a Web application that has a file name extension that is not listed in the child elements of the <fileExtensions> section.
When you run iisexpress.exe from command line (without any command line arguments), it starts the first site given in default
applicationhost.config file (%userprofile%\documents\iisexpress\config\applicationhost.config).
To start multiple sites, use /apppool switch as shown below;
iisexpress.exe /apppool:Clr4IntegratedAppPool
Above command would start all the applications that are using 'Clr4IntegratedAppPool' app pool.
Microsoft Studio 2010 xslt - XSL Transformations(SamplePage.XML|UpgradeReport.xslt)
DOM: getElementsByTagName() Method