Videos

  • Thread Safety Singleton

    .

    If you are new to design pattern please read my blog on Design Pattern then read about Singleton Design Pattern.So let’s continue about Thread Safety Singleton.There are various ways to implement Singleton Design Pattern. No Thread Safe Thread Safety Thread Safety using Double Check Locking Lazy Instantiation I will write about Thread Safety Singleton here, No…

  • How to create dynamic HTML tags

    .

    How to create HTML tags dynamically? In some cases, there might be a requirement to create HTML tags dynamically. For eg, I will create below HTML structure with C# code. <ul id=”pagelist” runat=”server” class=”pages”> <li class=”active” rel=”page1″>My Page Title1</li> <li rel=”page2″>My Page Title2</li> </ul> <div class=”container” id=”container” runat=”server”> <h3 rel=”page1″></h3> <div id=”page1″>    </div> <h3…

  • Singleton Design Pattern vs Static Class in C#

    .

    If you are new to design pattern, then read my earlier blog on Design Pattern.We have explored ASP.Net Singleton Design Pattern in earlier blog.This blog will help us to know the differences between Singleton Design Pattern and Static Class in C#. The most common questions asked related to Singleton Design Pattern is difference between static class and…

  • ASP.Net Singleton Design Pattern

    .

    In the previous blog, we have seen about “What is Design Pattern?” Now this is time to explore the types of Design Pattern.Let’s start this with Singleton Design Pattern.Singleton Design pattern belongs to Creational Design Pattern. Singleton Pattern ensures that only one instance of the class exists through out the application life cycle.Singleton design pattern…

  • Web Service to return data in JSON format

    .

    Web services are those services which are available over web to communicate between systems.By default Web Service returns data in XML format, now if the requirement is to return in JSON format then we need to do modification in web method.Below webmethod returns data in JSON format.     [WebMethod]     [ScriptMethod(ResponseFormat = ResponseFormat.Json)]    …

RSS
YouTube
YouTube
Instagram