Click here to Skip to main content
15,894,343 members
Articles / Web Development / ASP.NET

Race to Linux - Race 3: Reports Starter Kit using Mono SqlServer/Firebird

Rate me:
Please Sign up or sign in to vote.
2.33/5 (2 votes)
30 Sep 20052 min read 53.1K   328   15  
Reports Starter Kit port to Linux using Mono
<html>
	<head>
		<title>ASP.NET Reports Starter Kit Documentation</title>
		<link href="style.css" type="text/css" rel="stylesheet">
	</head>
	<body class="NormalIndent">
		<h1>
			Text Report
		</h1>
		<p>
			<b>Description:</b> &nbsp;&nbsp;&nbsp;The text report displays a list of 
			Employees, their address information, and their personal history notes.
		</p>
		<p>
			<strong>Overview:</strong> &nbsp;&nbsp;&nbsp;The text report 
			demonstrates&nbsp;using the Repeater control for listing out repetitive data, 
			such as textual data.
		</p>
		<p>
			<img src="./images/1x1.gif" width="25"> <img src="./images/textshot.gif">
			<br>
		</p>
		<p>
			<strong>Implementation Notes:&nbsp;</strong> &nbsp;&nbsp;
		</p>
		<p>
			The Repeater's data source is a TextReportCollection returned from the 
			GetEmployees function.&nbsp;&nbsp;The Repeater then uses the collection 
			values&nbsp;to render the appropriate information for the report.&nbsp;&nbsp;As 
			with the DataList and DataGrid, the repeater control has a Header Template, a 
			Footer Template, and an Item Template.&nbsp;&nbsp;
		</p>
		<pre>		
	&lt;asp:repeater id="EmployeesList" runat="server"&gt;
<pre>		&lt;headertemplate&gt;&lt;/headertemplate&gt;</pre><pre>		&lt;footertemplate&gt;&lt;/footertemplate&gt;</pre><pre><pre>		&lt;itemtemplate&gt;&lt;/itemtemplate&gt;</pre>
		</pre>
		</pre>
		<p>In addition, this control also has an Alternating Item Template to distinguish one row from the next, 
			and a Separator Template to define data or&nbsp;a style, such as a separating line 
			which will appear in between each data item.&nbsp; An example of how this can 
			be used is in the picture below (not shown in live sample):</p>
		<pre>		
<pre>	 	<font color="blue">&lt;alternatingitemtemplate&gt;</font><font color="blue">&lt;/alternatingitemtemplate&gt;</font>
		<font color="blue">&lt;separatortemplate&gt;</font><font color="blue">&lt;/separatortemplate&gt;</font> </pre>
		</pre>
		<p><img src="./images/1x1.gif" width="25"> <img src="../images/textalternate.gif"></p>
	</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Uruguay Uruguay
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions