473,714 Members | 2,623 Online
Bytes | Software Development & Data Engineering Community
+ 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 2339
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.c om/ 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.c om ) . 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
2578
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 click one to go the details page. You hit the browser button to go back and it shows the results/master page but shows "Page has expired" error. How can you prevent this? How can you show the results page whether you get
1
2343
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 appears in the system tray and a popup appears asking to accept certificates etc... However, the same behaviour does not occur when accessing with the WBC.
1
2445
by: Tony | last post by:
How do I add a web browser to a .net WinForm? Tony
2
1840
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 pull off with the usual browser-side scripting (javascript etc). It's been decided that this one, complicated function will be implemented by hosting a Winform in the browser. Now, this winform contains an ActiveX control (an HTML editor).
2
5300
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. i.e. nothing should be displayed on the browser except the application content. 2. Actually, we have accomplished this by opening a new window and setting
1
4564
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 can elect to update any of the displayed information the problem is that if they do, even though the database is updated, when the Detail form is closed the Datagrid is not updated. Of course I understand why not, but how can I refresh the...
1
2339
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 property (for example) of the web browser, so that it does not display the address (i.e. the URL that the page was loaded from)?
0
971
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 it's own URL that is pointing to the doc location.When you click on the item in the list it loads the document from the url that this item points to. Problem is that when java applet loads the first time it takes forever.
15
2475
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 the list frame (with a special color). Now this mark function is meant to toggle the mark status in the list frame, i.e. switch it on with the first click and off with the second. Problem is, the marking works, but the second click will not have...
1
1776
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 page in question, there is a search section in an AJAX update panel, situated on the left hand side. Upon submitting criteria and pressing a button, the results are displayed on the right hand side of the page.
0
8801
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8707
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9314
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9015
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5947
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4464
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4725
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3158
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 we have to send another system

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.