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

Basics of delegate

What is delegate A delegate is a type safe function pointer. Delegate hold a reference to a function. The signature of the delegate must match the signature of the function, the delegate points to,otherwise we get a compiler error.This is the reason delegates as called type safe function pointers. A delegate is similar to a […]

Read More

Triggers in SQL Server

A trigger in SQL Server is a special kind of stored procedure that automatically executes when an event occurs in the database server. There are following types of triggers available in SQL Server, DML Triggers DDL Triggers Logon Triggers DML Triggers: DML Triggers get executed when a user tries to modify data through data manipulation […]

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

Saving changes is not permitted in SQL Server

Error: Some time when we try to edit the table design, like change a column type from int to real, we usually get following error: Saving changes is not permitted. The change you have made requires the following table to be dropped and re-created. You have either made changes to a table that can’t be […]

Read More

top 15 sql server interview questions with answers

Q. What is sub query and its properties? A. A sub-query is a query which can be nested inside a main query like Select, Update, Insert or Delete statements. This can be used when expression is allowed. Properties of sub query can be defined as A sub query should not have order by clause. A […]

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