Advance Sharp

Advance Sharp is derived by its users, provides articles on many languages for helping other users to learn new features and languages. We want to make it the first place for every programmer to learn new technologies by accepting articles from any experienced programmer who want to help other programmer.

We have articles on following topics

Most Viewed Articles

MVC DropDownListFor fill on selection change of another dropdown

Binding DropDownListFor from enum, database and some hard coded values in our previous article [MVC dropdown binding best ways][1]. In this article we will try to bind child Dropdown on selection change of parent Dropdown, say Country to State or Sate to City, by using jQuery which will call an action in controller and return JSON for selected id, and with the help of jQuery append values to... By   On

MVC insert update delete and select records

CRUD (Create, Retrieve, Update and Delete) in MVC. When we start to learn new language, first we try to run an application with “Hello World” and then CRUD functionality. So in this article we will see how to select records from database (with WebGrid, pagination and sort functionality), update a record, add new record and finally delete a record in ASP.Net MVC. Let’s create a simple table... By   On

Angular 2 Search and Sort with ngFor repeater with example

In angular 2 we don't have pre-defined filter and order by as it was with AngularJs, we need to create it for our requirements. It is time killing but we need to do it, (see [No FilterPipe or OrderByPipe][1]). In this article we are going to see how we can create filter called pipe in angular 2 and sorting feature called Order By. Let's use a simple dummy json data array for it. Here is the json... By   On

Search, sort, paging, insert, update and delete with ASP.Net MVC and bootstrap modal popup PART-1

Search, sort, paging, insert, update and delete with ASP.Net MVC and bootstrap modal popup and WebGrid to show records with search, sort and paging feature and in next article we will complete our article by adding insert, update and delete feature with bootstrap modal popup. We are going to use Entity Framework 6 code first model with a very simple table phone. Adding client side sorting and... By   On

Angularjs Cascading Dropdown/Select with demo

Cascading dropdown with angularjs is easier than MVC and ASP.Net. In Angularjs ng-change is the best event to hook the function to get the second dropdown list items. In this article, we will try to fill the state dropdown on selection change of country and then fill the city dropdown on change of state dropdown. We will fetch only those records from database which match the criteria rather... By   On

Angular 2 Dynamically Add & remove Components

Angular 2 gives full control to add or remove component in other component programmatically by simple steps. In this article we are going to see how to add, remove experience component to any other component, we will also try to pass some values to component from parent to child component to see if it is possible or not. It's better to write on plunker so we can test at anytime from... By   On

Search, sort, paging, insert, update and delete with ASP.Net MVC and bootstrap modal popup PART-2

To add insert, update and delete feature we are going to use bootstrap modal popup with a single JavaScript method to open any partial view as a modal popup and one method to post the data from modal, which can work for entire application. First we will add some code to our layout view to dynamically add the partial view in it and JavaScript file, then we will add code only one for add new... By   On

Angularjs Constant and enum with example

As we know the benefit of constant and enum in any other language, we need to it wherever need in our project. But angularjs does not have any enum concept, we will try to create some constants, object to achieve the same goal of enum easily with example. Luckily AngularJS provides a `constant` service type that can be used for static data that will not change and can be used throughout the... By   On

MVC dropdown binding best ways

To Bind a DropDownListFor or DropDown in asp.net MVC from database, from enum or from hard coded values, most people suggest to add a property in the model with IEnumarable or IList. We can use it but not very helpful because after every postback we will need to fill the list again otherwise it will be null. So using ViewBag is not a bad idea, we will use it in our article. What we will see... By   On

Angularjs dropdown select value, text, multiple values with demo

Angularjs dropdown/slect have more option than any other .net language dropdownlist, we can bind and get only Id or Text or both from dropdown, even we can bind and get more than two values like value, text and role from a dropdown and even more. We can try to see all the possible ways to bind the dropdown/select in this article, which is not possible to cover every thing but we will try our best... By   On

New Articles

Microsoft announces end of .NET Core 2.1 Support From August 21-2021

Microsoft is ending the official support for .NET Core 2.1 from August 21, 2021 which means Microsoft will no longer be providing updates, security fixes and technical support for it beyond the announced date. Microsoft is strongly advising users to upgrade their Microsoft products and .NET Core applications to the supported successor version that is .NET Core 3.1 or .NET 5.0 to continue... By   On

Building Cross-Platform Web Applications Using .NET Core

*“For the first time in Microsoft .NET history, you can build cross-platform Web Apps and deploy them on Windows, Linux and Mac OSX devices.”* ASP.Net core is an open-source cross-platform framework that offers MVC structure, web API, and all the services needed to build a specific enterprise-grade web application. It is an emerging and feature-rich framework that offers speedy performance,... By   On

.Net Core - Banking, Finance & Insurance Web App development Solutions

This Blog brings out the synopsis of using dot net core technology to develop a banking/financial application. Along with this it also speaks about the future, benefits, importance, and features of .net core. We here will be talking about the Digital money with ASP.Net core technology and the below-mentioned topics that will help you in understanding the ASP.Net core for banking and finance... By   On

Hire Dedicated Resources – Web, Apps or Custom Software Development

After brainstorming and deep analysis 79% of big companies, enterprises, or businesses found 2 options to convert ideas into reality with the help of technology by building software, Robust mobile app development, customized website. First is, You can have your in-house team that includes Web designers, designers, Mobile application developers, Marketers, and Programmers. The con having of the... By   On

Angular 6 Group Items in Select

Show option group in Angular with select and align group items properly. There is nothing special to Angular if you already know the ngFor loop. You are just missing the HTML part `optgroup`. We are going to see some working examples by using JSON data to show, you can use any service or data from anywhere. First we will see some pure HTML examples with hard coded values so we can understand... By   On

ASP.Net Core MVC Global Error Handling & Logging in 5 minute

Catch every error in applicatoin and log either to a file or in database is a good idiea. But how to catch every error in application and show a proper error page or page not found page? We will try to see how easily we can acheive it and how to log error in a file by using the microsoft provided logger feature to log error in a text (.txt) file. If you will open the startup.cs file in any... By   On

Test driven development (TDD) through Mocking using Moq framework

I am going to demonstrate the use of a very popular mocking framework, Moq, to mock database calls. The example in the article is an Order Processing class, mimicking the order processing system. For the sake of simplicity, I am focusing on fetching an order from database (by order Id), adding 10% GST on the amount and then saving it back to database. public class OrderProcessing ... By   On

Angular 6 Web API 2 Bearer Token Authentication add to header with HttpInterceptor

Security is the main feature of any application, we will use in this article Web API 2 bearer token, created through Owin oAuth, which we created in our previous article. Pass Bearer token with every HttpRequest with the help of HttpInterceptor. In this article we will see only the authentication and guard the pages. We will implement refresh token in next article because might be you are here... By   On

ASP.NET Web API 2, Owin, OAuth, Bearer Token, Refresh Token with custom database

Token base authentication expires over a fixed time, to overcome on it we need to use the refresh token. We will try to create the token as well as the refresh token after successful login, refresh token will be used to generate a new token if current token is already expired and it is not too late. If you are at this page after reading many online articles on how to implement Owin, OAuth,... By   On

OAuth Web API 2 Bearer Token Role base authentication with custom database

Create Token with user credential & roles and authorize action methods based on role in Web API is the topic we will cover in this article. We would need to pass token in every request and decorate action methods with [Authorize(Roles = "Admin, Manager") etc. that's only the code we will need to complete our role based authentication. Check my previous article [OAuth Web API token based... By   On

Global error handling in angular 6 with HttpClient & interceptor

Angular 4.3.1 introduced HttpInterceptor, we will use HttpClient and new HttpInterceptor feature to handle error globally for entire application. When calling the service method, we might get some kind of server error. It can be any kind, like poor network connection to reach to the server, method itself through error due to any logical error, or unable to connect to the database, in that... By   On

Angular 6 Lazy Loading with demo

Lazy loading in angular is introduced to load the source and pages on demand. Concept is to group the feature in modules and when user load any page from that module, load the complete module only then rather than to load everything on application start. Let's try to understand the concept with example: Say we have a website which have users, customers, products etc. For lazy Loading, we will... By   On