For example, you want to build an app that is a single page app, and use Twitter/Facebook to log in. (VS 2013)
(1) Create a ASP.NET Web APP
(2) Select SPA
(3) In the solution, add a Web API
(To test your Web API, use WebApiTestClient – download it from Nuget.)
(4) SignalR – Relatime functionality.
Chapter 2: HTML 5 and CSS3 Design with ASP.NET
input type: tel, search, url, email, datetime, date, month, week, time, datetime-local, number, range, color
Applies to <p> tag
Applies to all tags
does not have to be direct descendant
has to be direct descendant
Applies to any element that has the href attribute
For each link that starts with https, add an image
Class Selector (using DOT)
ID Selector (using #)
Modernizr.js is inclided in all VS templates to achieve compatibility with older browsers. With better HTML5 support, use HTML5Shiv.js, also known as HTML5 shim file.
Chapter 3: Asp.net Web Forms Structure
Import your namespace so it can be referenced on each page without the full name
Under app_code, it is possible to use classes created using C# and VB – need to create a VB and CS folder, such as:
and also update web.config file:
Resource files – data dictionary and language files.
*** new: Rename your HTML or TEXT file to *.aspx and they will be compiled into APP_WEB_XXXX.dll like other ASP.NET files!!!
Right click a class (in class diagram/designer), and select Refactor –> Extract Interface to extract the interface.
Chapter 4: Server side controls and client-side controls
HTML Server Controls
Top is the regular button server control; button is the HTML button control (with runat=”server”). make sure to add an ID attribute to HTML server controls.