Inline C# Function: BaileyWeb.University.Data.SearchNews
The Inline C# Function named SearchNews retrieves combined data from multiple sources for all news, or a list of news articles filtered by a search criteria.
Files
The following files are supplied with the University Package:
- ~/App_Data/Composite/InlineCSharpFunctions/BaileyWeb.University.Data.SearchNews.cs
Parameters
There are 5 parameters:
Parameter: | Label: | Help: | Type: | Default: | Widget: |
---|---|---|---|---|---|
SearchTitle | Title | The title of the news article you want to search for. | String | Text Box | |
SearchKeywords | Keywords | The title of the keyword you want to search for. | String | Text Box | |
q | Title (alternate) | The title of the news article you want to search for. | String | Text Box | |
CurrentPageNumber | Current page number | The pagination number of the current page. | Integer | 1 | Text Box |
MaximumItemsPerPage | Maximum items to display | How many items should be displayed per paginated page? | Integer | 10 | Text Box |
Function Markup
None.
Sub Functions
This function relies upon the following sub functions for data:
Text Strings
None.
Sample Output Code
Result with the SearchKeywords input parameter value of University:
<NewsList> <News SearchTitle="" SearchKeywords="University" Q=""> [... ListNewsEnumerable() ...] </News> <PagingInfo CurrentPageNumber="1" MaximumItemsPerPage="10" TotalItemCount="1" TotalPageCount="1" CurrentItemNumberStart="1" CurrentItemNumberEnd="1" /> <Compiled DateTime="01/08/2021 17:49:58" /> </NewsList>