473,796 Members | 2,586 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Know Page Name with ServerTransfer

Hello,

I need to know on evry request the page name, my problem is when use
the method server.transfer , i always get the name of the calling page.

I use context.Current .Request.Url, but I am always getting the first
page.

Is there a way to get the name of the transfered page?

Thanks,
Manuel
Nov 18 '05 #1
4 2172
Try rather the Script_Name server variables.

The Url is rather the exact url requested (which doesn't change wehn using
Server.Transfer ) while Script_Name should be always IMO the current file...

--

"Manuel Lopez" <mc*****@terra. es> a écrit dans le message de
news:cd******** *************** ***@posting.goo gle.com...
Hello,

I need to know on evry request the page name, my problem is when use
the method server.transfer , i always get the name of the calling page.

I use context.Current .Request.Url, but I am always getting the first
page.

Is there a way to get the name of the transfered page?

Thanks,
Manuel


Nov 18 '05 #2
Hello Patrice thanks for your reply,

I have tried using Request.ServerV ariables("Scrip t_Name") and I get
the same behavior when using server.transfer I always get the calling
page.

There must be a way to the name of the page that is being executed?

Many Thanks,
Angel

"Patrice Scribe" <no****@nowhere .com> wrote in message news:<eT******* *******@TK2MSFT NGP12.phx.gbl>. ..
Try rather the Script_Name server variables.

The Url is rather the exact url requested (which doesn't change wehn using
Server.Transfer ) while Script_Name should be always IMO the current file...

--

"Manuel Lopez" <mc*****@terra. es> a écrit dans le message de
news:cd******** *************** ***@posting.goo gle.com...
Hello,

I need to know on evry request the page name, my problem is when use
the method server.transfer , i always get the name of the calling page.

I use context.Current .Request.Url, but I am always getting the first
page.

Is there a way to get the name of the transfered page?

Thanks,
Manuel

Nov 18 '05 #3
Should have thought about that as it's taken from the original HTTP request
I suppose. The only option I can see is to query for the current class using
reflection or something similar.

I would recommend not using Server.Transfer for navigation purpose but
rather only when, for some reason, you have a processing only page that
logically "belongs" to the calling navigation page.

Patrice
--

"Manuel Lopez" <mc*****@terra. es> a écrit dans le message de
news:cd******** *************** ***@posting.goo gle.com...
Hello Patrice thanks for your reply,

I have tried using Request.ServerV ariables("Scrip t_Name") and I get
the same behavior when using server.transfer I always get the calling
page.

There must be a way to the name of the page that is being executed?

Many Thanks,
Angel

"Patrice Scribe" <no****@nowhere .com> wrote in message

news:<eT******* *******@TK2MSFT NGP12.phx.gbl>. ..
Try rather the Script_Name server variables.

The Url is rather the exact url requested (which doesn't change wehn using Server.Transfer ) while Script_Name should be always IMO the current file...
--

"Manuel Lopez" <mc*****@terra. es> a écrit dans le message de
news:cd******** *************** ***@posting.goo gle.com...
Hello,

I need to know on evry request the page name, my problem is when use
the method server.transfer , i always get the name of the calling page.

I use context.Current .Request.Url, but I am always getting the first
page.

Is there a way to get the name of the transfered page?

Thanks,
Manuel


Nov 18 '05 #4
Request.Current ExecutionFilePa th does the job...

Patrice

--

"Manuel Lopez" <mc*****@terra. es> a écrit dans le message de
news:cd******** *************** ***@posting.goo gle.com...
Hello Patrice thanks for your reply,

I have tried using Request.ServerV ariables("Scrip t_Name") and I get
the same behavior when using server.transfer I always get the calling
page.

There must be a way to the name of the page that is being executed?

Many Thanks,
Angel

"Patrice Scribe" <no****@nowhere .com> wrote in message

news:<eT******* *******@TK2MSFT NGP12.phx.gbl>. ..
Try rather the Script_Name server variables.

The Url is rather the exact url requested (which doesn't change wehn using Server.Transfer ) while Script_Name should be always IMO the current file...
--

"Manuel Lopez" <mc*****@terra. es> a écrit dans le message de
news:cd******** *************** ***@posting.goo gle.com...
Hello,

I need to know on evry request the page name, my problem is when use
the method server.transfer , i always get the name of the calling page.

I use context.Current .Request.Url, but I am always getting the first
page.

Is there a way to get the name of the transfered page?

Thanks,
Manuel


Nov 18 '05 #5

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

Similar topics

1
4196
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens in IE as well as FireFox. This code has been tested on a Win2003 server, IIS6, PHP 5.0.3, mySQL 4.1.8 and it works fine. The problem server is a Win2k server, IIS5, PHP 5.0.4, mySQL 4.1.11.
2
1341
by: VbUser25 | last post by:
hi, whats happening is i do a form post from a form "A", to a form "B" where it does some processing and then does a form.redirect to form "C"..where there is a link to the form "A". I only want that when the user selects form "A" from form "C" then at least i should be able to display his name and email address what he had entered previously. what the best way to save the variables and when i display back in the form how do know...
14
2370
by: J. Makela | last post by:
Hallo. This should be a pretty entertaining question for you *real* javascript writers.. I, being the lowly photoshop guy at an ad agency made the mistake of actually saying "HTML" in a conversation once.. and now I have been tasked with building a big website with LOTS of fancy javascripting. Image rollovers mostly. Only problem is that I don't really know how to do it. Of course, that's of no consequence so I have to do it anyway....
0
2432
by: Nathan | last post by:
Hi, I seem to having a peculiar problem with the display of odd and even pages in XSL-FO. Here is a small background of the problem. My xsl stylesheet mentions my fo:layout-master-set as <fo:layout-master-set> <fo:simple-page-master margin-left="0.5in" margin-right="0.5in" page-width="8.5in" margin-bottom="0.5in" master-name="Section-odd-page" margin-top="0.5in" page-height="14in"> <fo:region-after region-name="xsl-region-after-odd"
1
1774
by: Simon | last post by:
Hi everyone, I have a quick question that I hope someone can help me with: I've made a user control that contains a text box and some validation functionality. This control has a few extra properties declared on it over and above that provided by the textbox. As I understand it, part of the process to make this work is, in the property accessor's for the properties that you wish to persist you add
7
1399
by: sunil philip | last post by:
How do i identify the page that fired a method? e.g. page1.html ----------- <Head> <script> document.write(myfun()); </script>
2
1740
by: ABC | last post by:
How to I know the previous page is clicked to forward the current page? As our web site have many methods to enter the web page, I need to know the users clicked which link or which part of page to enter the web page.
9
1891
by: Coleen | last post by:
Hi All :-) I am desperately looking for some help/information on how to direct page flow. Forget what I have done - here's what I need to do: I have a large ASPX.Net - VB.Net web application (around 35-40 pages) that once the user logs in, I need to direct them to the correct page, depending on what they select from the directory. In other words...when they login, if they are a new user, a new account screen comes up and from there a...
7
1677
by: PGPS | last post by:
Hi, I want to know who all clicked a particular link (cgi-script) on any website. 1. Link points to my own webserver 2. Link can be sent anyway. Either emailed or posted on a site which needs login If emailed, then the email page which shows the link also has the users name. When clicked I want to obtain the name.
0
10465
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...
0
10242
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10200
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,...
1
7558
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5453
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
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4127
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
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.