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

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).
 
R

rowe_newsgroups

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
 
L

Lloyd Sheen

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top