|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
show the curret web address in the textbox or label on the pageIs 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). On May 3, 12:42 pm, "Ken" <k***@jeromegroup.com> wrote: Me.TextBox1.Text = Request.Url.ToString()> 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). Thanks, Seth Rowe "Ken" <k***@jeromegroup.com> wrote in message Ken, it always pays to put more info into your posting so that people can 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). > 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 |
|||||||||||||||||||||||