Click here to Skip to main content
15,890,123 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionddls lose selections Pin
tadhg8817-Oct-06 3:31
tadhg8817-Oct-06 3:31 
AnswerRe: ddls lose selections Pin
albCode17-Oct-06 4:52
albCode17-Oct-06 4:52 
GeneralRe: ddls lose selections Pin
tadhg8817-Oct-06 5:05
tadhg8817-Oct-06 5:05 
Questionread/write permissions on clipboard Pin
248912817-Oct-06 2:24
248912817-Oct-06 2:24 
AnswerRe: read/write permissions on clipboard Pin
Sathesh Sakthivel17-Oct-06 2:30
Sathesh Sakthivel17-Oct-06 2:30 
QuestionGetting Value from Grid View Pin
NICE TO MEET17-Oct-06 1:45
NICE TO MEET17-Oct-06 1:45 
AnswerRe: Getting Value from Grid View Pin
_AK_17-Oct-06 1:49
_AK_17-Oct-06 1:49 
QuestionHow to retrive value from a google map [modified] Pin
Solly S17-Oct-06 1:35
Solly S17-Oct-06 1:35 
Fetching location of 5 Km Distance from google map based on zip code or pin code and retriving the value back to the web form.
I am using Google Web service.It is showing the error of Invalid key .
The code as follows:
Dim ProxyHost As String = "192.168.0.100"
Dim ProxyPort As Integer = 8080
Dim ProxyUser As String = ""
Dim ProxyPassword As String = ""
Dim ProxyDomain As String = "http://api.google.com/search/beta2"
Dim oWebProxy As System.Net.WebProxy = New System.Net.WebProxy(ProxyHost, ProxyPort)
oWebProxy.Credentials = New System.Net.NetworkCredential(ProxyUser, ProxyPassword, ProxyDomain)
' obj_wrr.Proxy = oWebProxy
'obj_wrr.Credentials = New System.Net.NetworkCredential(feedid, password)


Dim s As localhost.GoogleSearchService = New localhost.GoogleSearchService
s.Proxy = oWebProxy



Dim r As localhost.GoogleSearchResult
r = s.doGoogleSearch("", TextBox1.Text, 0, 10, False, "", False, "", "", "")
Dim strFile As String = "C:\\result.html"
Dim sw As StreamWriter = File.CreateText(strFile)
sw.WriteLine("" & Microsoft.VisualBasic.Chr(9) & "BODY { font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; font-size : 9pt; color : #000000; SCROLLBAR-FACE-COLOR: white; SCROLLBAR-HIGHLIGHT-COLOR: #003366; SCROLLBAR-SHADOW-COLOR: #003366; SCROLLBAR-3DLIGHT-COLOR: #f9f9f9; SCROLLBAR-ARROW-COLOR: #003366; SCROLLBAR-TRACK-COLOR: white; SCROLLBAR-DARKSHADOW-COLOR: #f9f9f9 }")
For Each dc As localhost.DirectoryCategory In r.directoryCategories
sw.Write("Category : ")
sw.WriteLine(dc.fullViewableName)
sw.WriteLine("


")
Next
For Each re As localhost.ResultElement In r.resultElements
Dim strTitle As String = "" + re.title + "
"
sw.WriteLine(strTitle)
Dim strSnippet As String = re.snippet + "
"
sw.WriteLine(strSnippet)
Dim strLink As String = "" + re.URL + " - " + re.cachedSize + "

"
sw.WriteLine(strLink)
sw.WriteLine("

")
Next
sw.Close()
Label1.Text = TextBox1.Text + " 's web search"
Dim estResults As Integer = r.estimatedTotalResultsCount
Dim ldTime As Double = r.searchTime
Label1.Text = "Total " + Convert.ToString(estResults) + " " + "1 - 10 seach result Total time:" + Convert.ToString(ldTime)
Dim obj As Object = Nothing
Dim di As DirectoryInfo = New DirectoryInfo(Environment.CurrentDirectory)
Dim strFilePath As String = di.FullName + "\" + strFile

WebBrowser.Navigate(strFilePath, obj, obj, obj, obj)



-- modified at 5:42 Friday 20th October, 2006
QuestionHow to make differents IU from a login box Pin
WSonck17-Oct-06 0:37
WSonck17-Oct-06 0:37 
AnswerRe: How to make differents IU from a login box Pin
prakash_21017-Oct-06 0:45
prakash_21017-Oct-06 0:45 
GeneralRe: How to make differents IU from a login box Pin
WSonck17-Oct-06 4:37
WSonck17-Oct-06 4:37 
QuestionPrint dialog box+ASP.Net Pin
skannapiran17-Oct-06 0:33
skannapiran17-Oct-06 0:33 
AnswerRe: Print dialog box+ASP.Net Pin
_AK_17-Oct-06 1:23
_AK_17-Oct-06 1:23 
QuestionWhat can be the possible reasons of the dead lock ? Pin
King Shez17-Oct-06 0:26
King Shez17-Oct-06 0:26 
AnswerRe: What can be the possible reasons of the dead lock ? Pin
_AK_17-Oct-06 1:24
_AK_17-Oct-06 1:24 
QuestionRetriving value from google map Pin
Aashutoshkumar17-Oct-06 0:16
Aashutoshkumar17-Oct-06 0:16 
AnswerRe: Retriving value from google map Pin
perlmunger17-Oct-06 4:36
perlmunger17-Oct-06 4:36 
GeneralRe: Retriving value from google map Pin
Solly S19-Oct-06 23:47
Solly S19-Oct-06 23:47 
GeneralRe: Retriving value from google map Pin
perlmunger20-Oct-06 4:03
perlmunger20-Oct-06 4:03 
GeneralRe: Retriving value from google map Pin
Solly S24-Oct-06 1:20
Solly S24-Oct-06 1:20 
Questionhow to call DataBindmethod as well as validate textbox values using ajax(Anthem) Pin
miniThomas17-Oct-06 0:12
miniThomas17-Oct-06 0:12 
Questionhow can i make URLs clear, avoiding dirty query strings Pin
wajeehAhmed117-Oct-06 0:04
wajeehAhmed117-Oct-06 0:04 
AnswerRe: how can i make URLs clear, avoiding dirty query strings Pin
_AK_17-Oct-06 0:24
_AK_17-Oct-06 0:24 
Question"This property cannot be set for anonymous users" error Pin
amin_behzadi16-Oct-06 23:59
professionalamin_behzadi16-Oct-06 23:59 
QuestionSTA Pin
amaneet16-Oct-06 23:53
amaneet16-Oct-06 23:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.