473,396 Members | 2,034 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,396 software developers and data experts.

How can we get the URL of the opened site in current instance of IE

hi
all
i am dealing wth a peoject in which we have to deal with URL of the
curretnly opened IE in c#.
Suppose first i opened a site in IE , next i opened another site in IE and i
opened third site in IE.
Now i need to get the URL of the third site i.e currently opened web page.
This is nothing but URL of the latest opened site.
i need the code in C#.
please help me,
Thanking You for help.
with regards
saish

Nov 17 '05 #1
2 1157
Look at HttpRequest::Path / Request.Path

However, it makes sense in Modules / Handlers. In aspx pages, you
anyway know the path.

btw, if you can detail what are you exactly trying to do... there may
be better options!
--
Cheers,
Gaurav Vaish
http://mastergaurav.org
http://mastergaurav.blogspot.com
-----------------------

Nov 17 '05 #2
Hi,
You can get the URL of the current visited web page using this,

Page.Request.Url.ToString();

Cheers, Daya PSP India
"Saish" wrote:
hi
all
i am dealing wth a peoject in which we have to deal with URL of the
curretnly opened IE in c#.
Suppose first i opened a site in IE , next i opened another site in IE and i
opened third site in IE.
Now i need to get the URL of the third site i.e currently opened web page.
This is nothing but URL of the latest opened site.
i need the code in C#.
please help me,
Thanking You for help.
with regards
saish

Nov 17 '05 #3

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

Similar topics

7
by: richard_quick_uk | last post by:
Hi, If anyone's got the time I'd really appreciate any feedback on the accessibility of this site: http://www.cata.co.uk/_index.a­sp
0
by: (Pete Cresswell) | last post by:
I've got a few subforms, each with an accellerator key assigned. When the user presses, for instance, Alt+2, the focus shifts to subform "2". This works OK once the user has selected a record...
1
by: mac | last post by:
Hi, I dont have sql 2005 express on my machine. Instead i have sql server 2005 CTP. When i build and run the website, i get following error. What are necessory steps required to run site. ...
2
by: Mark | last post by:
Hi, I am trying to open up a new window and then get the current url/location back from the (win_1) window and display the url in an alert box. Here is the code I am using :- <script...
0
by: Larry Rebich | last post by:
I am trying to use the sample web template that is distributed with Visual Studio 2005 called 'Personal Web Site Starter Kit'. After running for awhile it fails with the following message: ...
1
by: Brad Isaacs | last post by:
I am working with ASP.NET 2.0 and using an SQL Server 2000 database. I am using Visual Studio 2005 and developing on my Local machine. I am working with Login controls ASP.Configuration, I...
2
by: Jeff | last post by:
ASP.NET 2.0 In my webproject I've created a page which contain a button. This page will be opened from 2 pages. This button must be invisible if the page it is placed on are opened from one of...
1
by: =?Utf-8?B?YWxiZXJ0bHk=?= | last post by:
How can I create a new session from the existing session in asp.net when new IE session is opened using javascript's window.open method or user's hyperlink click? I have a web application which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.