C# Class DotNetNuke.Modules.SearchResults.UKSearchResults

The SearchResults Class provides the UI for displaying the Search Results
Inheritance: DotNetNuke.Entities.Modules.PortalModuleBase
ファイルを表示 Open project: AgapeEurope/AgapeConnect1

Protected Properties

Property Type Description
TotalPages int
TotalRecords int

Public Methods

Method Description
shortenDescription ( string inDesc ) : string
testImageString ( string inputURL ) : string

Protected Methods

Method Description
FormatDate ( System.DateTime pubDate ) : string

FormatDate displays the publication Date

FormatRelevance ( int relevance ) : string

FormatRelevance displays the relevance value

FormatURL ( int TabID, string Link ) : string

FormatURL the correctly formatted url to the Search Result

OnLoad ( EventArgs e ) : void

Page_Load runs when the control is loaded

ShowDescription ( ) : string

ShowDescription determines whether the description should be shown

changeResultSummary ( int pageNum, int pageSize, int count, string searchTerm ) : void
ctlPagingControl_PageChanged ( object sender, EventArgs e ) : void

Private Methods

Method Description
BindData ( ) : void

BindData binds the Search Results to the Grid

BindSearchResults ( DataTable dt ) : int
dgResults_PageIndexChanged ( object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs e ) : void

dgResults_PageIndexChanged runs when one of the Page buttons is clicked

Method Details

FormatDate() protected method

FormatDate displays the publication Date
protected FormatDate ( System.DateTime pubDate ) : string
pubDate System.DateTime The publication Date
return string

FormatRelevance() protected method

FormatRelevance displays the relevance value
protected FormatRelevance ( int relevance ) : string
relevance int The publication Date
return string

FormatURL() protected method

FormatURL the correctly formatted url to the Search Result
protected FormatURL ( int TabID, string Link ) : string
TabID int The Id of the Tab where the content is located
Link string The module provided querystring to access the correct content
return string

OnLoad() protected method

Page_Load runs when the control is loaded
protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

ShowDescription() protected method

ShowDescription determines whether the description should be shown
protected ShowDescription ( ) : string
return string

changeResultSummary() protected method

protected changeResultSummary ( int pageNum, int pageSize, int count, string searchTerm ) : void
pageNum int
pageSize int
count int
searchTerm string
return void

ctlPagingControl_PageChanged() protected method

protected ctlPagingControl_PageChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

shortenDescription() public method

public shortenDescription ( string inDesc ) : string
inDesc string
return string

testImageString() public method

public testImageString ( string inputURL ) : string
inputURL string
return string

Property Details

TotalPages protected_oe property

protected int TotalPages
return int

TotalRecords protected_oe property

protected int TotalRecords
return int