D
daniele.iacono
Hello all,
1) i made the GoogleProxy.dll
2) i created a bin directory in the root of the website and i pasted
there the .dll
3) the namespace name is: 'google'
Now I am trying to run the following asp.net code:
------------------------------
<%@ Page Language="VB" %>
<%@ import Namespace="google" %>
<script runat="server">
Sub Page_Load(sender as Object, e as EventArgs)
Dim search As GoogleSearchService = New
google.GoogleSearchService()
Dim result As GoogleSearchResult
result = search.doGoogleSearch("lfSLS91QFHKTUZe+et/bk86AvahdQV+1",
"ASP", 0, 10, True, "", True, "", "", "")
dlResults.DataSource = result.resultElements
dlResults.DataBind()
End Sub
</script>
------------------------------
but i got the following error:
------------------------------
Compiler Error Message: BC30002: Type 'GoogleSearchService' is not
defined.
Source Error:
Line 3: <script runat="server">
Line 4: Sub Page_Load(sender as Object, e as EventArgs)
Line 5: Dim search As GoogleSearchService = New
GoogleSearchService()
Line 6: Dim result As GoogleSearchResult
------------------------------
Can someone help me to figure it out?
Thx in advance,
Daniele
1) i made the GoogleProxy.dll
2) i created a bin directory in the root of the website and i pasted
there the .dll
3) the namespace name is: 'google'
Now I am trying to run the following asp.net code:
------------------------------
<%@ Page Language="VB" %>
<%@ import Namespace="google" %>
<script runat="server">
Sub Page_Load(sender as Object, e as EventArgs)
Dim search As GoogleSearchService = New
google.GoogleSearchService()
Dim result As GoogleSearchResult
result = search.doGoogleSearch("lfSLS91QFHKTUZe+et/bk86AvahdQV+1",
"ASP", 0, 10, True, "", True, "", "", "")
dlResults.DataSource = result.resultElements
dlResults.DataBind()
End Sub
</script>
------------------------------
but i got the following error:
------------------------------
Compiler Error Message: BC30002: Type 'GoogleSearchService' is not
defined.
Source Error:
Line 3: <script runat="server">
Line 4: Sub Page_Load(sender as Object, e as EventArgs)
Line 5: Dim search As GoogleSearchService = New
GoogleSearchService()
Line 6: Dim result As GoogleSearchResult
------------------------------
Can someone help me to figure it out?
Thx in advance,
Daniele