Friday, 15 January 2016

Angularjs Tutorial for beginners – Part2

Continuing the article what I left in previous article; will cover.

·         What is AngularJS  Filters
·         How to use AngularJS Events             
·         How to do Validation in AngularJS Forms
·         How to use $http in Angular JS
·         How to call service or WebAPI in AngularJS 

Please see the part one before proceeding with this article.


1.    AngularJS Filters


Thursday, 14 January 2016

Angularjs Tutorial for beginners – Part1

This articles is for whom who is going to start working on angularJs and want an over view of it and basic directive. Target audience is only AngularJs beginners.


Once you reed you will get the answer of.
1.       What is angularJs
2.       What is directive in angularJs
3.       How data is binding in angularJS.
4.       What is expression in angularJs
5.       What is modules and controller in Angularjs
6.       How angularjs follow MVC architecture
7.       What is two way binding in angular.

What is AngularJs


       AngularJS is a structural framework for dynamic web apps.

Thursday, 7 January 2016

web api with entity framework example in MVC

You can give the answer of below question after complete this exercise.


  • Webapi example in mvc 5 
  • How to add Web API to an existing ASP.NET MVC (5) 
  • Differnce in WEBApi Controller and MVC Controller
  • List of Verb in WebAPI
  • How to place Routing for WebAPI
  • How to check the WEBApi Get
  • How to use Advance Rest Client.
  • How to  Check WEBApi Post
  • How to  Check WEBApi Put
  • How to  Check WEBApi Delete
  • Convert object to json in MVC.
  • How to Use WebClient to call WebApi
  • How to call WebApi through Webpage
  • call web api from mvc controller
  • How to declare local variable in MVc in Loop
  • How to use @Html.BegainForm
  • How to create Partial view.
  • How to call partial View in MVC
  • How to call web api post Action WebClient
  • How to call web api Put action WebClient
  • How to call web api Delete in WebClient.
  • How to delete record in web api using WebClient
  • Edit operation in mvc 4 with model pop




Demonstrating a simple application using MVC, WebApi and EntityFramework;
Web api example in mvc 5

Monday, 4 January 2016

convert hexadecimal to decimal c#

I tried to find out but did not get proper solution for convert hexadecimal to decimal c# and finally after some research i find it out. So thats why  posting that solution even it is one liner.

string hexValue = "00037FFEBCCBD966";

Thursday, 31 December 2015

single page application angularjs example

Here I am demonstrating a single page application (SPA) in AngularJs example.
Simple application for basic financial calculator like below; As I used it in mobile cordova application showing the sample for mobile application Screen (Single page application in AngularJs for mobile)


We should include the Some javascript file in application that you can download from below resources for single page application angularjs

Monday, 28 December 2015

Access WebApi using C# secured by certificate


Accessing the Webapi using the C# code and that WebApi is having SSL security.

Step 1: You have to install the SSL certificate into your local system and that you can check into MMC.

You should have the pfx file to install the certificate; you can follow the below steps to install certificates.

Step 2: You have to read the certificate by the thumbprint or by name, pass it to your code header like below; Code snippet to read the certificate as:
Need to import below namespace; using System.Security.Cryptography.X509Certificates;

/// <summary>
        /// Creating the certifactes
        /// </summary>
        /// <returns></returns>
        private static X509Certificate GetClientCert()
        {
            X509Store store = null;
            try
            {

Install SSL Certificate

You can see the link to creation of SSL certificate



You have the icon like below for creation of certificate.


Create New SSL Certificate using IIS 8.1

Create New SSL Certificate

  1. Open IIS; open the run window by window + R, than type inetmgr like below. Then click on Ok.

  1. Internet Information service will open than select the server from left and you will get the list of option as like below screen. On it select the server certificate.

Monday, 21 December 2015

application_error redirect to error page mvc

Handling the error getting in MVC application into Application_Error method in Global.asax page. So whatever the error you will get into application it will work as you handle there.

If getting any application error it will log that error.
If getting 404 it will redirect to particular controller/action like PageNotFound
If getting other than 404 it will redirect to particular controller/action like Index


Wednesday, 16 December 2015

Check url availability c#

You can use this application to check the availability of URL are there are not it can be used as the BVT test for your application.

There is the simple application you can create which will give the result of status of all URL for your application. It will give the Result as status code with URL.

Application will be look like Below;