We know that C# supports foreach loop to iterate through a collection. When we use For-Each we no need to worry about bounds check. Here, we will create Books collection maintained by Book Store and provide Custom For-each support for the collection class. This will help the client code to use for-each loop on our collection class.
1. Introduction to ImageMap and HotSpots An ImageMap Control is an ASP.Net Web Control to mark specific portions of the Image. When a user clicks that specific portion, the ImageMap Control can either do a post back or navigate to…
When we Place Asp.Net Calendar Control in a Web Form, the default look is not good. In this article, we will see how to customize ASP.Net Calendar Control and learn various properties and events.
The GridView Control is useful to display a table of data. SQLDataSource Control acts as a provider of that data. In this example we will use these control to retrieve data from the pubs database and display it in the Asp.Net Web Form.
1. Default Focus and Default Control – Introduction In this short article, we will learn the importance of setting the default control focus. Also, we will explore setting the default button for a form and for a group of controls.…
Page Level Viewstate is useful for the server to recall the data exchange between the Browser Posts. In this example, we will create a simple form to collect user data and perform multiple data posts to the server. With this Form Field Data, we will study behavior of the server by turning the ViewState ON and OFF.
In this example, we will use C-Sharp’s SplitContainer to split two panels. We will also explore how to split the panels horizontally and vertically with different splitter widths. Finally, we will learn how to expand and collapse a panel in the splitter.
In this Article, we will use ExecuteScalar function to find the number of records in a table. The article uses employees table from NorthWnd database. But still one can use any table in any database while proceeding through the article.