søndag den 2. oktober 2016

MVC - links to toturials

Build a Character Database App With .NET MVC

ASP.net Core MVC Hello World Program


MVC redirect
Controllers and Actions in ASP.NET MVC – CodeProject

Redirect and POST in ASP.NET MVC – CodeProject

RedirectToAction usage in asp.net mvc - Stack Overflow

ASP.NET MVC: How to Display a Message After Calling RedirectToAction • TalkSharp

MVC State

Maintaining viewstate in Asp.net mvc?

ASP.NET MVC doesn't work with ViewState and Postback?

How to create and access session variables in ASP.NET MVC


ViewBag, ViewData, TempData and View State in MVC   -  VIGTIG

ASP.NET Cookies Overview

How to: Write a Cookie

How do I manually delete a cookie in asp.net MVC 4

Session in ASP.NET MVC

Handling Session and Authentication Timeouts in ASP.NET MVC

Arun Prakash's Blog - WCF - Windows Communication Foundation (endpoints - bindings)

Understanding the MVC Application Execution Process  (vs2010)

Compatibility of ASP.NET Web Forms and ASP.NET MVC

Using Sessions and HttpContext in ASP.NET 5 and MVC6




Data validation
DataAnnotations Validation for Beginner

Using Data Annotations to Customize Data Classes

Email address validation using ASP.NET MVC data type attributes

EmailAddressAttribute Class

Cross-Field Attribute Validation in WPF using MVVM and IDataErrorInfo | Cyle Witruk's Blog

MVVM Data Validation - CodeProject

Custom error message with DataAnnotationsExtensions

Check If username/email already registered using Remote Validation attribute in asp.net mvc

Performing Data Annotation in ASP.Net MVC 5

ASP.NET MVC Model Validation using Data Annotations


Other about MVC

Search – CodeProject
Redirect and POST in ASP.NET MVC – CodeProject return this.RedirectAndPost("http://TheUrlToPostDataTo<http://theurltopostdatato>", postData);


Postback!!!!  Use of 2 controlers one for get without data and one with post  and data......

c# - ASP.Net MVC Postback and Models - Stack Overflow


ASP.NET MVC Postbacks and HtmlHelper Controls ignoring Model Changes - Rick Strahl's Web Log

WebApi - links to tutorials


Overview and Getting Started - This is a series of videos to get you started with ASP.NET Web API. -  2012 versions but still OK-

!! Mvc4 - ASP.net Web API service and create your first Web API : Service
ASP.NET Web API Integration Guide — Simple Injector 2 documentation
http://simpleinjector.readthedocs.io/en/latest/webapiintegration.html
Introduction to the ASP.NET Web API | Pluralsight
https://www.pluralsight.com/courses/aspnetwebapi
Building Your First Web API with ASP.NET Core MVC and Visual Studio — ASP.NET documentation
https://docs.asp.net/en/latest/tutorials/first-web-api.html


Routning - webapi
Routing Basics in ASP.NET Web API   (How Routing Works for Web API)
Routing Basics in ASP.NET Web API


Web API Routing - api/{controller}/{action}/{id} “dysfunctions” api/{controller}/{id}


Attribute Routing in ASP.NET Web API 2


Using Custom Action Names in ASP.NET Web API


Exploring routing in Web API


Web API: Mixing Traditional & Verb-Based Routing
https://blog.appliedis.com/2013/03/25/web-api-mixing-traditional-verb-based-routing/

WCF - links to tutorials including how to keep state and making WCF restful

MS - Getting Started Tutorial:Instead of self hosting, you might host your WCF in the IIS (easy using svc file for registration)https://msdn.microsoft.com/en-us/library/ms734712(v=vs.110).aspx

Describes how to create a WCF contract using a user-defined interface. The contract defines the functionality exposed by the service.
Describes how to implement a service contract. Once a contract is define, it must be implemented with a service class.
Describes how to configure an endpoint for the service in code and how to host the service in a console application. To become active, a service must be configured and hosted within a run-time environment. This environment creates the service and controls its context and lifetime.
Describes how to retrieve metadata used to create a WCF client proxy from a WCF service. This process uses the Add Service Reference functionality within Visual Studio 2011.
Describes how to configure a WCF client Configuring the client requires specifying the endpoint that the client uses to access the service.
Describes how to use the WCF client proxy to invoke service operations.

Walkthrough: Creating a simple WCF Service in Windows Forms (NB: library)

WCF, Learn WCF

Welcome to WCF Tutorial - WCF Tutorial

WCF: From a Beginner's perspective & a Tutorial - CodeProject

A Beginner's Tutorial for Understanding Windows Communication Foundation (WCF)

Top 10 Most Popular Articles Of WCF

Using ASP.NET Sessions from WCF

CRUD Operations using WCF RESTful Service - Part 1 - WCF Tutorial

CRUD Operations using WCF RESTful Service - Part 2 - WCF Tutorial

Stateful Web Services using WCF leveraging ASP.NET infrastructure with BasicHttpBinding

WCF Service - Bindings default security - WCF Tutorial

How to: Publish Metadata for a Service Using a Configuration File

Transport Level Security Vs Message Level Security in WCF - WCF Tutorial

Difference between BasicHttpBinding and WsHttpBinding - WCF Tutorial

Practical guide to WCF RESTful service - WCF Tutorial

5 simple steps to create your first RESTful service - WCF Tutorial

WCF versus WebApi - articles

Choosing which technology to use

The following table describes the major features of each technology.
WCF
ASP.NET Web API
Enables building services that support multiple transport protocols (HTTP, TCP, UDP, and custom transports) and allows switching between them.
HTTP only. First-class programming model for HTTP. More suitable for access from various browsers, mobile devices etc enabling wide reach.
Enables building services that support multiple encodings (Text, MTOM, and Binary) of the same message type and allows switching between them.
Enables building Web APIs that support wide variety of media types including XML, JSON etc.
Supports building services with WS-* standards like Reliable Messaging, Transactions, Message Security.
Uses basic protocol and formats such as HTTP, WebSockets, SSL, JQuery, JSON, and XML. There is no support for higher level protocols such as Reliable Messaging or Transactions.
Supports Request-Reply, One Way, and Duplex message exchange patterns.
HTTP is request/response but additional patterns can be supported throughSignalRand WebSockets integration.
WCF SOAP services can be described in WSDL allowing automated tools to generate client proxies even for services with complex schemas.
There is a variety of ways to describe a Web API ranging from auto-generated HTML help page describing snippets to structured metadata for OData integrated APIs.
Ships with the .NET framework.
Ships with .NET framework but is open-source and is also available out-of-band as independent download.
Use WCF to create reliable, secure web services that accessible over a variety of transports. Use ASP.NET Web API to create HTTP-based services that are accessible from a wide variety of clients. Use ASP.NET Web API if you are creating and designing new REST-style services. Although WCF provides some support for writing REST-style services, the support for REST in ASP.NET Web API is more complete and all future REST feature improvements will be made in ASP.NET Web API. If you have an existing WCF service and you want to expose additional REST endpoints, use WCF and theWebHttpBinding.
Source for this table: WCF and ASP.NET Web API - comparing ASP.NET Web API
https://msdn.microsoft.com/en-us/library/jj823172(v=vs.110).aspx
Web API or WCF - An Architectural Comparison
http://www.slideshare.net/adnanmasood/presentation-web-api-vs-wcf