This post explains about ASP.NET Dynamic Compilation and code-behind pages in more details. When you create a ASP.NET page in web site it actually creates a .NET code behind class. The entire contents of the page is compiled into a .NET class. When you sent a request for ASP.NET page, Framework checks for the corresponding class to the page and if the class not exists, Framework compiles the page...
Using the ASP.NET Panel Control
Introduction This post speaks about using Panel Control in ASP.NET Pages. Panel Control allows you to work with a group of ASP.NET Controls. You can use it to show or hide a group of controls. Example: The Panel control supports the following properties DefaultButton When you set a value to this property, the default button in the panel is invoked when you press the Enter Button. Direction...
View State vs Control State
Control State is another state management technique which is essentially a private view state for your control. In order to preserve the page and control data over round trips to the web server, traditionally we are using View State. View State Property maintains information in hidden field and the data is encrypted. If you disable the View State in your page, the custom controls which used in...
C# IDE Tips & Tricks Part 2
This post explains the some more tips on using Visual C# IDE to enhance developer productivity. Solution Configurater Right click your solution in your IDE then select the ConfigurationManager you see the following window where you have the option to select the project for building. We can select the required project in the solution and can you can build the project. Solution...
Singleton Design Pattern in C#
Best known Creational Design Pattern is Singleton. We can implement this pattern in different ways. I am explaining some of the ways where we can implement in C#. We will have the following concepts in implementing the Singleton pattern We declare a private constructor which prevents other classes to create an instantiation of the singleton class. It also prevents the sub classing. We declare a...
C# IDE Tips & Tricks Part 1
C# Developers have been spending most their day activities with Visual studio IDE. They may have to understand the following activities to do their job. Understanding Code Developer must be able analyze the relationship between classes and what API it is using for implementing the logic. Navigating Code Developer may or may not know where he want to navigate to the code and keep track of visited...
C# ?? operator
The ?? operator in C# called null-coalescing operator is used to define a default value for a nullable value types and reference types. It returns the left-hand operand if it is not null and returns right-hand operand if it is null. example // ?? operator example . int? x = null; int y = x ?? –1; // Here the value of y will be –1. int i = GetValue() ?? default(int); Assigns the return value...
Using keyword in C#
Introduction Using keyword in C# can be used as directive and as well as statement. When you use using as Directive you will get the following advantages You can use the types in a namespace by declaring with using keyword. example: using Systetm.Web; You can define a alias for the nested namespaces example:...
What is Windows Azure?
Introduction
Windows Azure is an operating system for windows cloud. This post speaks about key features and how can we use windows Azure.
New .NET Logo
Microsoft officially announced new logo for Visual studio suite at PDC 2008.
The logo is on light background and dark background.
Why this logo?
It stands for consistency, robustness and greater user experiences. It is reflected in newer brands such as silver light, surface and more. The letter ‘N’ in the logo will become shorthand for the .NET brand name.