C# Corner

Resources  
  • 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.
  • SharePoint Online Search Results - Sort By TileJan 16, 2018. Search is more commonly used to display the results in SharePoint Portal based on the business needs by configuring the search query. To make more sense out of the search results, they are commonly sorted on key attributes like Modified Date, Created Date, Title, etc.
  • Add Quick Launch Link To SharePoint 2013 Site Using REST APIJan 15, 2018. In this article, I have explored how to add links represented as headings in the Quick Launch area of the user interface using REST API. Here, we trying to add a custom navigation node corresponding to links in the Quick Launch area of the site using REST API using jQuery.
  • How To Customize Your Own Login Page Or Do Branding Of A Page In Office 365 OnlineJan 10, 2018. In SharePoint online, you can customize your own custom login page for branding.
  • Xamarin.Forms Custom Switch ControlJan 08, 2018. This article demonstrates how to create and use a Custom Switch control in Xamarin.Forms, XAML, and C#.
  • Send Email With Attachment In Office 365 (SharePoint Online)Jan 07, 2018. Recently, I came up with a requirement to send an email with attachment in Office 365 (SharePoint Online). This needs to be a custom functionality wherein for each line item in a jQuery Data table (as shown in below image), user needs to send an email with an attachment to specific email address.
  • Customize Slider Control In Xamarin.FormsJan 05, 2018. This article demonstrates how to create and use a Customize Slider control in Xamarin.Forms, XAML, and C#. This article starts with the introduction of the Customize Slider tag in XAML. After that, it demonstrates how to set BorderColor, BorderWidth, CornerRadius, and IsCurvedEnabled of a Custom Entry. In the end, the article discusses how to create a Slider at run-time.
  • Custom Service Dependency Injection In .Net Core 1.1Jan 04, 2018. In this article we will go through one of the key features of .Net Core, Custom Service dependency injection in .Net core 1.1, particularly at controller’s action level .
  • Learning Angular - Lab TwoJan 04, 2018. Components are the main way we build and specify elements and logic on the page, through both custom elements and attributes that add functionality to our existing components.
  • Custom Authentication With ASP.NET MVCDec 30, 2017. In this article, we will demonstrate how we can build authentication system using ASP.NET MVC
  • Xamarin.Android - Working With Recycler ViewDec 30, 2017. In this tutorial, we are going to learn how to render a simple RecyclerView with a custom layout
  • Customize SharePoint List Forms Using PowerAppsDec 29, 2017. We are all aware Microsoft announced that there will be no new release for InfoPath and advised us to start using PowerApps instead of InfoPath. The long awaited feature to create custom SharePoint list forms with PowerApps has been released now. This only exists in the SharePoint Modern Experience, so you won’t get this in classic.
  • Xamarin.Forms Custom EntryDec 28, 2017. This article demonstrates how to create and use a Custom Entry control in Xamarin.Forms, XAML, and C#.
  • 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
  • Xamarin.Android Custom Tab And ListView Using C# - Part FiveDec 21, 2017. In this module, I have added some tabs and put some listviews on every tab page.
  • Xamarin.Forms - Custom Background Image Animation In UWPDec 21, 2017. In this article, we are going to learn about how to add custom user image animation control in UWP
  • Xamarin.Forms - Rounded BoxView Using Custom BoxRendererDec 16, 2017. In this article you will learn how to Create Rounded BoxView Using BoxRenderer in Xamarin forms.
  • 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.
  • Knowing When To Reflect With Caller Info AttributesDec 10, 2017. If you've been around C# long enough, you've probably had a need at one time or another to figure out some information about code that's being executed. It might be a method name, the file being executed, or even more specific details like the line number.
  • Directives In Angular - Part One (Attribute Directives)Dec 07, 2017. Let's explore the Attribute directive in detail in this article.
  • Xamarin.Forms - Border Shadow Effects Using Custom Frame RendererDec 07, 2017. In this article, you will learn how to use Border Shadow Effects Using Frame Renderer in your controls in Xamarin forms.
  • How To Optimize SharePoint Custom Pages Using HTML 5 IndexedDB APIDec 07, 2017. In this article we will discuss another obvious performance issue with SharePoint Solutions involving large volumes of data transactions surfacing in SharePoint Custom Pages.
  • How To Save Multiple Links In A List Column And UI On Custom List Form In Visual Web PartDec 06, 2017. In this article, we will discuss how we are storing multiple links in the list field and supporting the UI on custom list form in Visual web part
  • How To Delete Attachments Of SharePoint List Item Using Rest APIDec 05, 2017. I have created a custom list named “Attachments” in the host site and have added multiple items with attachments, now let’s say that we want to “Delete” the attachments on any particular item which we want.
  • Highcharts - Loading Image With Angular Custom Directive And Web APINov 29, 2017. This article will demonstrate about how to show loading message or any spinner image when your chart is being loaded or drilldown chart is being loaded using Highcharts Library in Angular JS with Web API.
  • Creating Custom Tag Helpers With ASP.NET Core MVCNov 29, 2017. The tag helper enables us to run server-side code to generate HTML, CSS, Javascript code in Razor view.
  • Custom Vision Service REST API Using Web Interface To Upload Image And TrainNov 28, 2017. Custom Vision Service using Visual intelligence made easy to just bring a few example of labeled images and let Custom Vision do the hard work.
  • Highcharts Drilldown Functionality With Angular Custom Directive And Web APINov 25, 2017. This is the second part of this series, “Highcharts with Angular JS custom directive and Web API”. In the first part, we discussed the preparation of the charts using the Highcharts library and Web API.
  • Anchor Tag Helper In ASP.NET MVCNov 23, 2017. The Anchor Tag Helper generates HTML anchor (<a> </a>) element by adding a new attribute. The "href" attribute of the anchor tag is created by using new attributes.
  • Implement DropDown MultiSelect Using Kendo UI MultiSelect In ASP.NET MVC5Nov 21, 2017. In this article, I am going to explain how to bind the value to a dropdown from the database, how to implement drop-down multi-select, how to group the drop-down values, and how to implement Custom Template using Kendo UI MultiSelect in ASP.Net MVC5.
  • Simplest WPF Dependency Property For Beginners On Background ColorNov 19, 2017. Dependency property is not wrapped over any private members unlike CLR properties, and it is also stored in Key-Value pairs inside the DependencyObject host instance. You must use Dependency properties if you need to create and apply properties on custom usercontrols, or change properties based on external inputs like Theme, Style, animation etc, or while applying data binding or set with a resource (static/dynamic) .
  • Using Custom Document Template And Quick Parts To Get Column Values From SharePointNov 17, 2017. Quite often there is situation when user wants to save documents with metadata in SharePoint library and to accomplish this we can use document template, customize it and by using Quick parts in Microsoft office we can save Meta data in library and in Microsoft office documents.
  • Auto Numbering For Custom Entity In Dynamic CRMNov 14, 2017. We are not adding any field for auto number using CRM Default solution. So, until now you should have one Entity created with no custom field in it (only default system generated fields). Now its time to write some code to see this auto number thing happen. what we have to do is to create an Attribute using C# Code and make that attribute to be auto numbered. we can even have some prefix or suffix also.
  • Server Side Custom Paging In Angular-UI Grid Using Web APINov 13, 2017. In this article, you will learn how to implement server side custom paging using Angular UI-Grid with Web API and SQL Server database and stored procedure. In this article, I will demonstrate server side paging and sorting only, Filtering we should learn in next article.
  • ASP.NET Core 2.0 MVC FiltersNov 13, 2017. Filter runs after an action method has been selected to execute. MVC provides built-in filters for things like authorization and caching. Custom filters are very useful to encapsulate reusable code that you want to run before or after action methods.
  • Custom Search Using Client Side CodeNov 11, 2017. The Custom Search functionality is achieved through JS. The Search produces live results for each key press. This search can be used to filter the data table or html table data dynamically based on the key words entered. The below code explains the search for html table.
  • Upload/ Download Files In ASP.NET Core 2.0Nov 10, 2017. ASP.NET Core MVC model binding provides IFormFile interface to upload one or more files. The HTML form must have encoding type set to multipart/form-data and an input element with type attribute set to file.
  • ASP.NET Core 2.0 MVC Custom Tag HelpersNov 08, 2017. As discussed in the previous post, Tag Helpers help generate HTML by attaching attributes to existing HTML elements or by creating new elements. In this post we’ve created a new tag to display employee information.
  • ASP.NET Core 2.0 MVC Tag HelpersNov 07, 2017. Tag Helpers help generate HTML by attaching attributes to existing HTML elements or by creating new elements. Although they look like HTML elements and attributes, Tag Helpers are processed by Razor (server-side).
  • Debugging Tips - Part ThreeNov 06, 2017. While working on a complex code, we often come across situations where you need to debug lots of code to find/fix the issue(s). That also includes going through lots of methods (probably related or unrelated). .NetFramework provides a way to avoid unwanted "Step in" through the methods. Using DebuggerStepThrough (using System.Diagnostics) attribute, you can skip debugging of unwanted methods and reduce the debugging time to some extent.
  • Angular 2+ Filter Pipes And Custom Filter PipesOct 30, 2017. In this article, I am going to show you the predefined filter pipe usage as well as show you how we can create our own custom filter pipe and its usage.
  • Debugging Tips - Part TwoOct 27, 2017. While working on complex classes/objects, it really takes two more clicks to either add that object to the Watch window or expand the object in visualizer and navigate to a specific property.
  • Highcharts With Angular Custom Directive And Web APIOct 25, 2017. We already know that DotNet Highcharts library is a client side library for charting and we can create very clean and flexible charts with minimum configuration. Using Highcharts, we can probably create all types of charts which we use in daily life, it could be a line chart, it could be a bar chart or column chart etc.
  • Debugging Tips - Part OneOct 24, 2017. A cool attribute to save some debugging time is DebuggerTypeProxy (Namespace: System.Diagnostics). Using this attribute, you can write your own logic to interpret the object at debug time. Meaning, if you have a list of class objects then you can project on certain properties and force debugger to show the value off of this proxy class. This attribute is applicable to Structures, Classes and Assemblies.
  • Implementing Google Maps In Xamarin.Forms and Creating Custom Map For Tapping FunctionalityOct 17, 2017. Google map service is very popular in various enterprise level mobile applications. I will discuss here how to use Google maps in xamarin.forms and customize it using custom renderer for further functionality. So, let’s create a Xamarin.Forms project in Visual Studio under visual C# and cross platform and name it GoogleMapUsingXamarinForms.
  • Custom Script Extension For WindowsOct 11, 2017. In this article, we will see how to work with custom script extension in Azure Virtual Machines.
  • Understanding Face API In AzureOct 11, 2017. Add facial recognition capabilities to your app with the Face API. State-of-the-art algorithms detect human faces in images, opening a range of facial capabilities to your apps. Face detection can also identify attributes, including face landmarks (nose, eyes, etc.), gender, age, and other machine-predicted facial features.
  • ASP.NET Core 2.0 URL RewritingOct 11, 2017. URL Rewriting is about modifying the request URL based on custom rules in order to decouple the address from the underlying resource. This could be for reasons like security, SEO, user friendly URL and redirect HTTP to HTTPS etc.
  • Selecting Lookup View Dynamically Using JavaScript In Dynamics CRM/ 365Oct 03, 2017. Lookup Views are shown when user clicks on Look Up More Records in any Lookup Field. In Dynamics CRM/365, Lookup Views are available in almost all entities, In newly created custom entities also it will be available by default. Lookup View of Account Entity is shown.
  • Creating Custom Gulp Tasks In SPFx SolutionsOct 03, 2017. Let us see how to create and test the gulp tasks in the SharePoint Framework solutions.
  • ASP.NET Core 2.0 Error PagesSep 29, 2017. Starting from an empty project, created in a previous post, amend the Configure() method of Startup class to use middleware needed for error handling. Below I’ve used a custom middleware (defined as lambda) to handle production exceptions.
  • How To Use "Enlighten Aquarium" In Power BI ToolSep 28, 2017. In this article, we will see how to use Enlighten Aquarium to create your own custom visual in Power BI.
  • WebGrid Custom Paging Links To Avoid Load On Server Using Stored Procedure And ASP.NET MVCSep 27, 2017. I will show you how to fetch the data dynamically from the database and bind to the WebGrid control, using the stored procedure in MVC 4.0. In this blog, today, I will show you how to write code in ASP.NET MVC for implementation of WebGrid Control using Static Data. In later sessions, I will show you the process of using GridView Dynamically, that means using SQL Server data source.
  • How To Customize UI-Grid Height DynamicallySep 22, 2017. In this article, you will learn how to customize UI-Grid height dynamically based on record count list.
  • Custom Paging In Angular-UI GridSep 19, 2017. In this article, you will learn how to implement custom paging using Angular UI-Grid in MVC application with Web API.
  • Xamarin.Forms Tip - Implement Show/Hide Password Using EffectsSep 19, 2017. While developing login pages, we usually get a requirement that there should be an icon in password entry to show/hide password while entering the password. While looking for a solution to this requirement, I found that most of the implementation is done using custom controls whereas we can do this kind of small platform-specific customization using effects. Last year, I wrote this article about implementing custom fonts using effects so I thought let's try this also using the same tecnique.
  • Introduction To Tag Helpers In ASP.NET CoreSep 18, 2017. Tag helper is a new feature in ASP.net MVC. It enables server-side code to create and render HTML elements in Razor View. It is feature of Razor View engine. They are the C# classes which participate in view generation by creating the HTML elements. Using the tag helper, we can change the content of HTML element and add additional attributes to the HTML element. It is very similar to HTML helper in ASP.net MVC.
  • TimeLine Slicer In Power BISep 15, 2017. In this article, we will learn how we can configure the TimeLine Slicer with our Power BI Report.
  • ASP.NET Core 2.0 ConfigurationSep 11, 2017. ASP.NET Core has a simple mechanism to read application settings from various sources like JSON files, Environment variables or even custom data sources. It is also simple to use the settings, thanks to Dependency Injection.
  • Resolving The "Legacy Issue Detected" ErrorSep 04, 2017. While working on SharePoint Migration from 2010 to 2016. I thought it will be smooth because the environment doesn’t have any customizations and neither they have any custom solution deployed on it.
  • Custom Left Navigation In SharePoint 2013Sep 01, 2017. In this article, I explore how to create a custom left navigation using Out of Box, without custom development. As we know that there are a lot of ways of creating left navigation, here you will see a new approach for creating a custom left navigation in SharePoint 2013.
  • How To Add Custom Font To Android TextviewAug 29, 2017. Android is one of the most popular operating systems for mobile. In this article, I will show you how to add custom font to Android textview using Android Studio.
  • Create Custom People Search Page With Phone Number Attribute In SharePoint OnlineAug 28, 2017. We have a requirement from one of our clients. They want to modify the “peopleresults.aspx” page which is the default People Search Page provided by SharePoint OOTB.
  • Custom Keyboard In Xamarin.iOSAug 23, 2017. In this article, we are going to learn about how to create a simple custom keyboard in xamarin ios.
  • Custom Extension Method In C#Aug 23, 2017. Here, I am going to explain how to create and use the extension method.
  • Building Serverless Mobile App With Azure Functions Using Xamarin.FormsAug 20, 2017. Azure Functions is a solution for easily running small pieces of code in the cloud. We can create, execute, and test our custom logic function without creating a VM or web applications and also without needing to install any software or infrastructure to run the function. In this article, we'll learn how to implement azure functions and directly call through HTTP from Xamarin Forms Application
  • How To Create A Simple Approval App Using PowerApps And Flow In SharePoint OnlineAug 18, 2017. In this article, you will see how to create a simple approval app using PowerApps and Flow in SharePoint Online. Refer getting started with PowerApps and Flow for more details. I have created a custom list in SharePoint online named Change Request which contains the following columns.
  • Understanding Media Services In AzureAug 17, 2017. Azure helps you to build custom media workflows in the cloud. It’s an end-to-end solution that delivers audio and video virtually in any device anywhere. It offers end-to-end workflow which is very highly scalable in coding, packaging, storing and distribution of media content to a wide range of devices including TV, PC, and mobile devices.
  • Custom Formatters In ASP.NET Core MVC / Web APIAug 17, 2017. In this article, we will learn how to create custom formatters in ASP.NET Core MVC.
  • Getting Started With Microsoft Azure Functions Using Visual Studio 2017Aug 17, 2017. Azure Functions is a solution for easily running small pieces of code in the cloud. We can create, execute, and test our custom logic function without creating a VM or web applications and also without needing to install any software or infrastructure to run the function.
  • Custom Model Binding In ASP.NET Core MVCAug 17, 2017. Model binding in MVC maps HTTP request data to the parameters of the controller's action method. The parameter may either be of simple type like integers, strings, double etc. or complex types. MVC binds the request data to the action parameter by parameter name.
  • How To Create And Test Azure Functions Using Azure PortalAug 15, 2017. Azure Functions is a solution for easily running small pieces of code in the cloud. We can create, execute, and test our custom logic function without creating a VM or web applications and also without needing to install any software or infrastructure to run the function. In this article, you will learn about create and test azure functions using azure Portal.
  • Objects Comparer In .NETAug 09, 2017. Objects Comparer is an object-to-object comparer, which allows you to compare objects recursively member by member and define custom comparison rules for certain properties, fields or types.
  • Custom Content Page Using Xamarin.FormsAug 09, 2017. Xamarin is a platform that allows us to create multi-platform mobile applications like Windows phone, Apple iOS, and Android through a single integrated development environment (IDE). This platform allows the designers to develop and design various mobile platform applications within a limited period. We will discuss how to create CustomContentPage using Xamarin.Forms (or) cross platform from VS2017.
  • Using Category To Store Your Master DataAug 08, 2017. In every CRM implementation, we deal with some sort of master data in CRM. Normally we use the traditional way to store master records by creating custom entities. But we do have a better way to store master data using Category entity.
  • Getting Started With The Custom Project Template Using Visual Studio 2017Jul 27, 2017. Visual Studio provides many inbuilt templates for creating a project. In this article we can create a new project template as per your client or product requirement and use your project template on multiple developers. Visual Studio provides wizards to help you generate templates from projects that are open in the integrated development environment (IDE).
  • How To Debug Custom Applications In SharePoint 2013Jul 25, 2017. From this article, SharePoint beginners can learn how to debug SharePoint custom applications and standard ways to debug.
  • Pipes In Angular And How To Create Custom PipesJul 23, 2017. Pipes in Angular 2 and how to create custom Pipe in Angular 2.
  • Custom Actions Using CSOM For SharePoint Online - Part TwoJul 20, 2017. This is the second post of the Custom Actions Using CSOM for SharePoint Online series. In this post we will see how to create Ribbon Custom actions for different types of lists (Custom List, Document Library and Calendar).
  • Working With Filters In ASP.NET Core MVCJul 18, 2017. Filters allow us to run custom code before or after executing the action method. It provides ways to do common repetitive tasks on our action method. The filters are invoked in certain stages in the request processing pipeline.
  • Custom Actions Using CSOM For SharePoint OnlineJul 18, 2017. In this post, we will see how to add and remove Menu(ECB) and Ribbon custom actions to different types of lists (Custom List, Document Library and Calendar) in SharePoint online using CSOM (.NET managed) code.
  • BoxView In Xamarin Cross Platform With ExampleJul 17, 2017. The BoxView is a simple view, useful for drawing solid color rectangles. BoxView is a useful stand-in for images or custom elements when doing initial prototyping. BoxView has a default size request of 40x40. Used creates border property in page.
  • Best Practices For MVCJul 14, 2017. Add a class library project to the solution, named Store.Model. This library is where we ‘ll keep all of our domain objects. Entity Framework will count on them in order to build the database but we are not going to configure Code First using DataAnnotations attributes on this project. Instead, we are going to put all the Code First configuration in specific Configuration classes using the Fluent API. Add a folder named Models.
  • Creating Our Own TabControl In C#Jul 11, 2017. In this article we will create our own TabControl component using Buttons and Panels in very easy steps
  • Custom Observable In KnockoutJSJul 10, 2017. Knockout JS is famous and widely used for its two-way binding concept. While developing application we uses ko.observable() to declare a knockout object. Here we will discuss how to create our own custom observable which will work same as observable but with our own functionality.
  • Update Entity Form JS Library Without Removing Event Handlers - Quick WorkaroundJul 06, 2017. Let’s say we have one entity with a good amount of custom fields and we have developed a web resource for the main form. Many of the fields have onchange event associated with them. Now we have a new requirement where we need to implement a similar kind of form with some new functionality for different types of users and some of the existing methods also need to be modified. The requirement is to replace new form JS library with updated new JS library but without removing dependent handlers (as we are using many onchange event handlers as it is) with minimum effort.
  • Form Inputs And Sizing In BootstrapJul 04, 2017. In this article we will about how to create a bootstrap from inputs and sizing, Bootstrap provides several form control styles, layout options, and custom components for creating a wide variety of forms.
  • Create A Bot With Microsoft Bot Framework Using Node.jsJul 03, 2017. In this article, you will learn how to create a Bot using Bot Framework with newly launched Custom Vision service.
  • Creating TreeView For MVC 5Jul 03, 2017. We're going to extend JsTree from JS to MVC and we'll render HTML tags from the database using custom development in the model.
  • Creating Custom Routing Constraint In ASP.NET Core MVCJun 26, 2017. In this article, we'll learn how to create a custom routing constraint in ASP.NET Core MVC. Routing constraint is responsible for matching the constraint rules with incoming requests.
  • How To Perform Custom Actions And Upgrades Using Visual Studio InstallerJun 24, 2017. Visual Studio provides installer projects in order to make application deployment simple. To have Visual Studio installer project type with your version of Visual Studio, make sure you download and install corresponding extensions to your machine.
  • Building Custom Formatters For .Net Core (Yaml Formatters)Jun 21, 2017. In this article you will learn about building Custom Formatters for .Net Core (Yaml Formatters).
  • JavaScript For Querying An Entity And Updating Attribute Values In FormJun 20, 2017. In this article, you will learn about JavaScript for querying an Entity and updating attribute values in form.
  • Overview Of C# AttributesJun 10, 2017. Overview Of C# Attributes.
  • Custom Markup Extension In Xamarin.FormsMay 30, 2017. In this article, we learn to make our own custom markup extension in xamarin.form.
  • Send Email Using Templates In ASP.NET Core ApplicationsMay 30, 2017. In this article, you will learn how to send email using Email Template in ASP.NET Core Web Application. Also we will discuss how to design a custom HTML Email Template using Images, CSS and Personalized Message, and send that to multiple users in ASP.NET Core Application.
  • Custom Scroll In AngularJS-UI-Grid With Web APIMay 28, 2017. In this article, you will learn how to create custom scroll bar in AngularJS-UI-Grid using Web API.
  • Built-In And Custom AngularJS Filters With ExamplesMay 25, 2017. This article will demonstrate built-in as well as custom AngularJS Filters with examples on Plunker Editor.
  • Add Custom Configuration Elements In .NETMay 25, 2017. Add Custom Configuration section group, configuration section, configuration element and enable intellisense for it.
  • Provision SharePoint List With Custom Site Columns And Content Type Using SharePoint FrameworkMay 16, 2017. Provision SharePoint List With Custom Site Columns And Content Type Using SharePoint Framework.

About Custom-Attributes

NA
File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!