Multi-Language ASP.NET MVC 5 Web Application


Download Code Introduction This article explains how to create a simple Multi-Language ASP.NET MVC 5 Web application. The application will be able to deal with English (United States), Spanish and French languages. English will be the default language. Of course, it will be very easy to extend the solution for including new languages. To begin … Continue reading Multi-Language ASP.NET MVC 5 Web Application

Attribute Routing in ASP.NET MVC 5


Why Attribute Routing? For example, a socially enhanced e-commerce website could have the following routes: {productId:int}/{productTitle} Mapped to ProductsController.Show(int id) {username} Mapped to ProfilesController.Show(string username) {username}/catalogs/{catalogId:int}/{catalogTitle} Mapped to CatalogsController.Show(string username, int catalogId) (Don’t mind the specific syntax right now, we will touch on this later.) In previous version of ASP.NET MVC, the rules would be … Continue reading Attribute Routing in ASP.NET MVC 5

Create Angular Constant using Typescript class


AngularJs constant does not accept any injection and they are normally static content. module app.Constant { export interface IMyConstant { exposedValue: string[]; } class MyConstant implements IMyConstant { static get getConstant() { return new MyConstant(); } exposedValue: string[]; constructor() { this.exposedValue = ['somevalue', 'somevalue1']; } } angular.module('app').constant('MyConstant', MyConstant.getConstant); } This post  

How to call a function from another module in Angular Js


Refactor your code in following these steps: Define a service in module A Add module A as dependency to module B Inject the service into the controller Here is an example: angular.module('A').service('API', function ($http) { this.getData = function () { return $http.get('/data'); }; }); angular.module('B', ['A']).controller('dashboardCtrl', function ($scope, API) { API.getData().then(function (data) { $scope.data = … Continue reading How to call a function from another module in Angular Js

How to Publish Using Web Deploy with Plesk Control Panel In Visual Studio?


Basically, we use FTP to upload our files to our server. Microsoft launched WebDeploy feature to help us to upload our application easily. Web Deploy is a useful client-server tool that is used to sync configurations and content to IIS (Internet Information Services). Note that, it acts as an extensible function of Visual Studio tapped … Continue reading How to Publish Using Web Deploy with Plesk Control Panel In Visual Studio?

External JavaScript dependencies in Typescript and Angular 2


In the last few weeks I've finally decided to look more closely at Angular 2 and I'm glad I waited this long as so much has changed since I previously look at this stuff even just a few months ago. I've been dabbling with Typescript for a while, but this has really been the first … Continue reading External JavaScript dependencies in Typescript and Angular 2

API Design: Think First, Code Later


As a software developer, I know how hard it is to contain the urge to start coding as soon as we can. After the first sprint planning, our fingers – uncontrolled, hungry creatures – want to start smashing the keyboard, translating our ideas into code fastly and furiously. < p style="box-sizing:border-box;margin-right:0;margin-bottom:0;margin-left:0;font-size:1.0625rem;font-family:"padding:12px 0;-webkit-font-smoothing:antialiased;color:rgb(77,77,77);line-height:1.6em;background-color:rgb(255,255,255);">Despite how great we … Continue reading API Design: Think First, Code Later