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

Server.TransferRequest()

Hi all.

On requests for a parent web application, and when certain conditions
match, I need to load pages from a child web application. I've been
playing around with various methods, including RewritePath and
Server.Transfer, but these each have problems of their own.

Reading up on TransferRequest, this seems like the ideal solution
where the request is sent back through the IIS pipeline and the user
will see the results from the sub application, but the URL will remain
unchanged .. perfect.

The problem is that when I try this, the URL *does* get changed. I may
as well have just done a Response.Redirect! Obviously I'm doing
something wrong. Anyone know what it might be??
Thanks,

Matt
Feb 19 '08 #1
2 6973
I've just put together a very simple test solution with the following
files:

Default.aspx
Test.aspx
MyModule.cs

I've added MyModule to the Web.Config and made it TransferRequest to
Test.aspx.

This works perfectly and loads the content of Test.aspx under the
guise of Default.aspx. I'm not sure why this works and my main
solution doesn't, but I'll keep looking into it; I'm sure it will turn
out to be something stupidly simple!
Feb 19 '08 #2
I would recommend using HttpContext.RewritePath
I am successfully using it.
so if you have unresolved problems let us know and we'll help you to solve
them

George.

"Matt Winward" <m.*******@gmail.comwrote in message
news:c0**********************************@q78g2000 hsh.googlegroups.com...
Hi all.

On requests for a parent web application, and when certain conditions
match, I need to load pages from a child web application. I've been
playing around with various methods, including RewritePath and
Server.Transfer, but these each have problems of their own.

Reading up on TransferRequest, this seems like the ideal solution
where the request is sent back through the IIS pipeline and the user
will see the results from the sub application, but the URL will remain
unchanged .. perfect.

The problem is that when I try this, the URL *does* get changed. I may
as well have just done a Response.Redirect! Obviously I'm doing
something wrong. Anyone know what it might be??
Thanks,

Matt

Feb 19 '08 #3

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

Similar topics

2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
22
by: EP | last post by:
When running my asp.net hosting service (asp.net without IIS), on server 2003 with IIS not installed, I get the following when trying to process a request. "System.DllNotFoundException: Unable to...
2
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
4
by: coosa | last post by:
Hi, I was installing SQL Server on my machine and during installation my PC freezed. It happens frequently on my machine. So i tried after restarting to install it again and since then i always...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
10
by: sara | last post by:
Hi All, I was able to connect to MS SQL Server 2005 on my computer but after a while I can not. When I want to connect to it using MS SQL Server Management Studio I got this error: An error...
1
by: manish deshpande | last post by:
Hi, When i'm installing MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm by the following command: rpm -i MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm the following error is being shown: ...
14
by: Developer | last post by:
Hello All, i have recently installed VS2005 and was trying to install SQL sever 2000. I have Win XP' SP2. But when I tried installing, it only installed client tools and not the database. Can...
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
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
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
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
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
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...

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.