is happy to announce
the release of our Google™ PageRank component for use in your ASP.NET projects.
If using Visual Studio, be sure to add dnsPREnt.dll as a reference in your
project otherwise simply upload dnsPREnt.dll to your bin directory.
Our PageRank Enterprise component will not function correctly without a valid
license. PageRank Enterprise provides all the functionality found in the Pro
version. Code samples for retrieving the PageRank of the current page can be
found on the samples page for Pro. Simply replace dnsPRPro with dnsPREnt for
those functions. The code samples below demonstrate retrieving the PageRanks of
other sites.
VB.NET Samples
Retrieve Simple PageRank:
|
|
|
Dim
PageRankEnt As New dnsPREnt.dnsPREnt(Cache)
Dim iPageRank As Integer
= PageRankEnt.PageRank("ebay.com")
PageRankEnt.Dispose() |
|
Retrieve Array of Simple PageRanks:
|
|
|
Dim
PageRankEnt As New dnsPREnt.dnsPREnt(Cache)
Dim strURLs() As String = {"google.com", "ebay.com", "microsoft.com", "www.axwebhost.com", "www.adrenalinex.com"}
Dim strRanks() As String = PageRankEnt.PageRanks(strURLs)
PageRankEnt.Dispose() |
|
Retrieve SortedList of KeyValue Pairs:
|
|
|
Dim
PageRankEnt As New dnsPREnt.dnsPREnt(Cache)
Dim strURLs() As String = {"google.com", "ebay.com", "microsoft.com", "www.axwebhost.com", "www.adrenalinex.com"}
Dim slRanks As New SortedList = PageRankEnt.PRList(strURLs)
PageRankEnt.Dispose() |
|
Display Default Formatted Table of PageRanks in Label Control:
|
|
|
Dim
PageRankEnt As New dnsPREnt.dnsPREnt(Cache)
Dim strURLs() As String = {"google.com", "ebay.com", "microsoft.com", "www.axwebhost.com", "www.adrenalinex.com"}
lblPageRanksTable = PageRankEnt.PRListTable(strURLs)
PageRankEnt.Dispose() |
|
UPDATE: Cache support has been added and is now a
required property. If upgrading from Version 1.0.0, it will be necessary to
alter your page code. Examples can be found on our Code Samples page.
Note: In the past Google has altered the method
for retrieving PageRanks and will most likely do so again. While we will
upgrade our components as quickly as possible following an update, we cannot
guarantee that they will function indefinitely and we cannot be held liable for
any actual or perceived loss for using these components.
Google™ and Google PageRank™ are registered trademarks of Google. Neither this
site nor the AdrenalineXtreme Network are affiliated with Google in any way.
|