PC Review


Reply
Thread Tools Rate Thread

How do i get Web page Source?

 
 
kdh7807@gmail.com
Guest
Posts: n/a
 
      31st Jan 2007
I've Used inet Control at vb 6.0
But in .NET, I Can't fint that.
Anyone can help me?

 
Reply With Quote
 
 
 
 
Cor Ligthert \(MVP\)
Guest
Posts: n/a
 
      31st Jan 2007
Normaly

is there a button in the design page on the left bottom side.

Cor

<(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> I've Used inet Control at vb 6.0
> But in .NET, I Can't fint that.
> Anyone can help me?
>



 
Reply With Quote
 
Mythran
Guest
Posts: n/a
 
      31st Jan 2007


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I've Used inet Control at vb 6.0
> But in .NET, I Can't fint that.
> Anyone can help me?
>


Take a look at the System.Net namespace and associated classes. I'm not
sure about the new stuff in .Net 2.0+, but I do believe it has some new
stuff not available in 1.1. Since our shop is still in the stone age...err,
..Net 1.1 age, we have just had to manage using the normal HttpRequest and
HttpResponse.

Mythran


 
Reply With Quote
 
Branco Medeiros
Guest
Posts: n/a
 
      31st Jan 2007
kdh7 wrote:
> I've Used inet Control at vb 6.0
> But in .NET, I Can't fint that.


Not sure if this is really the alternative to the inet control, but
maybe you should take a look at the System.Net.Socket.TcpClient class
and its friends.

Regards,

Branco.



 
Reply With Quote
 
William LaMartin
Guest
Posts: n/a
 
      1st Feb 2007
Here is some code from one of my routines that takes the URL in a text box
(e.g. http://www.IMB.com) and returns the underlying HTML for the URL as the
string S below.

Dim URL As String = Trim(Me.txtURL.Text)
Dim wreq As System.Net.HttpWebRequest
wreq = CType(System.Net.WebRequest.Create(URL),
System.Net.HttpWebRequest)
Dim response As System.Net.HttpWebResponse = wreq.GetResponse
Dim encode As System.Text.Encoding =
System.Text.Encoding.GetEncoding("utf-8")
Dim readStream As New
System.IO.StreamReader(response.GetResponseStream, encode)
Dim S As String = readStream.ReadToEnd
readStream.Close()
readStream = Nothing
response.Close()
response = Nothing
Me.txtPage.Text = S
wreq = Nothing
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I've Used inet Control at vb 6.0
> But in .NET, I Can't fint that.
> Anyone can help me?
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page_Load on Source Page Firing on Cross-Page Postback Jason Wilson Microsoft ASP .NET 0 19th Sep 2006 06:59 PM
Record Source vs. Row Source (Single Page Report turns into Multiple) niccovey@gmail.com Microsoft Access Reports 0 5th Apr 2006 08:42 PM
MSWord -- link to source doc does not print multi-page source when =?Utf-8?B?Y2xlb25ndWU=?= Microsoft Word Document Management 1 15th Mar 2005 09:11 AM
Source Error and Source File Details .NET default Error Page Nithi Gurusamy Microsoft VB .NET 0 10th Mar 2004 09:07 PM
iexplorer shows source code instead source code's output, i.e., the actual page Michael Windows XP Internet Explorer 0 17th Sep 2003 02:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:52 PM.