Click here to Skip to main content
15,897,090 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This Fuction does not show the posted url page.when click it doent show any nor show the page under the url

VB
Public Sub callurl(url As String)
      Dim request As WebRequest = HttpWebRequest.Create(url)
      Dim response__1 As WebResponse = request.GetResponse()
      Dim reader As New StreamReader(response__1.GetResponseStream())
      Dim urlText As String = reader.ReadToEnd()
      ' it takes the response from your url. now you can use as your need
      Response.Write(urlText.ToString())
  End Sub



on button click


VB
Dim url As String = "http://localhost:8080/wpt/main.html"
              callurl(url)
Posted
Comments
ZurdoDev 6-Aug-15 7:25am    
What?

Response.Redirect(url) will take you to a new page.

1 solution

VB
Public Function CheckResult(ByRef xmlString As String)

'Remaining goes here
'Download the response as JSON or XML 

End Function

Dim webClient As New System.Net.WebClient
Dim result As String = "Your URL"
Dim res = CheckResult(result)
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900