.Net Development Articles, Tips & Tricks, FAQs

C sharp

Run Windows Service as Winform application in C#
This article shows how Windows Service can be run as Windows application with UI when the application is build in Debug.

C sharp

How to start / stop a windows service with C# and .NET
The following article shows how can be started / stopped a windows service using C# and .NET.

C sharp

Manage windows services with WMI
The article present an example of using Windows Management Instrumentation (WMI) with .NET for getting information of the windows services and managing them (start, stop, pause, and resume service).

C sharp

Using C# code in XSL Transformations
This article shows an example of how C# script code can be used in XSL document.

C sharp

How to check Web site status with C#
The article will show how to check your Web site status. It uses HttpWebRequest and HttpWebResponse classes for sending an request to the site and check whether the web site return the page successfully.

C sharp

C# get MX records
The following article shows a code that can be used to retrieve the MX (Mail Exchange) records information using P/Invoke. There are used the following two functions of the file Dnsapi.dll: DnsRecordListFree and DnsQuery

C sharp

How to get Dns ip address and use it in IpSpamChecker
This article shows how to use C# to get the ip addresses of dns servers configured at the network interfaces on your local computer and use them with IpSpamChecker.

C sharp

Working with Enum in C#
The article will cover some aspects of working with enumerations in C# (converting strings and integer values to enumeration, how to check if integer value is defined into the enumeration and enumerate through the enumeration constants(foreach loop).

C sharp design pattern

C# Singleton design pattern
The article is about the singleton design pattern. It presents three different ways to implement thread-safe singleton pattern in C#.

C sharp design pattern

Finalize vs Dispose
This article presents some aspects of implementation of Dispose pattern and Finalize. It also gives sample implementation of Dispose pattern in C# with finalizer.

Constructors, inheritance and polymorphism in C#

Constructors, inheritance and polymorphism in C#
The article presents an example about inheritance and polymorphism in C#. It shows the sequence of execution of the static and regular constructors and the appropriate method in polymorphic case.

Windows console

Console Application output inside a Winform App with C#
The article explains how to create a program which has both Command Line Interface and Windows form Interface and contain the functionality into single assembly.

ASP.NET

Get .NET Framework version with ASP.NET
Question: How I can find .NET version with ASP.NET?

ASP.NET

ASP.NET Literal vs Label
The following article describes some details of the Web controls Literal and Label. And under what circumstances it is recommended to use each of them.

ASP.NET

List menu with ASP.NET repeater and CSS
The following article shows an example of building a dynamic menu using the ASP.NET repeater control and CSS.

ASP.NET SQL Database

How to get records count
The article shows SQL statement to get records count and concatenate columns from Details table and display them in Master table. The article use ASP.NET and GridView to display the results.

ASP.NET

Check if username is taken with ASP.NET and GetCallbackEventReference Method
ASP.NET 2.0 provides a client callback feature that allows you to change values on a page without completely redrawing the page. In this way the end users do not see the page flicker. This example shows how on a register user page it could be check if user name is already taken.

ASP.NET AJAX

Prevent user from clicking twice at a button with ASP.NET AJAX
The following article shows how it can be used ASP.NET AJAX to prevent the user from clicking accidently again at a button while the previous asynchronous request is still processing.

jQuery

Feed jQuery slideshow with slides from ASP.NET web service
This article shows how we can feed a jQuery Slideshow with slides from an ASP.NET web service

JavaScript

JavaScript patterns: Prototype Pattern, Revealing Module Pattern and Revealing Prototype Pattern
This article briefly shows the most important features of Prototype Pattern, Revealing Module Pattern Revealing and Prototype Pattern JavaScript patterns.

JavaScript

JavaScript: Class-Orientation vs Objects Linking to Other Objects
This article briefly shows Class-Orientation (aka, OO -- object-oriented) vs Kyle Simpson's Objects Linking to Other Objects.

Google Ads