473,395 Members | 1,539 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,395 software developers and data experts.

View current page's URL

Greetings,

Is there a way in asp.net that I can access the url of the page the user is
currently on in the web application on and store it in a variable?

I was hoping that there was something like: me.url or page.url , but I
can't seem to locate anything.

Thanks,

-Dave
Nov 19 '05 #1
2 992
Well there is, try the following

Request.Url.AbsoluteUri

Kumar Reddi
http://kumarreddi.blogspot.com

"Dave" <no****@yahoo.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
Greetings,

Is there a way in asp.net that I can access the url of the page the user
is currently on in the web application on and store it in a variable?

I was hoping that there was something like: me.url or page.url , but I
can't seem to locate anything.

Thanks,

-Dave

Nov 19 '05 #2
Kumar,

Thanks for the help. It works perfectly.

-Dave

"Kumar Reddi" <Ku********@REMOVETHIS.gmail.com> wrote in message
news:uU**************@TK2MSFTNGP09.phx.gbl...
Well there is, try the following

Request.Url.AbsoluteUri

Kumar Reddi
http://kumarreddi.blogspot.com

"Dave" <no****@yahoo.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
Greetings,

Is there a way in asp.net that I can access the url of the page the user
is currently on in the web application on and store it in a variable?

I was hoping that there was something like: me.url or page.url , but I
can't seem to locate anything.

Thanks,

-Dave


Nov 19 '05 #3

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

Similar topics

5
by: Pete Wason | last post by:
Hiall! I have a demo viewer page for javascript stuff that has three buttons "DEMO" "HTML" and "JSCR", and an IFRAME called 'viewer'. Initially, the IFRAME gets loaded with the actual demo...
6
by: Robert W. | last post by:
I'm building my first major C# program and am try to use best practices everywhere. So I've implemented the "Document/View Model" whereby: - There's a Windows Form, which we'll call "formView" -...
2
by: Stan | last post by:
I want to make two pages interact through a controller. 1. Page A has a grid and Add button. 2. When Add button is clicked Page B pops up. 3. User enters information and clicks Save 4....
1
by: Jerry Tovar | last post by:
I am using .Net 2003 on a XPPro running IIS. I am unable to view any of my ASPX webforms in a browser unless I modify the .ASPX file and replace Codebehind="employee.aspx.cs" with...
2
by: dharma25 via DotNetMonster.com | last post by:
After ive created a page and click on the start icon in visual studio to view the current page in the browser.... it always displays some other page from the site. then I have to manually enter my...
3
by: Alan Silver | last post by:
Hello, I am just looking at the tree view control, which looks very good, but has some apparent limitations. This could easily be my lack of experience with it. Specifically, I have two...
2
by: cjshea | last post by:
Hello Friends; I am asking this as a database administrator, perhaps more on behalf of the SQL Programmer. We have a search on a view that uses a street number and a partial street name in a...
1
by: RSH | last post by:
Hi, I have a user created control that has quite a bit of codebehind code. I have one link in the HTML page code that I need to insert the current URL in. I have tried several scenerios but...
0
by: tedqn | last post by:
I have a gridview page that returns result base on submitted search criteria. Each result has a link to view the details of an item, which will take user away from the current page to the detail...
8
by: Arno R | last post by:
Hi all. When I need to search for pictures, I always have too choose thumbnail-view manually. Is it possible to open the common dialog in thumbnail-view programmatically? Example ?? At the...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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...

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.