Menu

[r1]: / trunk / Source / Modules / SectionSummary / Summary.cs  Maximize  Restore  History

Download this file

50 lines (44 with data), 1.3 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#region Copyright © 2004, Nicholas Berardi
/*
* ManagedFusion (www.ManagedFusion.net) Copyright © 2004, Nicholas Berardi
* All rights reserved.
*
* This code is protected under the Common Public License Version 1.0
* The license in its entirety at <http://opensource.org/licenses/cpl.php>
*
* ManagedFusion is freely available from <http://www.ManagedFusion.net/>
*/
#endregion
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
// OmniPortal Classes
using ManagedFusion;
using ManagedFusion.Modules;
namespace OmniPortal.Modules.SectionSummary
{
/// <summary>
/// Summary description for Summary.
/// </summary>
public class Summary : SkinnedUserControl
{
protected override void OnPreRender(EventArgs e)
{
// add the title to the page
this.Controls.Add(new LiteralControl(String.Concat(
"<h3>", SectionInformation.Title, "</h3>"
)));
foreach(SectionInfo section in SectionInformation.Children)
{
HyperLink link = new HyperLink();
link.Text = section.Title;
link.NavigateUrl = section.UrlPath.ToString();
this.Controls.Add(link);
this.Controls.Add(new LiteralControl(String.Concat(
"<br>", section.Title, "<br><br>"
)));
}
base.OnPreRender (e);
}
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.