搜尋此網誌

顯示具有 Web API 標籤的文章。 顯示所有文章
顯示具有 Web API 標籤的文章。 顯示所有文章

2018-03-03

ASP.NET Identity

0 意見
ASP.NET Core Identity

ASP.NET Identity : The Official Microsoft ASP.NET Site

ASP.NET Identity


ASP NET MVC 5 新功能探索之《ASP.NET Identity》
Customizing ASP.NET Authentication with Identity MVA Channel 9
Sample Code

Account Confirmation and Password Recovery with ASP.NET Identity (C#)




ASP.NET 标识初探
使用 ASP.NET 标识进行外部身份验证
在 ASP.NET 标识中存储用户数据

领先技术 - ASP.NET Core 中的 Cookie、声明和身份验证
领先技术 - ASP.NET Core 中基于策略的授权




Stuntman




Bearer Token Authentication in ASP.NET Core

Implement Security using ASP.NET Core Identity in 10 Easy Steps

Introducing IdentityServer4 for authentication and access control in ASP.NET Core




New Tutorial Published on Migrating to ASP.NET Identity
New tutorial for migrating applications with membership and User Profile information from Universal Providers to ASP.NET Identity
Authentication and Authorization with ASP.net Webforms

Building a simple ToDo application with ASP.NET Identity and associating Users with ToDoes
ASP.NET Identity Database

Understanding, Using and Customizing ASP.NET Identity System for Authentication and Authorization

How to add ASP.NET MVC5 Identity Authentication to existing database

Getting Entity Framework 6 and ASP.NET Identity 2 to play ball with MySQL




Announcing RTM of ASP.NET Identity 2.0.0*****




ASP.NET MVC and Identity 2.0: Understanding the Basics ******
ASP.NET Identity 2.0: Setting Up Account Validation and Two-Factor Authorization
ASP.NET Identity 2.0: Customizing Users and Roles
ASP.NET Identity 2.0 Extending Identity Models and Using Integer Keys Instead of Strings
ASP.NET Identity 2.0: Extensible Template Projects
ASP.NET Identity 2.0: Implementing Group-Based Permissions Management

ASP.NET Identity 2.0: Introduction to Working with Identity 2.0 and Web API 2.2
ASP.NET Web Api and Identity 2.0 – Customizing Identity Models and Implementing Role-Based Authorization
ASP.NET Identity 2.1 with ASP.NET Web API 2.2 (Accounts Management) – Part 1




ASP.NET: Understanding OWIN, Katana, and the Middleware Pipeline
ASP.NET Web Api 2.2: Create a Self-Hosted OWIN-Based Web Api from Scratch
ASP.NET Web Api: Understanding OWIN/Katana Authentication/Authorization Part I: Concepts
ASP.NET Web Api: Understanding OWIN/Katana Authentication/Authorization Part II: Models and Persistence
ASP.NET Web API: Understanding OWIN/Katana Authentication/Authorization Part III: Adding Identity




ASP.NET Identity 2.0: Introduction to Working with Identity 2.0 and Web API 2.2 ***
ASP.NET Identity 2.0: Introduction to Working with Identity 2.0 and Web API 2.2
ASP.NET Web Api and Identity 2.0 – Customizing Identity Models and Implementing Role-Based Authorization

ASP.NET Identity 2.1 with ASP.NET Web API 2.2 ***

Announcing preview of Microsoft.AspNet.Identity 2.0.0-alpha1
Updating ASP.NET applications from ASP.NET Identity 1.0 to 2.0.0-alpha1
ASP.NET Identity 2.1.0-alpha1

Customizing profile information in ASP.NET Identity in VS 2013 templates

SignalR and user identity (authentication and authorization)

ASP.NET Core Identity ***
ASP.NET Identity with the Entity Framework
Customization Options With ASP.NET Identity
Implementing ASP.NET Identity

ASP.NET Forms Authentication in 4 Easy Steps

Implementing custom password policy using ASP.NET Identity
Announcing preview of Microsoft.AspNet.Identity 2.0.0-beta1
Per request lifetime management for UserManager class in ASP.NET Identity
Adding two-factor authentication to an application using ASP.NET Identity


Adding Two-Factor authentication to an ASP.NET application

External Authentication with ASP.NET Identity





Some notes on using Organizational Auth with ASP.NET
Implementing Ajax Login in ASP.NET MVC
ASP:NET MVC 5 Confirm Registration Email
Social Login in ASP.NET MVC




从Membership 到 .NET4.5 之 ASP.NET Identity

ASP.NET Identity
[ASP.NET MVC] ASP.NET Identity登入技術剖析
[ASP.NET MVC] ASP.NET Identity登入技術應用

[ASP.NET] Visual Studio 2013 的 Form 驗證
ASP.NET Identity簡介
打造現代網站應用: (3) ASP.NET Identity
ASP NET MVC 5 新功能探索之《ASP.NET Identity》

康廷數位購物網 8 -認識 ASP.NET Identity 驗證授權機制
康廷數位購物網 9 -安裝 ASP.NET Identity
康廷數位購物網 10 -開始導入ASP.NET Identity

如何利用 ASP.NET Identity 實作 GitHub OAuth2 登入驗證
ASP.NET Identity 如何取得 Facebook 登入的 Access Token

淺談 oAuth 2.0
[ASP.NET] 使用 OAuth 2.0 整合 Google、Facebok、WindowsLive、Xuite 登入
筆記:使用Google帳號登入ASP.NET MVC網站
筆記:使用Facebook帳號登入ASP.NET MVC網站

使用 ASP.NET Identity




在MVC5中自定 ASP.NET Identity
在ASP.NET MVC5中建置以角色為基礎的授權機制
ASP.NET Identity Example - ToDo
建置一個支援google、Facebook帳號可登錄的MVC5應用程式
修改 ASP.NET Identity 預設的 Table Name

AspNet Identity 玩弄手札 第一彈 Code First 自訂 profile data
AspNet Identity 玩弄手札 第二彈 Social Login Facebook 登入

Asp.net Identity 2.0 將索引變成 int 值, 並且新增預設最高使用者帳密
[ASP.NET Identity 2.0]如何將 ASP.NET Identity 的資料表 PK 欄位的資料型別由 NVARCAHR(128) 改為 INT

[ASP.NET Identity] Identity 起手式




MVC5 - ASP.NET Identity登录原理 - Claims-based认证和OWIN
Asp.NET MVC5 efficiently check role claim

Authentication Protocols, Web UX and Web API

Two Factor Authentication In ASP NET MVC

Thinktecture.IdentityManager as a replacement for the ASP.NET WebSite Administration tool

Custom authorization in WPF




ASP.NET CORE IDENTITY WITHOUT ENTITY FRAMEWORK

EXORCISING ENTITY FRAMEWORK FROM ASP.NET IDENTITY




[ASP.NET WebAPI] WebAPI的使用者驗證及授權
[WebAPI] 權限管理:檢查使用者權限
[WebAPI] 權限管理:透過AuthorizationFilterAttribute來客製化權限管理

2018-02-23

JWT Authentication

0 意見
JWT Authentication for Microservices in .NET *****

以 JSON Web Token 替代傳統 Token
OAuth 2和JWT - 如何设计安全的API?



JSON Web Token (JWT) with Web API
Securing Webapi using Json Web Token (JWT) in C#

How to secure an ASP.NET Web API ***
JWT Authentication for Asp.Net Web Api ***

[ASP.NET MVC][OWIN]Web API使用JWT(Json Web Token)進行驗證授權
User Authentication in ASP.NET WEB API 2 with RSA-signed JWT Tokens (part 1)
Create a RESTful API with authentication using Web API and Jwt *****
JSON Web Token in ASP.NET Web API 2 using Owin
ASP.NET Web API Claims Authorization with ASP.NET Identity 2.1 – Part 5
[實作]驗證機制(Authentication)Moderm Token-Based(ASP.NET Web API v2 JWT)
JWT Validation and Authorization in ASP.NET Core



[ASP.NET Core]使用JWT(Json Web Token)進行驗證授權

使用者驗證與授權 - Token Based Authentication:發行 JSON Web Token
使用者驗證與授權 - Token Based Authentication:驗證 JSON Web Token
Asp.net Core WebApi 项目使用Jwt进行授权管理和权限验证
详解ASP.NET Core Token认证,asp.net token



Manually validating a JWT using .NET



Customizing Token Based Authentication (OAuth) in ASP.NET Web API with Existing User Database

Claims based security

0 意見
Security and cryptography

2018-02-21

ASP.NET Web API 參考

0 意見
API 設計
API 實作 *****
ASP.NET Web API

The Web API Checklist

Microsoft REST API Guidelines
非RESTful的微软REST API指南




Designing Evolvable Web APIs with ASP.NET ***
Source for the book

Over 100 ASP.NET Web API samples

List of ASP.NET Web API and HttpClient Samples

簡明RESTful API設計要點
HTTP狀態碼
Returning Server-Side Errors from AJAX Calls ***

使用Asp.Net MVC打造Web Api
ASP.NET MVC4 - Web API 開發系列 [從無到有,建立 CRUD 的應用程式]
ASP.NET MVC 4 Web API 開發 (全攻略) [上]
twMVC#8 - ASP.NET Web API課後補充資料與專案範例檔
ASP.NET WebAPI: Getting Started with MVC4 and WebAPI
ASP.NET Web API 參數繫結
Mapping UrlEncoded POST Values in ASP.NET Web API

Swagger
10 個原因我喜歡用 [Swagger](http://swagger.io/) spec 來定義新開發的 RESTful APIs.
twMVC#21以實例說明ASP.NET Web API 服務的開發與測試過程
在 Azure App Service 中開始使用 API Apps、ASP.NET 和 Swagger
使用 Swagger UI 与 Swashbuckle 创建 RESTful Web API 帮助文件
Add Swagger to your .NET Core Web API
Swashbuckle Swagger Integration In WebApi 2
MOTC Transport API V2 公車動態

RESTful API如何一次完成多個相依請求

如何在現有 ASP.NET MVC 5 專案上加入 ASP.NET Web API

[ASP.NET Web API]Versioning Web API by SDammann.WebApi.Versioning


Web APIs and the n+1 Problem ***
8 ways to improve ASP.NET Web API performance

微小的开心功能第2部分-Visual Studio 2012 中的ASP.NET Web API
Working with SSL in Web API
ASP.NET Web API: Using Namespaces to Version Web APIs
跨域资源共享 CORS 详解
浏览器同源政策及其规避方法

ASP.NET CORS 样例
Enabling Cross-Origin Requests in ASP.NET Web API 2
ASP.NET Web API CORS預覽功能完整剖析
ASP.NET Web API and CORS Support
ASP.NET Web API: CORS支持和基于属性的路由改进
進擊的 ASP.NET Web API 2 巨人 – 打造支援各種裝置及平台的服務
CORS support for ASP.NET Web API
[ASP.NET MVC] 使用 ASP.NET MVC Web API CORS 以達到AJAX跨網域請求 (Beta Preview)
ASP.NET Web API v2 Cross-origin resource sharing made easy

Accessing Session Using ASP.NET Web API
ASP.NET Web API session or something?
Web API how to acces session?


[ASP.NET] Web API in Web Form
[ASP.NET] WebAPI Get 使用複雜型別
[Web API][筆記]在WebForm裡面建立Web API程式
[Web API][筆記] POST 總是 Nothing 或 null
ASP.NET Web API 參數繫結
Passing multiple simple POST Values to ASP.NET Web API
Using jQuery to POST [FromBody] parameters to Web API
【SQL Server | Asp.net MVC】使用WebAPI存取FileTable



使用json web token
Bearer Token

Securing ASP.NET Web APIs
Securing ASP.NET Web API ***
Protect your Web API from CSRF attacks with ANTI FORGERY TOKENS


如何在 ASP.NET Web API 2 專案中啟用表單驗證 (Forms Authentication)

Two Factor Authentication in ASP.NET Web API & AngularJS using Google Authenticator
How To Get GeoLocation Address By Using Google GeoLocation API In ASP.NET Web API

[ASP.NET]Web API bearer token 驗證
[ASP.NET]Web API 加入 Refresh Token
[ASP.NET]使用透過 AngularJS 來存取 Token Base Web API
JSON Web Token in ASP.NET Web API 2 using Owin

How Do You Call a Web API Endpoint Without Using JavaScript?
How Do You Post to a Web API Controller from an MVC Controller?
How Do You Display WebAPI Model Errors in MVC?
How Can You Use Web API to Authenticate Users of Your MVC Application?



[Web API]如何針對 Message Handler 進行單元測試
Using Dependency Injection with ASP.NET Web API Hosted on Katana
Using dependency injection with WebAPI in the RAW stack


Consuming a Web API Asynchronously in ASP.NET MVC or WPF




Top 10 ASP.NET Web API Interview Questions Introduction to ASP.NET Web API
Adding Queryable Support to ASP.NET Web API Controller Action Methods

Migrating ASP.NET Web Forms to the MVC Pattern with the ASP.NET Web API

ASP.NET Web API: Using Namespaces to Version Web APIs
Media Formatters


Passing Multiple Parameters to ASP.NET Web API With jQuery

ASP.Net Web API: Create, Deploy to Azure and Manage Using Azure API Management






ODataLib
OData v4 Client Code Generator

Media Resource Support for OData in Web API

A Message Flow in ASP.NET Web API OData
Getting started with ASP.NET Web API OData in 3 simple steps
Introducing batch support in Web API and Web API OData
OData Scaffolding

Getting started with OData v4 in ASP.NET Web API
Getting started with ASP.NET Web API 2.2 for OData v4.0

Introducing batch support in Web API and Web API OData
OData Web API Batching with Actions
ASP.NET Web API Pagination using OData operators

Visualize Streaming Data the Easy Way with OData






Test-Driven Development with Content Negotiation in the Web API

RestSharp Simple REST and HTTP API Client for .NET *****
How To Consume a WebAPI with RestSharp

WebApiContrib
WebAPIContrib is a collection of open source projects to help improve your work with ASP.NET Web API.

ASP.NET Web API: CORS support and Attribute Based Routing Improvements






A WebAPI Basic Authentication MessageHandler
A WebAPI Basic Authentication Authorization Filter

Introducing ASP.NET Web API Throttling handler

Building ASP.Net Web API RESTful Service ***
Creating a REST service using ASP.NET Web API






HTTP Header 入門详解

HTTP API Design Guide

RESTful API Design ***

架构风格与基于网络的软件架构设计
架构风格与基于网络应用软件的架构设计(中文修订版)
RESTful Web Services Cookbook中文版

RESTful API 设计指南

深入探索REST
虚拟研讨会:如何设计好的RESTful API?
理解本真的REST架构风格
理解本真的REST架构风格
InfoQ eMag: REST
如何设计一个优秀的API
Web API设计方法论
系列文章——Web API从开始到结束

Accepting Raw Request Body Content with ASP.NET Web API
Introducing ASP.NET Web API Throttling handler
Head First into ASP.NET Web API – A Time Card Service using Media Formatters and KnockoutJs
Per request tracing in ASP.NET Web API






進擊的 ASP.NET Web API 2 巨人 – 打造支援各種裝置及平台的服務
What is new in ASP.NET Web API 2
Announcing the Release of ASP.NET MVC 5.1, ASP.NET Web API 2.1 and ASP.NET Web Pages 3.1 *****
What’s New in ASP.NET MVC 5 that make your MVC web sites shine
ASP.NET MVC5, Web API2 and Knockoutjs Web Application Development
Editable HTML Table with CRUD operations using KnockoutJS and ASP.NET WEB API

Looking at ASP.NET MVC 5.1 and Web API 2.1 - Part 1 - Overview and Enums ***
Looking at ASP.NET MVC 5.1 and Web API 2.1 - Part 2 - Attribute Routing with Custom Constraints
Looking at ASP.NET MVC 5.1 and Web API 2.1 - Part 3 - Bootstrap and JavaScript enhancements
Looking at ASP.NET MVC 5.1 and Web API 2.1 - Part 4 - Web API Help Pages, BSON, and Global Error Handling
ASP.NET Web API exception logging with Raygun.io

Handling Errors in Web API Using Exception Filters and Exception Handlers ***
Exception Handling in ASP.NET Web API - A Guided Tour ***
ASP.NET Web API 2: ExceptionLogger and Exception Handler ***

Working With Attribute Routing In Web API 2

Ignoring routes in ASP.NET Web API

.NET WebAPI 用ExceptionFilterAttribute实现错误(异常)日志的记录(log4net做写库操作)
.NET WebAPI 用ActionFilterAttribute实现token令牌验证与对Action的权限控制
.NET WebAPI 实现图片上传(包括附带参数上传图片)





Creating Help Pages for ASP.NET Web API

Web API(RESTFul)協同文件與測試工作之道-Postman Team訂閱!
如何在 ASP.NET MVC 4 專案加上 Web API 與 API 說明頁面
[ASP.NET WebAPI] 如何在 ASP.NET MVC 專案加上 Web API 說明文件
Introducing the ASP.NET Web API Help Page (Preview)
ASP.NET Web API Help Page Part 1: Basic Help Page customizations
ASP.NET Web API Help Page Part 2: Providing custom samples on the Help Page
ASP.NET Web API Help Page Part 3: Advanced Help Page customizations

Adding a simple Test Client to ASP.NET Web API Help Page
Using ApiExplorer to export API information to PostMan, a Chrome extension for testing Web APIs
Making ASP.NET Web API Help Page work on self-hosted services
ASP.NET Web API: Generating a Web API help page using ApiExplorer
Design-time generation of help page (or client) for ASP.NET Web API

Postman Using interceptor to read and write cookies

Self-Hosting an ASP.NET Web API






Contact Manager Web API
ASP.NET Web API samples






ASP.NET4.5Web API及非同步程序开发系列(1)

使用ASP.Net WebAPI构建REST服务(一)——简单的示例

Calling a RESTful Service like ASP.NET WebApi using WebApiClient






開發工具:
I'm Only Resting A feature-rich WinForms-based HTTP client

2016-10-07

HttpWebRequest WebClient HttpClient

0 意見
HttpWebRequest
WebClient
HttpClient

WebClient vs HttpClient vs HttpWebRequest

.NET HttpClient的缺陷和文档错误让开发人员倍感沮丧

逐步解說:使用 Async 和 Await 存取 Web (C# 和 Visual Basic)

Code Listings Chapter 16: Networking

[C#.NET][Web API] 調用 Server 功能
ASP.NET MVC 使用政府公開資料 Part.1

Calling a Web API From a .NET Client in ASP.NET Web API 2 (C#)
The new System.Net.Http classes: message content
Calling MVC4 WebAPI methods from C# Metro UI Client using PostAsync, HttpClient & Json




CODE-使用C#程式從網站下載檔案
利用 WebClient 類別模擬 HTTP POST 表單送出的注意事項

WebClient versus HttpClient to consume HTTP requests
ASP.NET MVC Web API 学习笔记----HttpClient简介

Windows Phone 7 – 使用WebClient與HttpWebRequest的差異
WebClient與HttpWebRequest
改用 HttpClient 的理由

[ASP.NET] 使用 HttpWebRequest POST/GET 方法 (解決錯誤417,Server重新導向)


Using .NET HttpClient to capture partial Responses




ASP.NET MVC Web API 学习笔记----HttpClient简介
Designing Evolvable Web APIs with ASP.NET Chapter 14. HttpClient

Visual Studio samples
Introduction to HttpClient
Using JSON.NET with ASP.NET Web API
Restful Application
ASP.NET Web API - with NUnit test project

HttpClient: Downloading to a Local File
C# HttpClient examples
How to use System.Net.HttpClient to post a complex type?
Using HttpClient to Consume ASP.NET Web API REST Services ***

Making a request synchronously

Async call with await in HttpClient never returns ***
HttpClient.GetAsync(…) never returns when using await/async ***




Get file size before downloading using webclient
How to retrieve file size from a remote URL (using #CSharp)
Using .NET HttpClient to capture partial Responses

2014-07-29

ASP.NET MVC 參考

0 意見
10 Good Practices for ASP.NET MVC Apps ***
Top "Must Know" Frameworks for .NET web developers *****




Introduction to MVC
Building Web Apps with ASP.NET Jump Start
Developing ASP.NET MVC 4 Web Applications Jump Start


Learn MVC Project in 7 days

Step by Step implementing Onion architecture in ASP.NET MVC Application

Learn MVC ( Model view controller) Step by Step

ASP.NET MVC 4 Content Map
MVC Interview Questions and Answers (All about MVC)

MVC Application Lifecycle
The Circle of Life…cycle of MVC Applications

30 Days of Bootstrap
30 Days of Bootstrap with the MVC Framework


Session Value Providers in MVC
Session Manager Utility for asp.Net

MVC and Templates with T4 and T4MVC
Extending Editor Templates for ASP.NET MVC




mrkt的ASP.NET MVC
KingKong Bruce的ASP.NET MVC
天空的垃圾場 MVC教學
NET Magazine國際中文電子雜誌

ASP.NET MVC 康廷數位
ASP.NET MVC 學習資源整理
ASP.NET MVC 自學日誌

ASP.NET MVC for ASP.NET Developers
ASP.NET MVC Do's and Dont's Best Practices

ASP.NET MVC 5 網站開發美學




ASP.NET MVC 常見問題解答 Part 1
如何在 .NET 4.5 的 ASP.NET MVC 4 網站使用 Scaffold 範本
Creating a Custom Scaffolder for Visual Studio

如何對 ASP.NET MVC 4 原始碼進行偵錯 (終極完整觀念版)
How to debug your application with MVC fresh source code

Mobile Web再進化: Mobile Web實作--從ASP.NET MVC 4.0開始
架構設計好簡單系列 - 簡單分層你的網站 (如何快速從Web Form 變成 ASP.NET MVC)
[.NET][實作篇] 實作自己專屬的 ASP.NET MVC Model Metadata 產生器

ASP.NET MVC 4 最新 Facebook 應用程式範本(Web Tools 2012.2)
ASP.NET MVC Facebook Birthday App
Updating the MVC Facebook API

提升ASP.NET MVC專案安全性與效能小技巧
MVC 4發行至IIS 7.5之後Bundle功能無法運作
發行ASP.NET MVC 4之前遠端Windows Server 2008 R2的環境準備

Attribute
MVC Attributes
AttributeRouting
ASP.NET MVC – URL routing
Using Attribute Routing in ASP.NET MVC
Understanding Attribute Routing in ASP.NET MVC
Creating Your Own ASP.NET MVC Authorization Attribute

A dynamic RequireSsl Attribute for ASP.NET MVC

關於IE快取更新檢查設定
ASP.NET MVC how to disable automatic caching option?

10 Points to Secure Your ASP.NET MVC Applications *****

Practical ASP.NET MVC (3) tips
Deploy a Secure ASP.NET MVC application with OAuth, Membership and SQL Database
Implement secure ASP.NET MVC applications

Introducing ASP.NET MVC Throttling Filter ***

How to change the default ASP.NET MVC theme

Server-side Responsive Design with ASP.NET MVC and Interchange ***






跟著Wade學習ASP.NET MVC + NHibernate 目錄
[ASP.NET MVC 開發系列] 第一次使用 NHibernate 就上手 (NHibernate Designer 篇)
快快樂樂學 Code First 開發,以現有資料庫為例
ASP.NET MVC Controller Dependency Injection for Beginners

ASP.NET MVC 防範 CSRF 攻擊 - 在 AJAX 裡使用 AntiForgeryToken 的處理
Protect ASP.NET Applications Against CSRF Attacks

[ASP.net MVC] Html Table資料列的上移、下移,利用Ajax修改DB
Json.NET 取代 JsonResult

ASP.NET MVC - 下拉選單的日期選擇器

Exception Handling in ASP.NET MVC Web Application using C#
Exception Handling in ASP.NET MVC - At Application Level - Using Global.aspx
Exception Handling in ASP.NET MVC - At Page/View Level - Using Action Method

Understanding HTML Helpers in ASP.NET MVC
Understanding AJAX Helpers in ASP.NET MVC
ASP.net MVC HTML5 Helpers Toolkit
Razor Generator

ASP.NET MVC - ValidateAntiForgeryToken 與 自定 HandleError 處理顯示客製的錯誤訊息頁




Design and Develop a website using ASP.NET MVC 4, EF, Knockoutjs and Bootstrap : Part - 1
Learn MVC (Model View Controller) step by step in 7 days – Day 1
MVC Basic Site: Step 1 – Multilingual Site Skeleton
"How to series" about MVC, jQuery, JSON, paging, mapRoute
An Absolute Beginner's Tutorial on ASP.NET MVC for Web Forms Developers
How to implement a custom IPrincipal in ASP.NET MVC 4 internet project
Localize your MVC app based on a subdomain
Understanding and Implementing Repository and Unit of Work Pattern in ASP.NET MVC Application
A Beginner's Tutorial on Various Ways of Passing Data in ASP.NET MVC Application

Building A Robust Paged Table In ASP.NET MVC

Request Validation in ASP.NET
ASP.NET MVC 開發心得分享 (28):深入了解 ModelState 內部細節

ASP.NET MVC Client Side Validation
Model Validation in ASP.NET MVC
Validations in MVC

Custom Routes in ASP.NET MVC
ASP.NET MVC Custom Action Filters
Play Videos in ASP.NET MVC using Custom Action Filter
Creating Asynchronous Actions in ASP.NET MVC
ActionFilter Attribute 共用特性與狀態保存 ***

Create a JavascriptResult for ASP.NET MVC




Setting up for ASP.NET MVC 4 and Mobile Web Development
用ASP.NET MVC 4 和 jQuery Mobile制作一个可切换的桌面和移动站点
How do I use IValidatableObject?
Entity Framework Validation with IValidatableObject Example




Getting Data From View to Controller in MVC
用FormCollection取代Request.Form,Why?

MVC Unit Testing Unleashed
Content-Type:application/x-www-form-urlencoded
public void Post(FormDataCollection form)
{
     var a = Request.GetQueryNameValuePairs();
     var b = Request.RequestUri.ParseQueryString();
}




Announcing the Release of ASP.NET MVC 5.2, Web API 2.2 and Web Pages 3.2

ASP.NET MVC 5 新功能探索
如何從 ASP.NET MVC 4.0 升級到 ASP.NET MVC 5.0 或 5.1 版

[TechDays 2013] ASP.NET MVC5 新功能探討 - 個人重點筆記(圖文)
One ASP.NET及完美的開發體驗 - ASP.NET MVC 5

ASP.NET MVC 5 Authentication Filters
Attribute Routing in ASP.NET MVC 5
Release Candidates for ASP.NET MVC 5.1, Web API 2.1 and Web Page 3.1.
ASP.NET MVC 5.1 – Whats New
Looking at ASP.NET MVC 5.1 and Web API 2.1 - Part 3 - Bootstrap and JavaScript enhancements

Scaffolding With ASP.net MVC 5

Enums support in ASP.NET MVC 5.1- Part 1

A .NET Developer Primer for Single-Page Applications

Understanding Internationalization in ASP.NET MVC
ASP.NET MVC 5 Internationalization
ASP.NET MVC 5 Internationalization · Date and Time




IFileClient – Generalizing storage access in ASP.NET web applications

Request Validation In ASP.NET Web Pages

Handling Errors in ASP.NET MVC Applications
Creating a Default Error Handler for a Controller
Handling Errors Effectively in ASP.NET MVC

A Beginner's Tutorial for Understanding and Implementing Caching in ASP.NET MVC
Runtime Caching with SqlChangeMonitor

Using bower in ASP.NET MVC

Generate Bar Code Using ASP.NET MVC 4

How to load Views from Assembly in MVC
How to load views from database in MVC

ASP.NET MVC Extensibility with MEF






Introduction to ASP.NET Boilerplate
ASP.NET Boilerplate
ASP.NET MVC Boilerplate
nerddinner MVC example

ASP.NET MVC Documents Sample
ASP.NET MVC Documents sample Part 2





70-486 Developing ASP.NET MVC 4 Web Applications
Microsoft Exam 70-486 Study Guide
How to pass Microsoft Exam 70-486 (Developing ASP.NET MVC 4 Web Applications) in 30 days
Certification 70-486: Developing ASP.NET MVC 4 Web Applications




Deploy a Secure ASP.NET MVC application with OAuth, Membership and SQL Database




Asp.net MVC中防止HttpPost重复提交
ASP.NET MVC Tip #46 – Don’t use Delete Links because they create Security Holes ***
HTTP Verbs: 談 POST, PUT 和 PATCH 的應用

[ASP.NET]MVC使用i18Next做多國語言

Visual Studio.net 2013 asp.net MVC 5 Scaffolding代码生成向导开源项目

Dynamically Generating Robots.txt Using ASP.NET MVC

使用Hangfire處理ASP.NET MVC/Web API長時間與排程工作

How To Host Your ASP.NET MVC Website On GoDaddy Server

2013-04-26

MultipartMemoryStreamProvider

0 意見
using MultipartFormDataStreamProvider and ReadAsMultipartAsync
Issues with MultipartFormDataStreamProvider
submitting files to a web api
File upload using MultipartMemoryStreamProvider

原生的MultipartStreamProvider,其GetLocalFileName()會使用Guid來命名,
若要使用自己的命名方式,需自行實作:
        public virtual string GetLocalFileName(HttpContentHeaders headers)
        {
            if (headers == null)
            {
                throw Error.ArgumentNull("headers");
            }

            return String.Format(CultureInfo.InvariantCulture, "BodyPart_{0}", Guid.NewGuid());
        }

A guide to asynchronous file uploads in ASP.NET Web API RTM
Dealing with the frustrations of trying to test the ASP.NET Web API MultipartFormDataStreamProvider.
    public class CustomMultipartFormDataStreamProvider : MultipartFormDataStreamProvider
    {
        public CustomMultipartFormDataStreamProvider(string path)
            : base(path)
        {
        }

        public override string GetLocalFileName(System.Net.Http.Headers.HttpContentHeaders headers)
        {
            var name = !string.IsNullOrWhiteSpace(headers.ContentDisposition.FileName) ? headers.ContentDisposition.FileName : "NoName";
            return name.Replace("\"", string.Empty);
        }
    }


2013-04-25

jQuery Upload File

0 意見
因為要用 web api 做檔案上傳,找了幾篇教學:
Uploading Files Asynchronously using ASP.NET Web API
How can I upload files asynchronously with jQuery?
jQuery Ajax File Upload

發現要直接用jQuery post上傳檔案,它的data是個FormData物件,然而IE在10之後才有支援此功能。。。

How to handle image uploads with jquery post submit
Send multipart/formdata with jQuery.ajax in IE
JQuery - File attributes

Simple File Uploads Using jQuery & AJAX FormData object
FormData
Using FormData Objects

解法:jQuery Form Plugin
Uploading a file with JQuery
ASP.NET MVC - 使用 jQuery Form Plugin 做檔案上傳
ASP.NET MVC - 使用 jQuery Form Plugin 做檔案上傳之加點東西




其他參考:
Sending HTML Form Data: File Upload and Multipart MIME
ASP.NET Web API samples
File Upload Sample
Asynchronous File Upload using ASP.NET Web API

How To Accept a File POST - ASP.Net MVC 4 WebAPI
How can I upload image and post some datas to MVC4 wep api method?

ASP.NET WEBAPI file upload, issues with IE9
Sending HTML Form Data: File Upload and Multipart MIME 发送HTML表单数据:文件上传与多部分MIME"
ASP.NET WebApi upload image with custom MediaTypeFormatter

定制jQuery File Upload为微博式单文件上传

[jQuery] AjaxFileUpload : Multiple File Upload plugin

File upload with JQuery and ASP.NET Generic Handler - Is it possible?
ASP.Net Asynchronous HTTP File Upload Handler
Large file uploads in ASP.NET

ASP.NET MVC 檔案上傳下載是很方便的

Upload files to the server using Javascript and MVC WebAPI
Upload files in ASP.NET MVC with JavaScript and C#
Importing CSV files using jQuery and HTML5




IE9 JSON Data “do you want to open or save this file”
如果用ajaxForm()呼叫WebApi要回傳json,但IE會一直跳出下載,要多加一段
var response = Request.CreateResponse(HttpStatusCode.OK, json); //, new JsonMediaTypeFormatter()
response.Content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("text/html");
return response;


[ASP.net WebForm] 利用jQuery blockUI 簡單實現上傳讀取中的效果