show the curret web address in the textbox or label on the page

  • Thread starter Thread starter Ken
  • Start date Start date
K

Ken

Is there any way to show current webpage in Label or textbox?

for example, if the page address I browse currently is
http://localhost/try/default.aspx then I want to show the information about
current address in Label or Textbox on current page (in this case, the
default.aspx).
 
Is there any way to show current webpage in Label or textbox?

for example, if the page address I browse currently ishttp://localhost/try/default.aspxthen I want to show the information about
current address in Label or Textbox on current page (in this case, the
default.aspx).

Me.TextBox1.Text = Request.Url.ToString()

Thanks,

Seth Rowe
 
Ken said:
Is there any way to show current webpage in Label or textbox?

for example, if the page address I browse currently is
http://localhost/try/default.aspx then I want to show the information
about
current address in Label or Textbox on current page (in this case, the
default.aspx).

Ken, it always pays to put more info into your posting so that people can
help. I will assume that you have an app with an embedded web browser.

If you are using V2+ of Dot.Net then you can capture the DocumentCompleted
event and get the Url from the event args. You can then put the text where
you like.

Hope this helps.

Lloyd Sheen
 
Back
Top