August 19, 2016

CMS Tools for .Net



http://www.lucemorker.com/blog/top-5-net-based-cms-content-management-system

http://blog.dreamcss.com/content-management-system/asp-net-based-cms/

http://developerpublish.com/popular-asp-net-based-content-management-systems-cms/

https://saravananarumugam.wordpress.com/

Ultimate Tools
http://www.hanselman.com/blog/ScottHanselmans2014UltimateDeveloperAndPowerUsersToolListForWindows.aspx


https://www.elegantthemes.com/blog/resources/the-best-web-development-tools-you-probably-arent-using

http://www.lucemorker.com/blog/best-tools-technologies-for-net-based-web-application-development


Name
Platform
Supported databases
Latest stable release
Licenses
Latest release date
XML, SQL Server
4.2.1
07.03.04
SQL Server, XML, MySQL, MySQL, SQLite, RavenDB, MongoDB
4
SQL Server, MySQL, PostgreSQL, SQLite, Firebird, SQL CE
2.4.0.9
SQL Server, MySQL, SQLite, PostgreSQL[7]
1.9.1
SQL Server, MySQL
7.2.8

August 18, 2016

IIS, Visual Studio, unable to start debugging on the web server

https://blog.nick.josevski.com/2015/02/17/iis-visual-studio-unable-to-start-debugging-on-the-web-server/

August 16, 2016

Dependency Injection

Got nice example from below link
http://www.codearsenal.net/
http://www.codearsenal.net/2015/03/c-sharp-dependency-injection-simple.html#.V7L1TPl97IU

let's say Employee, and two or more different loggers for that class. 
Each logger prints messages in his own particular way and you want to have control of which logger to use for Employee during its instantiation.

class Program
    {
        static void Main(string[] args)
        {

            Employee employee1 = new Employee(new LoggerOne());
            Employee employee2 = new Employee(new LoggerTwo());
            Console.ReadKey();
        }
    }

    public class Employee
    {
        public Employee(ILogger logger)
        {
            logger.WriteToLog("New employee created");
        }
    }

    public interface ILogger
    {
        void WriteToLog(string text);
    }

    public class LoggerOne : ILogger
    {
        public void WriteToLog(string text)
        {
            Console.WriteLine(text);
        }
    }

    public class LoggerTwo : ILogger
    {
        public void WriteToLog(string text)
        {
            Console.WriteLine("***********\n {0}\n***********", text);
        }
    }

And the output: 
New employee created

*******************
New employee created
*******************

August 7, 2016

Angular js

We can use angular with any technology like MVC,web page,web forms or normal HTML.
Angular js is mainly base on HTML and JS

Angular advantages:
  1. Two-way data binding i.e Model to View or View to Model
  2. Testing
  3. Can use dependency injection
  4. Angular Directive
  5. Templating
  6. RESTful api handling
  7. modularization
  8. AJAX handling
  9. Validation
  10. filtering of data
AngularJS lets you extend HTML with new attributes called Directives.

ng-app :directive initializes an AngularJS application.root element of an application
ng-init :directive initializes application data.
ng-model : binds the value of HTML controls to application data.
ng-bind: Binds the content of an HTML element to application data.
ng-value: An expression that will set the element's value attribute.

Event type
ng-blur : An expression to execute when an element loses focus.
ng-change : An expression to execute when an element's value changes
ng-checked :expression that will set the element's checked attribute if it returns true.
ng-class:An expression that returns one or more class names.
ng-click:An expression to execute when an element is clicked.
ng-copy:An expression to execute when the text of an element is being copied.
ng-mousedown Specifies a behavior on mousedown events.
ng-mouseenter Specifies a behavior on mouseenter events.
ng-mouseleave Specifies a behavior on mouseleave events.
ng-mousemove Specifies a behavior on mousemove events.
ng-mouseover Specifies a behavior on mouseover events.
ng-mouseup Specifies a behavior on mouseup events.

But use this framework only if required.

http://www.c-sharpcorner.com/UploadFile/302f8f/Asp-Net-mvc-5-with-angularjs-part-1/

https://code.msdn.microsoft.com/Aspnet-MVC-Sample-using-a5ee35e2

http://www.dotnetfunda.com/articles/show/3202/single-page-application-example-download

http://techfunda.com/howto/angularjs/single-page-application

http://www.infragistics.com/community/blogs/dhananjay_kumar/archive/2015/05/13/how-to-use-angularjs-in-asp-net-mvc-and-entity-framework-4.aspx

http://www.c-sharpcorner.com/UploadFile/rahul4_saxena/single-page-application-spa-using-angularjs-web-api-and-m/

https://www.codeproject.com/Articles/1044334/jQuery-Vs-AngularJS-A-Good-Comparison