News Organizer

Summary:

This control cooperates strongly with the News control. It searches a folder with news textfiles and organizes some news boxes.

Click here for an image example

...More:

The control gets the filenames of the news textfiles folder. According to the specified properties, it shows only some news and organizes them in boxes. Firstly, the files are organized with alphabetical priority of the filenames. Then, by the news that the control must show. Then, by the current page. And finally, it organizes how many boxes should be opened.

Properties & Specifications:

The control is a user control (.ascx).

PropertyAssignment TypeDefault ValueComments
FirstOpenedInteger2How many of the first news boxes showed should be opened.
NewsDirString"Files/News/"The folder with the news textfiles.
NewsPerPageInteger4How many news boxes should be showed for each page.
NewsPageInteger0What's the current page.

News Pages and archives
This control doens't show the pages nor does it function like a news archives. The NewsPage property just points out which set of filenames should be taken. There is a page included in the Files folder that functions as a news archive.

Usage:

<asp:placeholder runat="server" ID="AllNews" /> <TP:NewsOrganizer runat="server" [FirstOpened=Integer] [NewsDir="Relative Path String"] [NewsPerPage=Integer] [NewsPage=Integer] > </TP:NewsOrganizer>
The brackets [ ] are used to show the optional. Italics are used to show the text you need to type according to your preferences.

e.g. <asp:placeholder runat="server" ID="AllNews" /> <TP:NewsOrganizer runat="server" />