473,320 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

read the contents of Address bar in browser

Hi

Is there any way in VB.net using which I can read the content of
Address bar in browser so that I can find out currently which web site
is loaded in browser.
Thanks

Jan 23 '06 #1
3 2200
>Is there any way in VB.net using which I can read the content of
Address bar in browser so that I can find out currently which web site
is loaded in browser.


Which browsers do you need to support? I don't think there's a general
way to do it that will work for all browsers. But it's pretty easy to
do for IE, it has a nice automation object model.

Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jan 23 '06 #2
Not sure what you mean ?

If this is your site you can get this information server side (using
VB.NET). Else you have to get this client side (using JavaScript) but the
script has to be loaded by your site...

If you meant any site that the user browses you can't of course for privacy
(if they were not technical) reasons...
--
Patrice

<km*******@yahoo.com> a écrit dans le message de
news:11**********************@g44g2000cwa.googlegr oups.com...
Hi

Is there any way in VB.net using which I can read the content of
Address bar in browser so that I can find out currently which web site
is loaded in browser.
Thanks

Jan 23 '06 #3
Hi,

http://msdn2.microsoft.com/en-us/library/ms171712.aspx

The word for this is Uri, it exist in more flavours.

Document.Url and more.

It is a part of the Document Object Model for HTML which is used by all
modern browsers.

I hope this helps,

Cor
Jan 23 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Jason Heyes | last post by:
How do you read the contents of a text file into a std::string? Does this code use the right classes and functions for the job? std::string s; char c; while (is.get(c)) s += c; Thanks.
4
by: Someonekicked | last post by:
Is it possible to read a memory address with C++; For example, If I run this code first: ************* #include <iostream> using namespace std; void main() { int *zz = new int;
4
by: ambs.tech | last post by:
Hi all, Is there any way to read a email address from a text file and send email to that address using C language. any hint or any code regarding this will be very helpful. Thanks, Ambika
2
by: Angel Monson | last post by:
Is there a way I can find out which item I double-clicked inside a listview? And what about with subitems? And once I get an item number, can I use it to read the item and subitem contents? And if...
2
by: Chris Holliday | last post by:
I would like to provide an interface for users to upload a csv (or other text file). I would like to read the contents of the CSV while it is uploading (from the stream). Is this possible? It is no...
3
by: Qwert | last post by:
Hello, I would like to read the contents ( mail ) of my outlook program. I assume these messages are kept in the files "Inbox.dbx" and "microsoft.public.dotnet.languages.vb.dbx". Is there...
6
by: Jim S | last post by:
I have a need to read the contents of an html table on a remote web page into a variable. I guess this is called screen scraping but not sure. I'm not sure where to start or what the best...
4
by: Kuldeep | last post by:
Hi All, I am trying to read the contents of a page through its URL. My code snippet is as follows: public void mtdGetPageDataHWR() { HttpWebRequest objRequ =...
3
by: raviva | last post by:
Hi there, Can someone please explain me about the follwoing error. When I click a table name in schema browser in TOAD. I got this message. "Access violation at address 00000364. Read of...
3
by: shuisheng | last post by:
Dear All, I have a probably simple question but annoying me a lot. For example: std::stringstream ss; int * p = new int(1); ss << p; // Output the address void * q;
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.