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 dnsPRPro.dll as a reference in your
project otherwise simply upload dnsPRPro.dll to your bin directory.
Unlicensed versions of our PageRank Pro component will NOT return the Simple
PageRank value. Licensing your control will remove the advertisement from the
formatted result.
Because Google ranks URLs differently if the default page name is included, we
have incorporated the ability to remove the page name from the query before
retrieving the PageRank. Simply set isDefaultPage to TRUE during creation. Example:
Dim PageRankPro As New dnsPRPro.dnsPRPro(Request, Cache, True)
VB.NET Samples
Retrieve Simple PageRank:
|
|
|
Dim
PageRankPro As New dnsPRPro.dnsPRPro(Request,
Cache)
Dim iPageRank As Integer
= PageRankPro.PageRank
PageRankPro.Dispose() |
|
Display Default Formatted Table:
|
|
|
<script
language="VB" runat="Server">
Dim PageRankTable As String
Sub Page_Load(Src As Object,
E As EventArgs)
Dim PageRankPro
As New dnsPRPro.dnsPRPro(Request, Cache)
PageRankTable = PageRankPro.PRTable()
PageRankPro.Dispose()
End Sub
</script>
...
<% =PageRankTable
%>
|
|
Display Default Formatted Table Using Code-Behind
and Label Control:
|
|
|
Private Sub Page_Load ...
Dim PageRankPro
As New dnsPRPro.dnsPRPro(Request, Cache)
lblPageRankTable.Text = PageRankPro.PRTable()
PageRankPro.Dispose()
End Sub
|
|
Display Default Formatted Table Using Inline
Script:
|
|
|
<%
Dim PageRankPro
As New dnsPRPro.dnsPRPro(Request, Cache)
Response.Write(PageRankPro.PRTable())
PageRankPro.Dispose()
%>
|
|
C# Samples
Retrieve Simple PageRank:
|
|
|
dnsPRPro.dnsPRPro PageRankPro = dnsPRPro.dnsPRPro(Request, Cache);
int iPageRank = PageRankPro.PageRank;
PageRankPro.Dispose(); |
|
Display Default Formatted Table:
|
|
|
<script
language="C#" runat="Server">
String PageRankTable;
void Page_Load(Object
Src, EventArgs E)
{
dnsPRPro.dnsPRPro PageRankPro = dnsPRPro.dnsPRPro(Request,
Cache);
PageRankTable = PageRankPro.PRTable();
PageRankPro.Dispose();
}
</script>
...
<% =PageRankTable
%>
|
|
Display Default Formatted Table Using Code-Behind
and Label Control:
|
|
|
void Page_Load ...
{
dnsPRPro.dnsPRPro PageRankPro = dnsPRPro.dnsPRPro(Request,
Cache);
lblPageRankTable.Text = PageRankPro.PRTable();
PageRankPro.Dispose();
}
|
|
Our Pro version is available as either licensed or unlicensed and will return
the PageRank of whatever page the component is called from. The low cost of
licensing the component allows for a great deal of customization, free upgrades
and removes our advertisement. The licensed version can return the PageRank of
the page in several formats from a simple number to a completely formatted
table with graphical representation (live example above).
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.
|