Home All Groups Group Topic Archive Search About

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

Author
3 May 2007 4:42 PM
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).

Author
3 May 2007 4:53 PM
rowe_newsgroups
On May 3, 12:42 pm, "Ken" <k***@jeromegroup.com> wrote:
> 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
Author
3 May 2007 4:53 PM
Lloyd Sheen
"Ken" <k***@jeromegroup.com> wrote in message
news:eGmQAIajHHA.680@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