By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,033 Members | 1,280 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,033 IT Pros & Developers. It's quick & easy.

Forward a page

P: n/a
Hello guys,
I am using vb.net along with asp.net so I will post this in both areas.

I need to take an internal intrnet page and redisplay it to the internet.

Where would I look to start to do this.
It is possible to read Http stream and redisplay it?

if you have a sample or a good link to a web page that would be great
thanks

Chris
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Chris,

Although you display it, is a webpages based on a request and a response.
To force to show another page you can use, response.redirect

I hope this helps,

Cor
Nov 21 '05 #2

P: n/a
It can not be a redirect. I need to read the html page and redisplay that
page in asp.net/vb.net

"Cor Ligthert" <no************@planet.nl> wrote in message
news:Oi**************@tk2msftngp13.phx.gbl...
Chris,

Although you display it, is a webpages based on a request and a response.
To force to show another page you can use, response.redirect

I hope this helps,

Cor

Nov 21 '05 #3

P: n/a
This is what i am trying to do review code below
Dim req As HttpWebRequest = WebRequest.Create(Me.DropDownList1.SelectedItem.Te xt)

Try

'Get the data as an HttpWebResponse object

Dim resp As HttpWebResponse = req.GetResponse()

'Convert the data into a string (assumes that you are requesting text)

Dim sr As New StreamReader(resp.GetResponseStream())

Dim results As String = sr.ReadToEnd()

sr.Close()

Response.Write(results)

Catch wex As WebException

Response.Write("<font color=red>SOMETHING WENT AWRY!<br />Status: " & wex.Stat"Message: " & wex.Message & "</font>")

End Try


"Chris Calzaretta" <cc*********@hotmail.com> wrote in message news:eI**************@tk2msftngp13.phx.gbl...
Hello guys,
I am using vb.net along with asp.net so I will post this in both areas.

I need to take an internal intrnet page and redisplay it to the internet.

Where would I look to start to do this.
It is possible to read Http stream and redisplay it?

if you have a sample or a good link to a web page that would be great
thanks

Chris

Nov 21 '05 #4

P: n/a
Chris,

Why than don't you write the page as a guid.htm on your webserver and redirect that one.

Cor

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.