Quantcast
Channel: Ashish Khandelwal
Browsing latest articles
Browse All 100 View Live

ASP.Net 3.5 VS 2008 Precompilation

Pre-compilation For Deployment Pre-compilation for deployment creates an ‘executable’ (no source code) version of your web application. With pre-compilation for deployment you give the aspnet_compiler...

View Article



Patterns in the ASP.NET Pipeline

When a client requests an ASPX page from the Web server, the request travels through many steps before ultimately ending up as HTML displayed by the client’s browser. First, the request is processed by...

View Article

How to choose from Viewstate, SessionState, Cookies and Cache

Problem with Web Applications Web applications are stateless, means once a web page is rendered from server to client, nothing in the page remains on server and the next time user submits the page, the...

View Article

Copying Large Files

Windows Server 2008 provides at least three different command line utilities for copying files. The familiar COPY and XCOPY commands have been around since the early DOS days. And ROBOCOPY, a more...

View Article

Replacing File.Copy

The easiest way to copy a file in a .NET program is to call the File.Copy method, supplying it the source and destination files. It could hardly be simpler than this: File.Copy(srcFilename,...

View Article


Composite Pattern in ASP.NET

The ASP.NET request/response pipeline is a complex system. Patterns are used in the design of the pipeline itself and in the control architecture to effectively balance its performance with...

View Article

Shared Assembly

Introduction: When you install the Visual Studio .NET, the common language runtime has the Global Assembly Cache (GAC). The GAC stores assemblies that are shared by the several applications on the...

View Article

State Management in ASP.NET

Web form pages are HTTP-Based, they are stateless, which means they don’t know whether the requests are all from the same client, and pages are destroyed and recreated with each round trip to the...

View Article


.Net Interview Questions

Do you want to prepare for the Interview, Here is a list of interview questions and answer related to .Net asked by MNCs will help you to prepare for the interview quick and test your skill –...

View Article


OOPS Interview Questions

Do you want to prepare for the Interview, Here is a list of interview questions and answer related to OOPs asked by MNCs will help you to prepare for the interview quick and test your skill –...

View Article

.NET Managed Code Execution Process

Introduction The .NET CLR provides a common context within which all .NET applications execute, regardless of teh language in which they are written.CLR is responsible for handling every aspects of the...

View Article

Windows Communication Foundation: Communication-based Activation

Earlier to .Net Framework 4.0, it was must to provide the .svc file when you host a Windows Communication Foundation (WCF) service under Internet Information Services (IIS) or Windows Process...

View Article

WCF: Target Framework Attribute

With .Net Framework 4.0, the target framework attribute is introduced to specify the version of the .NET Framework for the application hosted in IIS or WAS is targeting. It allows you to build...

View Article


WCF – Security Overview (Fundamental)

Windows Communication Foundation – Why security is needed? Using WCF, we can create applications that function as both services and service clients. One service could be transmitting, creating and...

View Article

WCF – Authenticate the Client using User Name and Password

WCF is a distributed technology, you build the WCF service to serve the functionality to the Client, The Client could be on Intranet or on Internet. It is almost always mandatory for the Service to...

View Article


Introduction to Objects and Classes in C#

In this article we will understand some of the concepts of object-oriented programming in C# like objects and classes. To read this article you must have C# programming basics. Introduction: OOP stands...

View Article

How to improve garbage collection performance

Introduction DotNet developers can free themselves from tedious memory management for their application as Microsoft Framework and CLR do it automatically.CLR provides a mechanism called as Garbage...

View Article


Events Programming in C# and .NET

In the early days of computing, a program would begin execution and then proceed through its steps until it completed. If the user was involved, the interaction was strictly controlled and limited to...

View Article

C#: lock vs Monitor

They both are same but each one has some draw back and advantages. lock is more concise over monitor; it releases the lock from the blocked code even if there is exception generated within blocked...

View Article

Understanding Destructors in C#

Introduction This article is about understanding the working concept of destructor in C#. I know you all may be thinking why a dedicated article on simple destructor phenomenon. As you read this...

View Article

Interface vs Abstract class

An Abstract class without any implementation just looks like an Interface; however there are lot of differences than similarities between an Abstract class and an Interface. Let’s explain both concepts...

View Article


Why to migration from .net 1.1 to the latest framework

Some days back one of my readers asking me a question about why one should migration from .net 1.1 to the latest framework. Here is the part of discussion: Reader: Why the product should be migrated...

View Article


Garbage Collection: .Net Framework 3.5

Here I am covering some basic information about how GC works in CLR. More detailed informations are covered @   .Net Framework 4.0: The Background and Foreground GC Differences between Server and...

View Article

.Net Framework 4.0: The Background and Foreground GC

In my previous article I have explained about concurrent GC for workstation version of the CLR (Differences between Server and Workstation GC (types of garbage collection)). The CLR 4.0 has come with...

View Article

Database Indexes

In this article I have explained about following: What is Index Types of Indexes Clustered index Nonclustered Indexe Clustered and Nonclustered index Considerations When to use Database Index Improve...

View Article


Socket programming vs. WCF

A very simple scenario where client sends a request to server to perform certain action. There is no much data transfer between two parties – Probably no more than 50 bytes. We need to decide whether...

View Article

Why Distributed Caching

One of the key techniques used to develop high-performance and scalable application is Distributed Caching. In this article I will cover: -          What is Distributed Caching and -          What is...

View Article

Hyperlink in ListBox

Today, one of my friends was asking me a question about how to add hyperlink text into the ListBox. I replied by adding respective control directly to the ListBox. Here in reply to my friend question,...

View Article

LINQ to SQL Vs Entity Framework

LINQ to SQL and Entity Framework both are designed for ORM (Object Relational Model) support. They are developed to avoid the difficulties involved in writing Object Oriented code to perform RDMS...

View Article



Create Database from Entity Model – Entity Framework Model First Approach

In my last article LINQ to SQL Vs Entity Framework I discussed about how powerful the ADO.Net Entity Framework compare to LINQ2SQL. In this article I will discuss about how to create Database from...

View Article

Lambda Expressions supersede Anonymous Methods

Lambda expressions introduced in the C# 3.0. Lambda expressions help reducing the burden of writing Anonymous Methods. Before Anonymous Methods there was only way to declare the delegate was to use...

View Article

Issues with Multithreaded Programming: Part 1

Multithreaded (Parallel) programming is difficult for many reasons. Developer always has to put extra care to protect the program from issues like race condition, deadlocks, livelocks, priority...

View Article

Issues with Multithreaded Programming: Part 2

In my previous article Issues with Multithreaded Programming : Part 1 I have explained about two most common issues of Multithreading programming 1) Race Condition and 2) DeadLock. Continuing to my...

View Article


Issues with Multithreaded Programming: Part 3

In my previous articles “Issues with Multithreaded Programming: Part 1” and “Issues with Multithreaded Programming: Part 2” I have explained about four issues of Multithreading programming 1) Race...

View Article

All about Multithread Programming (Concept, Issues and Synchronization)

Multithreading ensures that the program never “goes to sleep” by keeping UI more responsive to the user. In my blog I covered numbers of articles on multithreading programming, issues with...

View Article

Optimize your string search

Suppose you have an application that needs to search for all occurrences of multiple strings in a text stream. For example, you might want to search a large text file for all occurrences of “cycling”,...

View Article


Velocity Usages and advantages

Velocity provides highly scalable distributed caching environment for Microsoft .net framework. By using Velocity, frequently used data can be stored in distributed cached environment for faster access...

View Article


IBM WebSphere MQ security methods

In WebSphere MQ, there are three methods of providing security: The Object Authority Manager (OAM) User-written, or third party, channel exists Channel security using Secure Sockets Layer (SSL)   The...

View Article

Compare two tables record (SQL Server)

Sometime we want to compare the records between two database tables. These databases could be on same server or on different servers. Here is some information about how we can compare records between...

View Article

LINQ to SQL – how to run Fulltext search

LINQ to SQL LINQ to SQL (One of the ORM solutions) provides a run-time infrastructure to manage relational data as objects without losing the ability to query. It does this by translating...

View Article

Trace SQL commands generated by LINQ to SQL provider

There are three ways that frequently used to trace the SQL commands which are generated by LINQ to SQL provider: DataContext.Log DataContext.GetCommand, and LINQ to SQL Debug Visualizer. Trace SQL...

View Article


Cookieless sessions raises issues with links

Cookieless sessions – Issue with Links When you enable cookieless session for your asp.net website, the session ID get inserted in a particular position within the URL instead of storing into client...

View Article

Garbage Collection Types and Server GC vs Workstation GC

In my previous article (Garbage Collection – up to .Net Framework 3.5) I explained basic concept of Garbage Collection. In this article I will explain about types of GC in CLR. The CLR provides two...

View Article


Types of Serialization and uses

This post will cover followings: What is Serialization in .NET Types of Serialization Why we need it while developing an application?   What is Serialization? The serialization is the process of...

View Article

ChannelFactory over Proxy class in WCF

This post will cover the uses of ChannleFactory over Proxy in WCF. When to use a proxy? If you have a service that you know is going to be used by several applications or is generic enough to be used...

View Article


Clustered and Nonclustered index Considerations

It is import to know the use of Clustered and NonClustered index, this article will help you understeand following: When to use Clustered Index When to use NonClustered Index Impact of Cluster index on...

View Article

When to use Database Index

Before you create index on a table, you should evaluate to see whether you should use index. In this post, I am covering some of the general rules that may help to decide the use of index.   When to...

View Article

Improve your database Index performance

We all know the use of index like when to use index and how to use index. However, most of us are lacking some of the important consideration which can boost the performance of database index. In this...

View Article

Difference between Function and Stored Procedure

In this article I am answering the very basic question – Difference between Function and Stored Procedure. This was specially demanded by one of my reader who has just started his development career....

View Article


Design Guidelines for Component

Following guidelines should be considered when designing components for use in your applications:  Apply the SOLID design principles to the classes within your component. The SOLID principles are,...

View Article

Browsing latest articles
Browse All 100 View Live




Latest Images