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

how do you navigate between virtual sites within a main site

I have a main site www.example.com which has a form.

On the form is 2 command buttons. One button I can to go to testa.aspx and
one button I want to go to testb.aspx.

www.example.com/sitea/testa.aspx

www.example.com/siteb/testb.aspx

What is the syntax for the server.transfer or the linkbutton?

Also in testa.aspx, it has a button that returns back to the main site
www.example.com/test.aspx - What is the syntax for server.transfer or the
link button?

As long as each of these sites are not under different applications or front
page site, do they share the same application / security realm?

Thanks

Eric
Mar 7 '06 #1
3 1476
Hi Eric,

Thanks for posting!

From your description, my understanding is that you want to redirect the
request the different page via click the button. If I have misunderstood
anything, please let me know.

As far as I know, you can use Response.Redirect method in the
linkbutton_click event as below:
Response.Redirect("www.example.com/sitea/testa.aspx");
The parameter of the method is the URL for the site.

BTW, the Server.Transfer method is not appropriated if these sites in
different vitrual directories.

"As long as each of these sites are not under different applications or
front page site, do they share the same application / security realm?"
I'm sorry I don't understand the issue very well. Based on my experience,
if the sites in the same vitrual directory in IIS, the security realm will
be shared. If not, they has portion of security by themselves.

Thanks for your understanding!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support
================================================== ====
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD were
updated on February 14, 2006. Please complete a re-registration process
by entering the secure code mmpng06 when prompted. Once you have
entered the secure code mmpng06, you will be able to update your profile
and access the partner newsgroups.
================================================== ====
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====

Mar 8 '06 #2
Hi Yuan,

What is the difference between server.transfer and Response.Redirect.

In my limited thinking, I thought they were the same...

Thanks for the response.

Thanks

Eric

""Yuan Ren[MSFT]"" wrote:
Hi Eric,

Thanks for posting!

From your description, my understanding is that you want to redirect the
request the different page via click the button. If I have misunderstood
anything, please let me know.

As far as I know, you can use Response.Redirect method in the
linkbutton_click event as below:
Response.Redirect("www.example.com/sitea/testa.aspx");
The parameter of the method is the URL for the site.

BTW, the Server.Transfer method is not appropriated if these sites in
different vitrual directories.

"As long as each of these sites are not under different applications or
front page site, do they share the same application / security realm?"
I'm sorry I don't understand the issue very well. Based on my experience,
if the sites in the same vitrual directory in IIS, the security realm will
be shared. If not, they has portion of security by themselves.

Thanks for your understanding!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support
================================================== ====
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD were
updated on February 14, 2006. Please complete a re-registration process
by entering the secure code mmpng06 when prompted. Once you have
entered the secure code mmpng06, you will be able to update your profile
and access the partner newsgroups.
================================================== ====
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====

Mar 8 '06 #3
Hi Eric,

Thanks for your reply!

The following explanation about these two methods from MSDN document:
HttpResponse.Redirect method:
"Redirects a client to a new URL"
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfSystemWebHttpResponseClassRedirectTopic.asp

HttpServerUtility.Transfer method:
"Terminates execution of the current page and begins execution of a new
page for the current request."
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemwebhttpserverutilityclasstransfertopic. asp

Response.Redirect method simply tells the browser to visit another page.
Server.Transfer helps reduce server requests, keeps the URL the same and,
with a little bug-bashing, allows you to transfer the query string and form
variables.

There is an appreciated article gives us more explanation about these two
methods:
http://www.codeguru.com/Csharp/.NET/...cle.php/c5359/

Hope this will be helpful!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Mar 9 '06 #4

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

Similar topics

2
by: Jeffry van de Vuurst | last post by:
Hi, (sorry for the crosspost, I wasn't sure which was the best place to put this). I was just thinking about something and wondered if any of you has some ideas about this. I'm using the...
5
by: Leszek | last post by:
Hello, Could anybody explain what's a difference between a virtual directory and an application root under IIS? I'm a little bit confused. This is mu problem: Let's assume the following...
8
by: nick | last post by:
I have a problem and I've been using a cheezy work around and was wondering if anyone else out there has a better solution. The problem: Let's say I have a web application appA. Locally, I set...
0
by: Lasse Nilsson | last post by:
Hi all, I've got a deployment issue I hope is solvable at all, and appreciate all help anyone can give me. We've got an ASP.NET-application (a sort of function library shared by our customers,...
0
by: AC [MVP MCMS] | last post by:
I have a full blown VS.NET 2003 solution with a handful of library assemblies, two web projects, and a few web service projects. The entire solution is in VSS. Recently our build server went...
2
by: §iD` | last post by:
Hi! I would like to create a virtual folder (which I want to mount) and populate managing his content by a DLL or something like that in VB.NET (2.0). How can I acomplish this? Thanks to...
8
by: Nate | last post by:
I am running on Window 2003. I have a website built in ASP.NET 2.0. I need to have a Virtual Directory running an application in 1.1. I have configured each in its own Application Pool. The 1.1...
2
by: Loane Sharp | last post by:
Hi there I have an ASP.NET web application created in Visual Studio 2005. The application is installed to a subdirectory in wwwroot, which is mapped in turn to a virtual directory under the...
2
by: tshad | last post by:
I have set up a Virtual Directory underneath my normal Web Site in IIS 6 for 2 of our sites. One of them works file. The other one is giving me an error:...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.