473,493 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how to get browser detail in Winform

6 New Member
Hi,

How can i get the address opened by a user in his internet explorer or any other browser. For eg if a user has opened site www.yahoo.com then, how can I get that programatically

thanks
Apr 23 '08 #1
5 2328
Mr Gray
47 New Member
this seems to be a javascript one:

Expand|Select|Wrap|Line Numbers
  1. top.location.href;
  2.  
or in C#

Expand|Select|Wrap|Line Numbers
  1. Request.Url;
  2.  
is what you need
Apr 23 '08 #2
sujit1779
6 New Member
Thanks for the reply Gray. I think I haven't put my question completely. Here I frame it again..

I am making one Desktop application in (.net using C#). This application logs user activities. And whenever user visits any webpage the application records the following (an example)
application name : IEXPLORE
application title : Community-- Reply to Topic

** but I also want to store the current site address .. how can I do that ? I am using PROCESS to get application name, etc


this seems to be a javascript one:

Expand|Select|Wrap|Line Numbers
  1. top.location.href;
  2.  
or in C#

Expand|Select|Wrap|Line Numbers
  1. Request.Url;
  2.  
is what you need
Apr 29 '08 #3
sujit1779
6 New Member
I am making one Desktop application in (.net using C#). This application logs user activities. And whenever user visits any webpage the application records the following (an example)
application name : IEXPLORE
application title : Community-- Reply to Topic

** but I also want to store the current site address .. how can I do that ? I am using PROCESS to get application name, etc
Apr 29 '08 #4
sujit1779
6 New Member
I have made a desktop application in .NET (using C#).
The application records all of your activities that you do on your system. For example when you open NOTEPAD it does the following
Records app name : NOTEPAD
Records TITLE : untitled-notepad
Records DURATION

Now you can see that I can record APP NAME and TITLE displayed on the APP.

My Query : Now suppose a user opens internet explorer or Mozilla and opens a page say
http://www.microsoft.com/ now my application will do the following :
App name : IEXPLORE or MOZILLA
Title : Microsoft Corporation - Windows Internet Explorer

The above two information is useful, but I need to know programatically what address is there in the address bar (in this case it is http://www.microsoft.com ) . How can I do that ? Is there any classes which does that ? What I think is I need to get BROWSER OBJECT in the code and then there might be some methods which might help me .. ??
Apr 30 '08 #5
Frinavale
9,735 Recognized Expert Moderator Expert
I have merged your posts concerning the same problem together into one post. Please do not post the same question more than once as it is against the posting guidelines of this forum. When you have the time please review the Posting Guidelines especial the rule about Double Posting Questions.


As for your question, ever browser is going to have a different API that you'll have to use. You are going to have to look up the APIs for each browser and attempt to interact with it through your code. I don't believe this is going to be an easy task because most browsers are going to keep the address bar information Private.

-Frinny
Apr 30 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
2568
by: NotGiven | last post by:
Say you have three pages, a search page, a results/master, and a detail page. You choose parameters on your search page and submit the page. The results show in the reults/master page. You...
1
2316
by: Sasa | last post by:
Hi I'm hosting a web browser control (WBC) on a form in a vb.net winform application. When accessing an asp.net application that contains a signed applet from IE, a java notification icon...
1
2425
by: Tony | last post by:
How do I add a web browser to a .net WinForm? Tony
2
1832
by: J.Marsch | last post by:
Ok, so here's a problem you probably don't see every day: We are building an application that must run in a browser, but we need to do some things client-side that would be rather difficult to...
2
5277
by: Sai Kiran | last post by:
Hi! 1. I am using asp.net 2.0 for my application and was wondering is there a way we can hide address bar, menu bar, Links and Standard Buttons of the browser without opening a new window. ...
1
4552
by: RSH | last post by:
I have a situation where I have a Master form that contains a DataGridView. Each row has a details... button that spawns a new winform which shows many more fields than the DataGridView. The user...
1
2332
by: E.T. Grey | last post by:
I would like to host a web browser component in a Winform. I have two questions: 1). Is it possible to run an applet (if the URL pointed to has an applet in it)? 2). Is it possible to change a...
0
952
by: UnkleVo | last post by:
Hello all, We have a form that contains browser control on it. Into that control we load some java applet that acts as an image viewer. On the form load we load the list of documents each with...
15
2453
by: bvdb | last post by:
Hello, my web-application uses two frames, one with a list of database records, one with a record detail view. From the detail view there is "mark" function that will mark the respective record in...
1
1744
by: db007 | last post by:
Hi, I have a problem with a current project and the scroll position. I have an AJAX enabled website using Visual Studio 2005 and ASP.Net 2.0. The project also uses masterpages. On the...
0
7119
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6989
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7195
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7367
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1400
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
285
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.