C# Corner

Resources  
  • Publish ASP.NET Core 2.0 Application On Azure With SQL ServicesFeb 15, 2018. In this article, we will learn how to deploy or publish an Asp.Net Core 2.0 application on Azure.
  • Application Initialization And Configuration In ASP.NET VersionsFeb 14, 2018. Most of us might have worked upon various versions of ASP.NET and few of you must be aware about the major changes happened in application initialization and configuration phase. In this article, I'll be outlining few of those major changes starting from ASP.NET MVC, ASP.NET Core 1.x and ASP.NET 2.x.
  • Authentication Using Google In ASP.NET Core 2.0Feb 14, 2018. In this article, we are going to look into authentication of ASP.NET Core app using a Google account.
  • ASP.NET MVC - Export PDF Document From View PageFeb 13, 2018. In this article, we will learn how we can export view page to PDF using Rotativa framework. Rotativa is an open source framework created by Giorgio Bazio in order to export view page to PDF. This framework is based on wkhtmltoPDF tool which is used to generate PDF from HTML view page.
  • Authentication Using Twitter In ASP.NET Core 2.0Feb 13, 2018. In this article, we are going to look into authentication of ASP.NET Core app using Twitter.
  • ASP.NET Core 2.1 Features - Part OneFeb 09, 2018. In this post, we will see some of the top features of ASP.NET Core 2.1.
  • Chat Application With ASP.NET MVC Using RabbitMQFeb 08, 2018. In this article, you will learn how to develop a chat application in ASP.NET MVC using RabbitMQ.
  • ASP.NET Request Life CycleFeb 08, 2018. In this article, I am trying to go through the various tasks and events involved in the ASP.NET request processing cycle.
  • Cookie Authentication With ASP.NET Core 2.0Feb 07, 2018. Authentication is an integral part of web security. ASP.NET Core provides multiple ways to implement authentication in a web application. We will be looking into on such technique - Cookie authentication in this article.
  • Multiple Submit Buttons In ASP.NET MVCFeb 06, 2018. Let's learn how to create multiple "Submit" buttons in ASP.NET MVC.
  • ASP.NET Web API With SwaggerFeb 06, 2018. ASP.NET Web API is an extensible framework for building HTTP based services that can be accessed in different applications on different platforms such as web, windows, mobile etc. It is like a web service or WCF service but the exception is that it only supports HTTP protocol.
  • Using EasyCaching In ASP.NET Core - Part OneFeb 05, 2018. In this article, you will learn how to use an open source library named EasyCaching to handle caching in ASP.NET Core.
  • CRUD Operations In ASP.NET Core 2 Razor Page With Dapper And Repository PatternFeb 04, 2018. This article will demonstrate how to perform CRUD operations in Razor Page which were introduced with Asp.Net Core 2 using Dapper and Repository Pattern.
  • Getting Started With Razor Pages In ASP.NET Core 2.0Feb 01, 2018. Today, we will talk about more about Razor pages - what actually a Razor page is, how to create Razor page applications, and some of the fundamentals of Razor pages.
  • Full Calendar - ASP.NET Web API And AngularJSJan 31, 2018. In this article, we will demonstrate how we can use a Full Calendar plugin based on ASP.Net Web API (Back-end) and AngularJS (Front-end). Here what we are doing exactly is to customize the FullCalendar plugin in order to be able to perform CRUD operations. I'd like to remind you that you should have some basic knowledge of Web API and AngularJS. I hope you will like it.
  • Exception Handling In ASP.NET MVCJan 30, 2018. This default way of handling exception where we write our source code into the try bock and catch exception in catch block. However you can have multiple catch blocks for a try block. Even you can have Try –catch block inside Try block.
  • Performing CRUD Operations On Azure SQL Database Using SharePoint Framework Web Part And ASP.NET Web API - Part TwoJan 30, 2018. Normally, you would want to put your css classes in the .scss file (i.e. YourWebpartName.scss) and import it into the YourWebpartName.ts file (this is actually done automatically during project creation). But I decided to put it in a SharePoint list because my css selectors are grouped and I could not reference them using "styles.selector".
  • ASP.NET Core 2.0 IdentityJan 30, 2018. In a previous post, I showed how to use cookie authentication middleware to protect your web application. ASP.NET Core also provides a richer set of services, called Identity, to work with user authentication and management scenarios. For instance, in addition to authentication and password hashing, it provides features for registering new users, creating forgot & reset password tokens and their validation, two-factor authentication and authentication using external providers.
  • Continuous Integration Using TeamCity And Docker For ASP.NET CoreJan 29, 2018. Please read the previous posts before continuing with this one. I have discussed the basics of Docker and shown how to deploy simple and multiple applications using Docker. In this post, I will use the code from the first post and demonstrate the continuous integration with TeamCity.
  • Publish ASP.NET Core 2.0 Application on IISJan 28, 2018. This article will teach you how you can deploy or host your Asp.Net Core 2.0 web application on IIS.
  • Cache Tag Helper In ASP.NET Core MVCJan 25, 2018. Caching tag helper can improve the performance and scalability of the application dramatically and it cache the data into the internal ASP.NET Core cache provider.
  • Versioning ASP.NET Core 2.0 Web API - Part OneJan 25, 2018. In this article series, we are going to explore REST API versioning best practices. At the end of the article series you will be able to pick the best solution for your project needs.
  • ASP.NET Core Apps In Docker Swarm Deployed To AzureJan 24, 2018. In the previous post, I deployed a Docker Swarm on VMs setup on my local PC, which is fine for testing. In this post I’ll deploy the same services on a Docker Swarm hosted in Azure using “Docker EE for Azure”. Let’s start.
  • Performing CRUD Operations On Azure SQL Database Using SharePoint Framework Web Part And ASP.NET Web API - Part OneJan 24, 2018. Supposing there is an existing data in an SQL database, be it Azure or an on-premise database server, you are required to make the data available for CRUD operations in SharePoint for your users. This is a scenario where this article will be of help to you. In this article, I will show you how you can perform CRUD operations on Azure SQL database from a SharePoint web part. Note that the steps are same for on-premise SQL database except for the steps required in setting up Azure database.
  • CRUD Operation With Angular 5 HTTP Client And ASP.NET Core Web APIJan 23, 2018. HTTP is the messaging system between the client and the server-client which sends the request and server responds with the proper message. Angular HTTP client is the toolkit which enables us to send and receive the data over the restful Http endpoints.
  • ASP.NET Core Apps In Docker SwarmJan 23, 2018. First, we need a few Virtual Machines to make a cluster of machines to run Docker on. I am using Windows 10 and will use Hyper-V for this purpose. If you’re using another OS then skip the first part of the tutorial where I setup VMs.
  • Top 10 New Features Of ASP.NET Core 2.0Jan 22, 2018. .NET is now .NET Core and known as cross-platform and open source platform where you can build your all types of applications. An application could be a web app, desktop app, mobile app or gaming app. All type apps can be created using a single platform and it’s none other than .NET Core.
  • Deploying Multiple ASP.NET Core Apps To Docker And AzureJan 22, 2018. API - has controller with CRUD operations for a movies database. It uses a class library Data, which contains repositories. Database is hosted in Azure and connection string stored in application settings (appsettings.json).
  • Learn ASP.NET Core WEB API With Angular 5 Using ngForJan 22, 2018. In this article, we will learn ASP.NET Core web API with Angular 5 data binding using with ngFor.
  • ASP.NET Core 2.0 - Implementing A Third Party Web APIJan 22, 2018. A common task for a developer when working with or building an application is implementing and interacting with APIs. In this post we will look at what an API is. We will then move onto creating our own .NET Core 2.0 Web API that implements a 3rd party Web API.
  • First Application In ASP.NET Core MVC 2.0Jan 20, 2018. Recently Microsoft announced anew version of Asp.Net Core and that is Asp.Net Core 2.0, which has new and amazing features which not only improve performance as well as increase productivity and enhance your application making it more robust and reliable.
  • ASP.NET Core 2.0 - Applying Bootstrap TemplateJan 18, 2018. This article walks you through the steps for creating an ASP.NET Core 2.0 Web Application using Bootstrap as the template for layout.
  • Deploying ASP.NET Core 2.0 App To Azure Using DockerJan 18, 2018. Azure provides a highly scalable, configurable and easy to use Platform-as-a-Service (PaaS) environment for our ASP.NET Core web applications. Azure Web App is one of the simplest ways to host web applications and the new Web App Container makes it really easy to host Docker containers.
  • Deploy Your First ASP.NET Core 2.0 App In Azure Managed KubernetesJan 17, 2018. This guide will help you to get started with AKS. We are going to deploy our first ASP.NET Core 2.0 App in AKS and then do some cool stuff like scaling up and down.
  • Custom Model Binding In ASP.NET Core 2.0Jan 17, 2018. In an earlier post I discussed how to prevent insecure object references by encrypting the internal references (e.g. table primary keys) using Data Protection API. To avoid duplication of code that encrypts/decrypts on every controller I used filters in that example. In this post I’ll use another complimentary technique: custom model binding.
  • Identity Server 4 With ASP.NET Core 2.0Jan 16, 2018. OAuth 2 provides several flows or grant types for various use cases. I personally group them into two categories; flows that require user interaction with authorization server and flows that don’t.
  • Create Your First ASP.NET Core 2.0 Service Fabric Container Application In WindowsJan 16, 2018. Learn how to create your first ASP.NET Core 2.0 Service Fabric Container application in Windows.
  • How To Use Sessions In ASP.NET CoreJan 16, 2018. In this article, we will learn the very simple way to use Sessions state in ASP.NET Core applications.
  • ASP.NET Core 2.0 - How To Use Dependency InjectionJan 15, 2018. In this article, I'll show you the new feature introduced in ASP .NET Core that allows you to inject dependencies directly into a View using the dependency injection container.
  • Using CSP Header In ASP.NET Core 2.0Jan 15, 2018. Content Security Policy (CSP) is an additional level of security that could help prevent Cross Site Scripting (XSS) attacks. In these attacks malicious scripts are executed on user’s browser since browser doesn’t know whether the source of the script is trustworthy or not.
  • ASP.NET Core 1.0 - Change Bootstrap Layout In Three StepsJan 14, 2018. This article walks you through the steps for creating a ASP.NET Core Web Application using Bootstrap as template for layout and changing it to a new one.
  • Google Chart With ASP.NET Core And Visual Studio CodeJan 13, 2018. The Google Chart API lets you dynamically generate charts with a URL string and embed these charts on a web page, or download the image for local or offline use. The Google Chart Tools enable adding live charts to any web page. They provide advantages such as a rich gallery of visualizations provided as image charts and interactive charts and they can read live data from a variety of data sources. Users embed the data and formatting parameters in an HTTP request, and Google returns a PNG image of the chart. Many types of chart are supported, and by making the request into an image tag the chart can be included in a web page.
  • Preventing CSRF Attacks In ASP.NET Core 2.0Jan 12, 2018. OWASP 2013 classifies Cross Site Request Forgery (CSRF) as one of the Top 10 risks and is present if attacker can force the victim's browser to send forged request to your web application and it considers it a legitimate request.
  • SignalR Chat App With ASP.NET WebForm And BootStrap - Part ThreeJan 12, 2018. In a previous article we have learned how to create a real-time chat application using SignalR and Bootstrap. So far we learned creation of group chat, Creation of Private Chat, Title Bar Notification Alert system, Message Count and Clear Chat History. And now we are going to learn the most trending feature in Chat Application which is “Emoji” or “Smiley” which makes our application more interactive.
  • Bind Menu And Sub Menu Dynamically In ASP.NET MVC From Database Using LINQJan 12, 2018. Many times we need to create a menu for a simple application. We ususally get stuck on how to bind the menu. Here in this article we you will learn how to bind menu and sub menu dynamically in ASP.NET MVC from database using linq.
  • Configure Windows Authentication In ASP.NET CoreJan 11, 2018. Using Windows authentication, users are authenticated in ASP.NET Core application with help of operating system. Windows Authentication is a very useful in intranet application where users are in same domain.
  • ASP.NET Core 2.0 Status Code PagesJan 11, 2018. Exception handling middleware (as discussed here) will catch unhandled exceptions however if you want to display error pages for individual HTTP status codes then framework provides another middleware for this purpose.
  • Preventing Insecure Object References In ASP.NET Core 2.0Jan 10, 2018. How to prevent insecure direct object reference in ASP.NET Core.
  • Preventing Redirect Attacks In ASP.NET Core 2.0Jan 09, 2018. When your controllers redirect to another location based on user input (e.g. via query string), it is important to ensure that the location is not malicious and prevent open redirect attacks. The simplest way to ensure this is by examining the URL provided by the user.
  • State Management In ASP.NET MVCJan 08, 2018. HTTP is a stateless protocol. Each HTTP request does not know about the previous request. If you are redirecting from one page to other pages, then you have to maintain or persist your data so that you can access it further. To do this, there were many techniques available in Asp.Net like ViewState, SessionState, ApplicationState etc.
  • Hashing In ASP.NET Core 2.0Jan 08, 2018. The new Data Protection API in .NET Core includes functionality to create hashes using PBKDF2algorithm. ASP.NET Core uses this behind the scenes in PasswordHasher class, which is used in ASP.NET Core Identity.
  • Using HTTPS In ASP.NET Core 2.0Jan 05, 2018. Create an empty project and update Startup to add services and middleware for MVC, including the filter for HTTPS.
  • CORS In ASP.NET Core 2.0Jan 04, 2018. To allow clients from a different origin to access your ASP.NET Core Web API, you’ll need to allow Cross-Origin Requests (CORS). Here same origin means clients who have identical schemes, hosts and ports.
  • Exploring ASP.NET Core 2.0 And Docker On MacOSJan 04, 2018. Last year, I wrote an article about “.NET Core On Mac - Building An ASP.NET Core App With Web API, EF, PostgreSQL And Running It On Docker”. The article was using .NET Core 1.1 version and If you’ve been following the same steps mentioned from the article using .NET Core/ ASP.NET Core 2.0, then it’s expected that the steps won’t work anymore.
  • Share Code Between ASP.NET Core MicroServicesJan 04, 2018. Microservice architecture or microservices is a method of developing software applications as a suite of independently deployable, small, modular services in which each service runs a unique process and communicates through a well-defined, lightweight mechanism to serve a business goal.
  • SignalR Chat App With ASP.NET WebForm And BootStrap - Part TwoJan 03, 2018. In previous articles, we learned how to create a real-time chat application using SignalR.
  • User Specific Notifications Using ASP.NET MVC And SignalRJan 03, 2018. In this post, we are going to explore how to implement user-based notification using ASP.Net MVC & SignalR.
  • ASP.NET Core 2.0 AuthorizationJan 03, 2018. Authorization is about deciding permissions users have and resources they can access. In ASP.NET Core this is achieved by first assigning claims to the user and then based on those claims defining policies to determine user permissions.
  • Using jTable Grid With ASP.NET MVCJan 03, 2018. In this article, we are going to learn how to use jTable Grid with ASP.NET MVC, and along with that we are going to use Entity framework for accessing the database.
  • CRUD Operations With ASP.NET Core Using Angular 5 And ADO.NETJan 02, 2018. Here, I am going to explain how to create an MVC web application in ASP.NET Core 2.0 with Angular 5.
  • Repository Pattern In ASP.NET MVCJan 02, 2018. In this article, we will learn about Repository pattern which is mostly used to create enterprise applications. Repository pattern divides application’s UI, business logic and data access components into different layers that are easily maintainable and testable.
  • ASP.NET Core 2.0 Cookie AuthenticationJan 02, 2018. Cookie Authentication allows developers to hook into events at various lifecycle stages of the authentication process. For instance you could log successful sign-ins using OnSignedIn or use OnValidatePrincipal (runs on every request) to invalidate the user (e.g. if you want to force sign-out).
  • List Of Items In Query String From JavaScript And Fetch It In Code Behind In ASP.NETJan 02, 2018. When there is a situation where we have to pass more parameters and it exceeds browser character limit we can consider using JSON Array.
  • ASP.NET Core 2.0 Bearer AuthenticationJan 02, 2018. Bearer Tokens (or just Tokens) are commonly used to authenticate Web APIs because they are framework independent, unlike something like Cookie Authentication that is tightly coupled with ASP.NET Core framework.
  • Host ASP.NET Core On Linux With JexusJan 02, 2018. In this article, you will learn a new and easy way to host your ASP.NET Core project on Linux with Jexus Web Server.
  • Custom Authentication With ASP.NET MVCDec 30, 2017. In this article, we will demonstrate how we can build authentication system using ASP.NET MVC
  • Using DataTables Grid With ASP.NET MVCDec 29, 2017. In this article, we are going to learn how to use DataTables Grid with ASP.NET MVC in step by step way.
  • ASP.NET Core And EF Core 2.0 TestingDec 29, 2017. The single biggest selling point of MVC architecture in general and ASP.NET Core in particular is that it makes testing much simpler. ASP.NET team has done a great job in making a framework that is pluggable, thus enabling testing of controllers, repositories and even the entire application a breeze.
  • Dashboard Application With ASP.NET MVC 5 And jQueryDec 28, 2017. As you know, the dashboard system has become very important because it's helpful for managers in order to take the right decisions.
  • Creating A CRUD With ASP.NET Core And EF CoreDec 28, 2017. Entity Framework Core (EF) is an ORM that makes it simpler to work with database by using POCO classes that map to database entities and DbContext to interact with them.
  • ASP.NET MVC 5 - Full Calendar jQuery PluginDec 27, 2017. This article is about using Full Calendar jQuery Plugin with ASP.NET MVC5 server side.
  • Entity Framework Core Migrations Using ASP.NET COREDec 27, 2017. Let us learn about Entity Framework Core migrations using ASP.NET CORE.
  • Consuming ASP.NET Core 2.0 Web API Using HttpClientDec 26, 2017. We’ll create a library to wrap the functionality of HttpClient. I’ll use builder pattern for this purpose. Add a class with methods for storing parts of HttpClient.
  • ASP.NET MVC5 - Kendo UI Grid CRUD Operation Using ASP.NET Web API And EFDec 26, 2017. In this article, I will demonstrate how to do the CRUD operations using Kendo UI Grid in ASP.Net MVC5 Web Application
  • ASP.NET MVC 5 - Buttons In Datatables jQuery PluginDec 26, 2017. Table view is one of the most important and basic forms of presenting data on a web page. However, adding action to each row is equally important simply because action for each row leads to different results. Jquery Datatables plugin is one of the most used plugins, as I have demonstrated its integration in ASP.NET MVC5 - Datables Plugin Server Side Integration in one of my articles.
  • Working With Kendo UI TreeList And Custom Template In ASP.NET MVC 5 Web ApplicationDec 24, 2017. In this article, I will demonstrate how to work with KendoTreeList View and custom template in ASP.Net MVC5 using Kendo UI and EF
  • Kendo UI TreeList Remote DataBinding With ASP.NET MVC 5 Using ASP.NET WEB APIDec 24, 2017. This article tells you how to construct the kendo TreeView with complex JSON object, which is the response of the REST API developed using ASP.NET Web API.
  • Create And Deploy An ASP.NET Core Web App In AzureDec 23, 2017. This article will help you to create & deploy an ASP.NET Core web app in Azure.
  • Asynchronous Messaging Using ASP.NET Core 2.0 Web APIDec 21, 2017. How to implement asynchronous messaging using ASP.NET Core Web API. Create an empty project and update the Startup class to add services and middleware for MVC.
  • How To Host ASP.NET Core Application on IIS ServerDec 21, 2017. In this article, you will learn how to host ASP.NET Core Application on IIS Server.
  • Documenting ASP.NET Core 2.0 Web APIDec 20, 2017. Documents generated by Swagger can include XML documentation.
  • Using Gijgo Grid With ASP.NET MVCDec 20, 2017. In this article, we are going to learn how to use Gijgo Grid with ASP.NET MVC along with that we are going to use Entity framework for accessing the database.
  • SignalR Chat App With ASP.NET WebForm And BootStrap - Part OneDec 20, 2017. Here, we are going to learn to create a real-time chat application using SignalR, Bootstrap and jQuery Modal Popup.
  • Application To Build Resume/CV With ASP.NET MVC 5 And jQueryDec 20, 2017. In this article, we will demonstrate how we can build resume CV application. As you know resume CV has different parts such as personal information, education, work experiences, skills, certifications, languages. We are using Asp.net MVC 5, jQuery and bootstrap in order to build our application. I hope you will like it.
  • Understand HTTP.sys Web Server In ASP.NET CoreDec 19, 2017. HTTP.sys is a Windows-based web server for ASP.NET Core. It is an alternative to Kestrel server and it has some features that are not supported by Kestrel.
  • Formatters In ASP.NET Core 2.0 Web APIDec 19, 2017. Let us learn about formatters used in ASP.NET Core 2.0 Web API.
  • ASP.NET MVC 5 - Clickable Google ChartsDec 18, 2017. This article is about Google Charts interactivity through click event on the chart.
  • List Of Users With Roles In ASP.NET MVC IdentityDec 18, 2017. This article demonstrates how to list users with associated user roles using Identity in ASP.NEt MVC applications.
  • ASP.NET Core 2.0 Tag Helper ComponentDec 18, 2017. In case you’re wondering if the solution above is missing a Tag Helper for head HTML element, it’s not. ASP.NET Core team has provided us with two built-in Tag Helpers, one targets head and the other targets the body element: HeadTagHelper and BodyTagHelper.
  • Building Multitenant Architecture Using ASP.NET Core And Micro ServicesDec 18, 2017. Instead of deploying an application per client, organizations prefer multitenancy to save infrastructure cost and deployment time. Multitenant architecture helps to adapt changes for different clients under the hood. In this article I am not going to discuss database design for multitenant applications but I will be focused on achieving separation for different clients.
  • Configure Identity In ASP.NET Core 2.xDec 15, 2017. Identity is a membership system that allows us to add login functionality to our application. In my previous article, I have explained about the overview of Identity in ASP.net Core. There are some default behaviors that can be overridden easily in our application in ConfigureService method of startup class.
  • Overview Of Identity In ASP.NET Core 2.0Dec 15, 2017. It is a membership system that allows us to add login functionality to our application. User may create account and login using credential or can use external login provider such as Google, Microsoft Account, Twitter, Facebook etc.
  • Handling Concurrency In ASP.NET Core 2.0 Web APIDec 15, 2017. We add a magic value to the response based on data we hold at the time. Usually ETag header is added for this purpose containing hashed value based on data/body of response.
  • ASP.NET Core 2.0 Web API AND HATEOASDec 14, 2017. The idea behind HATEOAS (Hypermedia As The Engine Of Application State) is to transfer links in the resource representations. The sample demonstrates how links can be provided for a collection and individual resources. The links represent the actions that can be performed on the resource at a given point in time.
  • ASP.NET MVC 5 - Google Charts API IntegrationDec 14, 2017. Today, I shall be demonstrating the integration of Google Charts API with ASP.NET MVC5.
  • Versioning ASP.NET Core 2.0 Web APIDec 13, 2017. As your Web API changes, you would need to add versioning support in order for clients to continue working correctly. Adding versioning support in ASP.NET Core involves first configuring services in Startup and then choosing a versioning strategy i.e. via query string, URL or HTTP header.
  • Generate Thumbnail From Live URL Of Microsoft Office And PDF file in ASP.NET MVCDec 13, 2017. Recently, I got a chance to create thumbnail images from the live URL. The URLs were not of images but of some DOCX file, some XLSX file, or PDF file. We don’t have any custom library which can directly generate the thumbnail from a live URL. So, here, we will learn how we can customize our code to generate the thumbnail in .NET.
  • Using jqGrid With ASP.NET MVCDec 12, 2017. If you belong from a background of asp.net web forms then there is grid view which we used most but in some scenario if data was large then it would use to break, but in MVC we do not have that kind of grid which has all readymade event, but there is html helper which help you to generate html is Web grid in that we need to use different package for handling paging of grid, and also we need to pass a strongly typed model to view for rendering the grid.
  • Building API Gateway Using Ocelot In ASP.NET Core - Part Three - LoggingDec 12, 2017. In this article, we will discuss Logging when we build API Gateway using Ocelot in ASP.NET Core.
  • Sorting In ASP.NET Core 2.0 Web APIDec 12, 2017. Sorting information is usually received via query parameters. The POCO SortingParams simply hold this information and passes to service (or repository).

About sp.net

sp.net
Web Development Outsourcing
Looking to add more bandwidth to your software team? Web Developers, designers, testers are now available on demand. Flexible hours, very competitive rates, expert team and High Quality work.