Introduction This post explains how to represent business objects with the ObjectDatasource control. It allows you to bind DataBound controls such as GridView, DetailsView and FormView. It also enables you to separate your business logic and data access logic from presentation layer. The following types can be the data source for the ObjectDataSource Control Collections…
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…
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…
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…
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…
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…
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…
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…
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 …
Introduction Windows Azure is an operating system for windows cloud. This post speaks about key features and how can we use windows Azure.