Programming Examples

Are you a Programmer or Application Developer or a DBA? Take a cup of coffee, sit back and spend few minutes here :)

Tag Archive for ‘Table Control’

ASP 4.0 – Table Control – Lab #010

Step 1 - Add Table Control and Place Cells in Design Time

We know html provides Table tag to form the row and column of data. The table is also used to layout the html elements in a formatted way. Asp 4.0 provides a control called Table and using this we can create tables without using the Tr and Td tags. The Table Control contains one or more TableRow Control and a TableRow Control can have one or more TableCell Controls. ASP.Net derived all these controls from the WebControl class. In this lab, we will create a Table Control and generate row and columns of data. Note, ASP.Net do not remember the content of table control between web requests. The data should be persisted, or one should use sessions. We will learn about session and DB in the later Lab

Continue Reading →

RDLC Report & ReportViewer Control in C#

Designing the RDLC Reports - Page Header & Footer, Report Header, Footer & Details

In this RDLC Reports tutorial, we will explore how to generate the RDLC Reports using the Microsoft supplied report template (.RDLC file). We get the data from the ‘Titles’ table of the Microsoft supplied ‘Pubs’ database. In this example, the ReportViewer Control acts as a presentation UI.  To generate the report on the database table, we will use following things:

‘DataSource’ that supplies the data from the database.
‘Report Template’ that defines the visible elements and its location. [.RDLC file]
‘ReportViewer Control’ supplied by the dot net framework.
‘C-Sharp Form’ that houses the ReportViewer control in it.

Continue Reading →