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 … Read more

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 … Read more

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)]     … Read more

Understanding WCF Bindings

Binding describes that how a client will communicate with WCF service. It tells that what protocol will be used to communicate, as WCF supports various protocols like HTTP, TCP, MSMQ, Named Pipes. Binding determine transport protocol i.e. TCP, HTTP, message exchange format i.e. plain text, XML You may go through to my earlier blogs to … Read more

ABC of WCF

In this article, we will focus on ABC of WCF which is the core of WCF service endpoints. This is one of the most important interview questions. What is the ABC of WCF?  ABC is the main foundation of WCF learning. WCF service comes into existence with a valid Endpoint.  An endpoint consists of 3 … Read more

First WCF Service Application – WCF Tutorial

In this blog, I will be creating a WCF service application project. If you want to learn WCF from the beginning, please read my earlier blog. Let’s create the first WCF Service Application To create a WCF project open Visual Studio 2012 and select File->New Project. Click on WCF from an installed template (Left area) … Read more

How to maintain page scroll position after page post back in asp.net

In this blog, I will write about How to maintain page scroll position after page post back in ASP.Net. Suppose there is a page with a huge number of inputs and in one case some error/exception occurs at bottom of the page. But in the postback, the page scroll position moved to the top. In … Read more

Differences between Stored Procedure and Functions

Very frequent question asked in interview is Differences between Stored Procedure and Functions.Below are the differences between these 2. 1) Functions must return a value. Stored procedure need not be.2) Stored procedures can be called using EXEC command where as Functions can be called from another SQL Statement.3) Stored Procedures are precompiled. Functions are not precompiled.4) Generally Stored procedures are … Read more

RSS
YouTube
YouTube
Instagram