Subscribe: BinaryIntellect.net :: Tools, code and components
http://www.binaryintellect.net/articles/rssfeed.aspx
Added By: Feedage Forager Feedage Grade A rated
Language: English
Tags:
api  article  core  data  end article  end  files  model binding  net core  net web  net  web api  web  xml data  xml 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: BinaryIntellect.net :: Tools, code and components

BinaryIntellect Knowledge Base | .NET & Web Development Kb



BinaryIntellect Knowledge Base | .NET & Web Development Kb



Copyright: Copyright © binaryintellect.net. All rights reserved.
 



Use BindProperty Attribute for Model Binding to Properties

04 Dec 2017 12:00:00 GMT

Model binding allows you map request parameters to actions. This means action methods will have one or more parameters and those parameters will receive their values from the model binding framework. Model binding can be performed to simple types as well as complex types. In ASP.NET Core 2.0 you can perform model binding to properties in addition to action parameters. This article explains how.



Seed Users and Roles Data in ASP.NET Core Identity

27 Nov 2017 12:00:00 GMT

ASP.NET Core identity allows you to implement authentication and authorization for your web applications. While working with ASP.NET Core Identity at times you need to create default user accounts and roles in the system. In ASP.NET MVC you could have easily done this in Global.asax and Application_Start event handler. In ASP.NET Core the process is bit different since the application startup process is different. To that end this article explains a way to seed such user and roles data in your applications.



Drag-n-Drop File Upload in ASP.NET Core

20 Nov 2017 12:00:00 GMT

In one of my earlier articles I discussed how to upload files using full page post-back as well as Ajax post-back. Usually developers use the file input field to select one or more files to be uploaded from the client machine. However, you can also HTML5 drag-n-drop to make it easy for the end user to pick files directly from Windows explorer. To that end this article shows how to implement just that.



Convert XML data to JSON and return it from Web API

13 Nov 2017 12:00:00 GMT

Recently I stumbled upon a situation where a large number of XML documents needed to be returned from ASP.NET Web API. This sounds like a straightforward task but there was a small twist to the story. The XML documents existed as physical disk files. The Web API should read these files and convert the XML data into JSON. This was needed because the client applications were designed to handle only JSON format. Here I discuss a quick way to accomplish this task.



Accept / Reject File Upload Depending Upon XML Schema Validation

07 Nov 2017 12:00:00 GMT

Recently I came across such an application where the end users are required to upload XML files from their machine onto the server. Uploading the file is a quite straightforward thing but in this case it was also required to validate these uploaded files against an XML schema (XSD).



Integrate reCaptcha V2 in ASP.NET Applications (Web Forms / MVC / Core)

30 Oct 2017 12:00:00 GMT

If you are running any website that makes use of Google's reCAPTCHA for keeping bots and automated scripts away, you are probably aware that version 1.0 is being phased out. That means you need to integrate version 2.0 into your websites. To that end this article explains how to do just that. I use ASP.NET MVC project to illustrate the integration process but the same applies even for ASP.NET Web Forms and ASP.NET Core applications.



Invoke ASP.NET Web API using TypeScript and XMLHttpRequest

16 Oct 2017 12:00:00 GMT

Invoking Web API is a quite common task in modern ASP.NET web applications. Usually, developers resort to jQuery Ajax to call the Web API. If you are using a client side framework such as Angular, you may also use the inbuilt ways to make the Ajax calls. However, what if you aren't using these approaches? This article discusses an alternative.



Prepare ASP.NET projects (Web Forms / MVC / Core) to use Angular 4

25 Sep 2017 12:00:00 GMT

As as ASP.NET developer working with latest trends you might want to use Angular 4 in your projects. Unlike libraries such as jQuery, Angular 4 is a framework and there are quite a few steps involved before you actually start utilizing its powerful features. To that end this article explains the steps necessary to prepare your ASP.NET projects to use Angular 4. We will discuss the process for all the three flavors of ASP.NET available today - ASP.NET Web Forms, ASP.NET MVC and ASP.NET Core.



Use XML Data Format In ASP.NET Web API

18 Sep 2017 12:00:00 GMT

Modern web application use JSON as the preferred data format for the sake of transferring data between a Web API and its client. However, at times you may want to use XML data format instead of JSON. Although the overall process to accomplish this task is same, there are certain subtle but important differences. To that end this article shows how XML data exchange can be done between an ASP.NET Web API and a jQuery driven client.



Encode HTML, JavaScript, and URL Query Strings In ASP.NET Core

04 Sep 2017 12:00:00 GMT

When a web page accepts an input from the end user it can also include malicious data consisting of special characters, HTML tags, JavaScript code and the things like that. As a safety measure you should encode such data before displaying it back on to a page or while passing through URL query strings. To that end ASP.NET Core providers three encoder classes that help you accomplish just that. This article discuses how these classes can be used to encode HTML markup, JavaScript code and URL query strings.