observer design pattern

Here is the definition of observer design pattern The observer is know as a behavioral pattern, as it’s used to form relationship between object at run time. Its define a 1-m dependency objects so that when one object changes state, all its dependents are notified and update automatically. Bounce! Bounce! Bounce! OK, lets define above […]

Read More

Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same.

Error: Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same. Solution: Type dcomcnfg in run command. Component Service form will appear, select services (Local) section. Check ASP.NET State service. right click on ASP.NET […]

Read More

multicast delegate

Multicast Delegate A Multicast delegate is delegate which has references to more than one function. When we invoke a multicast delegate, all function the delegate is pointing to, are invoked. A multicast delegate, invoke the methods in same order in which they are added. We can register a method with a delegate using + OR […]

Read More

C# Multithreading interview questions with answers Part 1

What is the difference between Process and Thread? A process is what the operating system uses to facilitate the execution of a program by providing the resources required. A process can start multiple threads. Every process is start with a single thread called primary thread. A single process can have multiple threads. Threads share the […]

Read More

Access Values from All asp.net TextBoxes using jQuery

Let suppose we want to access values from all ASP.NET Textboxes on a Button click. Empty Textboxes should be ignored. JQuery Section: <script type=”text/javascript”> $(function () { $(‘input[id$=btnAll]’).click(function (e) { e.preventDefault(); $(“#para”).text(”) .append($(“input:text”).map(function () { return $(this).val() || null; }).get().join(“<br/> “)); }); }); </script> Explanation: To achieve this requirement,$.map() is an extremely useful function which […]

Read More

How .NET Program Execute

Using dotnet we can create different types of applications. A few of the common types of .NET applications include Web, Windows, Console and Mobile Applications. Irrespective of the type of the application, when you execute any .NET application the following happens 1. The .NET application gets compiled into Intermediate language (IL). IL is also referred […]

Read More

create and run a console application

To create and run a console application Start Visual Studio. On the menu bar, choose File, New, Project. The New Project dialog box opens. Expand Installed, expand Templates, expand Visual C#, and then choose Console Application. The new project appears in Solution Explorer. If Program.cs isn’t open in the Code Editor, open the shortcut menu […]

Read More