C# Corner

Resources  
  • MVC 5 Demo Project With Entity Framework (DB First)Nov 23, 2017. MVC project has been set up. Now, make a new C# class library project which will act as a DAL layer and Entity Framework will be handled through this project.
  • ASP.NET Core 2.0 Secret ManagerNov 22, 2017. I discussed in the previous post how configuration settings can be stored in configuration files. However, these files are checked in the source control and not suitable to store confidential settings. In a production environment these settings can be stored in environment variables or Azure Key Vault however, for development ASP.NET Core provides an alternate solution: Secret Manager.
  • Your Singleton Might Not Be "Single"Nov 21, 2017. Singleton has been a very popular design pattern as it is proven to have some advantages compared to the global variables
  • Set Paging Size In ASP.NET MVCNov 19, 2017. This article is an answer to common ASP.NET MVC searches
  • 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) .
  • Introducing Visual Studio Live ShareNov 18, 2017. With Visual Studio Live Share you and your teammates use the same debugging session. You can collaboratively step through code or set breakpoints which are reflected in your teammate’s editor in real time. Each of you can independently inspect objects, use features like tips on hover, locals and watches, or make changes to an object’s value. When you are ready to make a fix, simply edit the code and your teammates will see your edits in their editor.
  • Perfect Scrollbar Performance Improvement In AngularNov 18, 2017. Here the idea is not to override the existing behavior of the perfect-scrollbar, definitely it should be an optional choice. I mean, it should work in such a way that; if we set the property to "true" then lazy loading should enable and if we set it to false then perfect-scrollbar should work as as a default one.
  • What Is Struct And When To Use Struct In C#Nov 15, 2017. 'Struct' keyword is used to create a structure. A structure can contain variables, methods, static constructor, parameterized constructor, operators, indexers, events, and property. A structure can not derive/inherit from any structure or class. A structure can implement any number of interfaces. Structures provide better performance.
  • What Is New And How To Set Up Our First Angular 5 ApplicationNov 15, 2017. Here, in this post, I am going to discuss a few updates in Angular 5. By saying that, I will not be discussing all the items which have been released with this version. Here, we will also be checking how to create our first Angular 5 application. So by the end of this article, you will have your own sample application with you.
  • Comment Or Reply To A Post In SharePoint Using AngularNov 15, 2017. Nowadays commenting or replying to a post is the most common thing in all social networks. Hence, in this article I am going to explain how it works in SharePoint using AngularJS. By the help of this article you will learn how to set comment or reply feature to a post in SharePoint using AngularJS.
  • Using Optional Query Parameters With Microsoft Graph API - Part TwoNov 14, 2017. When you fire an API call to MS Graph, it will return the JSON result with all the properties. You may not need all the properties of a result set always. When you want MS Graph API to return only certain properties, then use $select parameter to specify which properties you want in result set.
  • 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.
  • Angular Basics and Quickstart with CLINov 09, 2017. Imagine what it would be to manually add the configuration files required to bootstrap an Angular 4 application. It is painful, right? For beginners, it might become tedious to declare all these files and manually configure all these files to bootstrap the app. It wouldn't be a good idea to set up the configuration things rather than focus on the framework and its usage. Even for the advanced developer, it might not be a great way to do all these things manually. So, Angular CLI is the solution here
  • Retrieve SharePoint Lookup Field Value Via C#Nov 07, 2017. Get and set a SharePoint Lookup Field via SSOM C#. In this article, I have explained how to get & set SharePoint lookup field (single/multiple) values programmatically via Server Side Object Model in C#.
  • Setting Or Retrieving Geotag In Media File In UWP With XAML And C#Oct 25, 2017. Reading this article, you can learn how to set or retrieve Geotagging in Media File in Universal Windows Apps development with XAML and Visual C#.
  • Missing 'Manage Delegates' Option In PWA Setting In Project Server 2016Oct 23, 2017. In this article, we will be fixing the issue Missing 'Manage Delegates' option in PWA Setting.
  • ASP.NET Core 2.0 CachingOct 12, 2017. Caching frequently used data can improve the performance of a web application. For applications hosted on multiple servers, using distributed caching means the application can access data regardless of the instance server. Caching should be considered an alternate to using Session State.
  • Deploying A Virtual Machine Using Azure PowerShellOct 11, 2017. Azure PowerShell provides a set of cmdlets that use the Azure Resource Manager model for managing your Azure resources. You can use it in your browser with Azure Cloud Shell, or you can install it on your local machine and use it in any PowerShell session. It is optimized for managing and administering Azure resources from the command line, and for building automation scripts that work against the Azure Resource Manager.
  • Shared Storage Using Azure File ServiceOct 10, 2017. In most cases, the virtual disks we are creating for an Azure VM are connected to that particular VM with a 1:1 relationship which can’t be accessed by another VM at the same time. In case you need a shared storage by multiple VMs you should use Azure File Shares. Azure File shares can be mounted concurrently by cloud or on-premises deployments of Windows, Linux, and macOS. This is mostly used in case of any requirement of something like a shared application setting or if you need to share any tools or utilities between developers and administrators.
  • ASP.NET Core 2.0 Session StateOct 09, 2017. Using an empty project from a previous post, amend Startup class ConfigureServicee() method, and add services for session and its backing store.
  • Overview Of Let In LINQOct 09, 2017. In general, Let allows create a local variable at the LinQ query. Let has the same operation as to build local variable in a loop. The example with let hast better performance than the without let example, because the first execute one time and second two time for each item.
  • Swift Programming - Zero To Hero - Part SixOct 05, 2017. This is part six of "Swift Programming - Zero to Hero" series. In this article, we will be learning about Arithmetic Operators. Before you continue in this session, please follow the previous series.
  • How To Change User Language Settings In SharePointOct 04, 2017. In this article, I will discuss how to change language settings for a particular user using two ways. When you create a site , you also specify user language setting such as Time Zone, local display for numbers, dates, and time, sort order, calendar type, work week, and time format (12 or 24 hour) settings in both SharePoint On premise and Online.
  • Executing Exchange Online PowerShell Command Through SharePoint Online PowerShellOct 02, 2017. For Office 365 administrators there are lists of Exchange Online PowerShell cmdlets available. We can execute these cmdlets through SharePoint Online Management Shell or Windows PowerShell by creating remote PowerShell session with Exchange Online. In this article I’ll explain how to create remote PowerShell session to Exchange Online and then execute Exchange Online PowerShell cmdlets.
  • 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.
  • Azure NoSQL In ASP.NET Core 2.0Sep 26, 2017. The sample code will require you to set up an Azure account, NoSQL database and collection.
  • Build Desktop Chat App With Angular 2 And Electron - Part OneSep 26, 2017. In this article series, we are going to develop a desktop chat application using Angular 2 and Electron. In this part, we are going to set up an Angular 2 application with electron. We will extend this application in future article parts to use it as chat window.
  • Toggle Button Android App Using Android StudioSep 23, 2017. Android Toggle Button can be used to display checked/unchecked (On/Off) state on the button. It is beneficial if user have to change the setting between two states. It can be used to On/Off Sound, Wifi, Bluetooth etc. In this article, I will show you how to create Toggle Button android App using android studio.
  • What Is New In iOS 11?Sep 19, 2017. iOS 11 sets a new standard for the world’s most advanced mobile operating system. Your apps can now become more intelligent using the power of machine learning with Core ML. You can create incredible augmented reality experiences with ARKit. And you can deliver a more unified and immersive user experience with new multitasking features, including drag and drop for iPad, the new Files app, new camera APIs, new SiriKit domains, Apple Music integration, and more
  • Learn Universal Windows Programming Via Modern C++ (Check Box)Sep 19, 2017. In the button control, we are using the IInspectable to set the content of the text. How do we get the value from the IInspectable interface ? By IPropertyValue; using the “as” operator, we can convert from IInspectable to IPropertyValue.
  • Serve Static Files In ASP.NET Core Using Visual Studio 2017Sep 18, 2017. This article explains about static files and how to set default page using static files in ASP.NET using Visual Studio 2017 in a step by step way.
  • Missing Security Section In PWA Settings In Project Server 2016Sep 18, 2017. In this article, we will discuss and solve the issue of Missing Security Setting in PWA Settings in Project Server 2016 / 2013.
  • Android Application To Set Silent Mode, Ringer Mode, And Vibrate Mode In A PhoneSep 15, 2017. Android is one of the most popular operating systems for mobile. In this article, I will show you how to set silent mode, ringer mode, vibrate mode in an Android application using Android studio.
  • Create Immutable Type In C#Sep 14, 2017. A public constructor that accepts initialization data is required so that the client can pass-in minimum state for the type to be valid. Private constructor, on the other hand, is used by methods to construct a new object and set its entire state.
  • ASP.NET Core 2.0 Static FilesSep 13, 2017. Static files can also be served from folders outside wwwroot by passing in StaticFileOptions to middleware and setting a FileProvider and RequestPath. This is useful when you want authorised access to files e.g. by returning FileResult action result from a secure controller.
  • 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.
  • Frequent Pattern And Market Basket ImplementationSep 09, 2017. Frequent pattern mining is about the item sets and sequences which appear in a data set.
  • Getting Started With Bing Speech API In WPF ApplicationsSep 06, 2017. Cognitive services are a set of APIs that are designed to democratize artificial intelligence by enabling systems to see, hear, speak, understand and interpret our needs using natural methods of communication.
  • How To Configure Exchange 2016 Hybrid Deployment With Office 365 - Part FourAug 29, 2017. In this multi part article series, we will see how to set up Hybrid Exchange 2016 with Office 365 by using ADFS and AAD Directory Sync Services.
  • How To Auto Increment An Existing Column In SharePoint Online (O365) Using FlowAug 29, 2017. Microsoft Flow is a set of rules that lets various apps communicate with each other automatically. Flow is used to automate processes and tasks.
  • How To Configure Exchange 2016 Hybrid Deployment With Office 365 - Part TwoAug 28, 2017. In this multi part article series, we will see how to set up Hybrid Exchange 2016 with Office 365 by using ADFS and AAD Directory Sync Services.
  • Virtual Machine Scale SetAug 23, 2017. Virtual Machines are highly flexible such that they can be changed in their size and the performance based on the requirement of the user. The resources which we actually require can be decided by us and then the user can be able to scale up or down the Virtual Machine. When making changes to the Virtual Machine size, the cost that is charged for the Virtual Machine will also vary. Here the size of the Virtual Machine will include the number of cores, the Random-Access Memory, number of data disks, the IOPS range, SSD size, load balancing feature and premium disk support.
  • How To Use Timer Control In PowerAppsAug 23, 2017. In this article, you will see how to create an app from a template and use Timer Control in PowerApps. Refer to getting started with PowerApps and Flow for more details. I am going to create an app using ”Employee Engagement Survey” template and set 30 second durations using timer control for each question.
  • Swift Programming - Zero To Hero - Part ThreeAug 17, 2017. Statements are the building blocks of any program. We can perform any function with the help of statements, such as checking values or declaring variables, calling methods, or even creating objects.
  • The Value Of Coaching And The Dangers Of TellingAug 15, 2017. I have led many global training sessions on leadership and coaching. I typically start by asking, “what is coaching?”. The responses of most people gravitate towards an answer consisting of making people better in some way. If you look up the word “coach” in the dictionary the first definition is “a large usually closed four-wheeled horse-drawn carriage having doors in the sides and an elevated seat in front for the driver”. People equate coaching to “moving forward” or “getting someone from point A to point B”.
  • Key Capabilities Of Azure Cosmos DBAug 12, 2017. A few years ago, Microsoft offered DocumentDB as a Service (DaaS) that supported a limited set of features and functionalities. Today, most of the cloud-based services, such as Bing, Azure, and Office 365 are using DocumentDB. Microsoft took DocumentDB to the next level and came up with Azure Cosmos DB - A globally distributed, multi-model database.
  • Learn Universal Windows Programming Via Modern C++ (Button Control)Aug 10, 2017. Button control allows the user to click to perform actions, there are mainly two properties, content and click event. Content properties are used to the set the caption of the Button and click event is used to trigger the event.
  • Track Security Role Changes Using AuditingAug 03, 2017. Have you been in a situation where the client is complaining about sudden access to unwanted entities/not required for their process or suddenly they are not able to perform some set of actions? If yes this article is going to help you.
  • How To Setup Development Environment For CSOM Based Powershell DevelopmentAug 03, 2017. In this article, we will explore the steps that can be helpful in setting up the client machines for PowerShell development.
  • Data Science - Basics Of Statistics - Part OneJul 28, 2017. Data Science means Science which is being driven by data, by means of getting useful insights from the set of data available, plotting the data visually and predicting the future.
  • Fog Networks / Fog Computing - An OverviewJul 27, 2017. Like I mentioned in earlier posts, technology is evolving at a very fast pace, though this post will throw light on an up-coming technology, which is set to disrupt most of our networking/cloud compute environments. And the name is FOG
  • API Testing With PostmanJul 27, 2017. Postman is a rest client with an API development suite with powerful features. Postman is a google chrome application for testing API calls which can also be used with the Developer Tools Utility to test these API calls and not have to worry about importing any files or setting up Authentication.
  • Angular, Bootstrap And ASP.NET MVC - Part Three (Data Binding In AngularJS)Jul 26, 2017. In this article, we are going to learn data binding in AngularJS. We learn how data is set into the form and how data is retrieved from the form. In AngularJS, data is stored in “$scope” variable in the controller.
  • Lazy-Loading NgModules In ASP.NET Core Angular SPAJul 25, 2017. This article shows you how configure ASP.NET Core Angular SPA starter project to serve a lazy-loaded Angular module. Angular has this cool feature of loading a module lazily. Modules that are set up to load lazily can significantly save application startup time. Lazy-load module set up is done in the application’s routing configuration section.
  • Getting Started With Microsoft FlowJul 25, 2017. Microsoft Flow is a product to help us set up an automated Workflows between your favourite apps and services to synchronize files, get notifications, collect data, and more by the internet.
  • Confessions Of An Angry ProgrammerJul 23, 2017. Recently, after doing the keynote session about code quality at a conference in Denver, I received a comment from one of the attendees. He said my session was “too much angry coder”. After receiving many great comments about the session, this one took me by surprise. I thought about it for awhile and commented back, via Twitter…
  • Creating An Azure SQL Database And Connecting Through SQL Server Management StudioJul 23, 2017. This article demonstrates how to create an azure SQL Database, setting the Firewall rule and connecting through the SQL Server Management Studio.
  • ngFor Directive with Local Variables And trackBy In Angular 2Jul 22, 2017. There are couple of local variables with ngFor built-in structural directive provided by Angular 2, which I are used for getting the index of current element while iteration, for getting last or first element from the collection etc.
  • Setting Up And Executing Basic Ansible PlaybookJul 20, 2017. This post will give you a brief overview of ansible and walk you through how to setup and run ansible playbooks.
  • Create A Microsoft Azure Cognitive Service Face API Application In 30 MinutesJul 17, 2017. In this article, we are going to create Microsoft Azure Cognitive Service Face API in half an hour. Microsoft Azure Cognitive Services are set of APIs and Services available for the developers to make their applications more interactive and intelligent. This was formerly known as Project Oxford. Here Microsoft uses Machine Learning in the background to create these APIs.
  • Using PowerApps - Authoring Made Simple And PowerfulJul 16, 2017. I am glad to bring you up with the latest change in the PowerApps Studio, in the latest version (2.0.660), the enhanced capabilities are showed and discussed in this article, PowerApps Studio had changes in the Properties Panel, Viewing data with the edit form, global variables, and the reset function.
  • How To Create A List/Library Programmatically In SharePoint 2013Jul 13, 2017. We need to install Visual Studio in our machine for creating a list using SharePoint Server Object Model. The Server Object Model will be executed in the server side & it provides a rich set of classes in representing & manipulating SharePoint objects. Server object model is like production server environment to access the data where Sharepoint is installed on the machine.
  • Windows Azure Active Directory Identity And Access Management With MVC 5 Web ApplicationJul 04, 2017. In this article, I will show you a short demo of how to register your existing MVC 5 Web Application with Windows Azure Active Directory and set authorization. In the same way, you can also implement Single-Sign-On with Azure AD.
  • Setting Up SQLite In Xamarin.FormsJul 03, 2017. In this article, we will learn to set up SQLite in xamarin.forms. It doesn’t require too much time and it is not difficult like setting up other databases.
  • MVVM In WPFJun 29, 2017. MVVM is an architecture pattern which facilitates separation of projects into three logical layers with their own responsibilities. It facilitates modern techniques such as Separation of Concern, Unit testing and TDD. It is set of guidelines, that, when used, makes it easier to develop applications.
  • Setting Up Angular Project With ASP.NET Core And Visual Studio 2017Jun 28, 2017. In this part, we are going to learn how to setup Angular projects with ASP.NET Core and Visual Studio 2017, for doing this first we need to download Visual Studio community 2017.
  • Getting Started With QnA Maker ServiceJun 28, 2017. In simple language, it is a service to educate a bot with static answers for specified set of questions. Let’s take an example of FAQs. FAQs are set of questions and answers which are going to remain same irrespective of user.
  • Working With Variables In Windows PowerShellJun 27, 2017. Windows PowerShell variables are quite different when you compare them with Cmd.exe variables. In Command-prompt, all the variables are environment variables and they can only store a string of text. But in Windows PowerShell, variables can store more than just text, they store objects.These variables help you to create reliable scripts.
  • Moving MVC Session State In AzureJun 17, 2017. MVC Session State in Azure.
  • Session State In ASP.NET Core And MVC CoreJun 10, 2017. In this article, we will explain how to create a “Session State in ASP.NET Core and MVC Core”.
  • Stop Using VAR Everywhere And Think Before Using Underscore With Private Variable In C#Jun 06, 2017. When to use underscore(_) or not with the private member variable; why we shouldn't use var everywhere; when must we use 'var'; when can't 'var' be used. Why we need to follow best practices guidelines.
  • ALL In One DataBase Hero Script - Set OneJun 01, 2017. ALL In One DataBase Hero Script.
  • Getting Started With ReactJS - Environment SetupMay 31, 2017. In this article, we will learn how to set up the environment for React development. First of all we need to install NodeJS.
  • UI Elements Of Forms And Setting Pages In Xamarin.FormsMay 31, 2017. UI elements of Forms and Setting pages In Xamarin.Forms.
  • Overview Of Office 365 And Setting Up Trial AccountMay 23, 2017. Overview of Office 365 and setting up Trial account.
  • Setting Up Your Own On-Premises Sentry Server Via Docker ComposeMay 22, 2017. Setting Up Your Own On-Premises Sentry Server Via Docker Compose.
  • Setting Up CI And CD For Azure App Services With Github And Azure CLI 2.0May 22, 2017. Setting up CI And CD for Azure app Services with GitHub and Azure CLI 2.0.
  • Temporary Tables And Table Variables In SQLMay 19, 2017. In this article, I will explain the difference between temporary tables and table variables in SQL server.
  • Xamarin.Android - How To Set Time Android Application Using Visual Studio 2017May 16, 2017. This article acquaints you with how to set Time Android Application, using Visual Studio 2017.
  • Manage Codes With GIT Using Visual Team Foundation Services - Part OneMay 12, 2017. In this article, we will learn how to create a Git Repo, using Visual Studio Team Services, create a simple project and set up repo in Visual Studio to manage the codes. We will be using Visual Studio to manage and push the codes to IT repo.
  • Setting Up An Office 365 SubscriptionMay 10, 2017. Setting Up An Office 365 Subscription.
  • Working With Types In TypeScriptMay 08, 2017. In this article, we will learn how to declare variables and use type annotations in Typescript.
  • Setting Up Development Environment For XamarinMay 02, 2017. Setting Up Development Environment For Xamarin.
  • Set Wiki Page As Home Page In SharePoint Online By Activating The FeatureApr 17, 2017. In this article, I would like to share the steps to set Wiki page as a home page for SharePoint Online sites.
  • WPF - Command LineApr 14, 2017. Command line argument is a mechanism, where a user can pass a set of parameters or the values to a WPF Application when it is executed.
  • SharePoint 2013 Workflow - App PermissionsApr 14, 2017. In this article, we explore SharePoint 2013 Workflows. It is possible to use the app step action to give the Workflow its own permission set.
  • How To Set Up Multi-Factor Authentication(MFA) For Office 365 UsersMar 29, 2017. How to set up Multi-Factor Authentication(MFA) for Office 365 users.
  • How To Set Non-Working Days In Microsoft Project 2013 CalendarMar 20, 2017. In this article, we shall see how to set non-working days in Microsoft project calendar.
  • Set User Defined Colors For Calendar OverlayMar 15, 2017. In this article, you will learn how to add different colors to calendar overlay settings color.
  • SharePoint Framework - Setting Up Development EnvironmentMar 09, 2017. In this article you will learn about SharePoint Framework - Setting Up Development Environment.
  • Getting Started With MVVM Light With WPFMar 09, 2017. In this demonstration, we will see how to set up MVVM light and how it works in WPF applications
  • Configuring Redis Session State In ASP.NET CoreMar 03, 2017. This article describes the steps required to configure Redis as a storage mechanism for session state in an ASP.NET Core MVC Application.
  • Configure SQL Server Session State In ASP.NET CoreMar 01, 2017. This article describes the steps required to enable SQL Server as a storage mechanism for session state in an ASP.NET Core MVC Application.
  • Four Ways To Read Configuration Setting In C#Mar 01, 2017. In this article, you will learn about the four ways to read the configuration setting in C#.
  • How To Create Animation Using ViewAnimator In Xamarin With Visual Studio 2015Feb 25, 2017. In this article, we will learn how to create an animation using ViewAnimator, about the methods of ViewAnimator, and how set an animation effect, using ViewAnimator in Xamarin with Visual Studio 2015.
  • Session State In ASP.NET CoreFeb 25, 2017. This article help us to understand how to install, configure and use sessions with ASP.NET Core.
  • Controlling The LCD Display By Using BlueTooth (HC05)Feb 23, 2017. In this article, I will explain about controlling the LCD display by using BlueTooth(HC05). It will control and display the name which we have set in our mobile phone.
  • How To Set The Default Open Behavior Or Configure Office Files Opened By Default In SharePoint OnlineFeb 18, 2017. In this article, you will learn how to set the default open behaviour or configure office files opened by default in SharePoint online.
  • Introduction To Mount Point In SQL ServerFeb 17, 2017. This article will give you brief information on SQL Server Mount Point and its benefits and you will learn how to set up a new partition.
  • Host Your Website On Github Pages For FreeFeb 17, 2017. In this article, I will quickly introduce you to GitHub Pages, using which you can freely host your websites, straight from your repositories on GitHub. Isn't this fantastic?This blog is a brief introduction to setting up your website using GitHub Pages, but it does not cover each and every detail about GitHub Pages.

About set-session-variables

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!