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

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

P: n/a
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).
May 3 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On May 3, 12:42 pm, "Ken" <k...@jeromegroup.comwrote:
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

May 3 '07 #2

P: n/a

"Ken" <kl**@jeromegroup.comwrote in message
news:eG*************@TK2MSFTNGP06.phx.gbl...
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

May 3 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.