Category Archives: C#

Creating your first WEB API Project

Introduction Whenever we talk about WEB API the very first question comes in our mind is what actually is API. API stands for “Application Programming Interface”. From Wikipedia definition – A Web API is an application programming interface for either a web server or a web browser. It is a web development concept, usually limited

secure ASP.NET Web API using basic authentication

How to secure ASP.NET Web API using basic authentication

ASP.NET Web API allows us different ways to implement security while exposing resources. In the previous article, we have learned about how to secure ASP.NET WEB API using token-based authentication. In this article, we are going to learn how to secure ASP.NET WEB API using

secure ASP.NET Web API using token based authentication

How to secure ASP.NET Web API using Token Based Authentication

Introduction : Whenever we work on enterprise level application either application based on web or windows platform the first biggest concern comes in our mind is its security. When the requirement is to expose our business services to the client then securing those services is

Validation Of Viewstate MAC Failed

How to solve Validation Of Viewstate MAC Failed error in ASP.NET

If you are looking solution for one of the weird error “Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.” I

No Thumbnail

How to allow only number input in your code using C#

Being coder, we often have different challenges to write code to accomplish a task based on some exact requirement. Here we are going to learn how to allow the user only to write number not other characters like “a/A to z/Z” and other special characters