473,324 Members | 2,400 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.

server.transfer gives error but response.redirect works.

Hi all,

I am new to asp.net. I am trying to use server.transfer and
respnse.redirect.

When i nagivate to page using server.transfer on navigated page if i
click on refresh i am getting error. But this is not happening when i
use response.redirect.

On msdn i read thaat i may get unexpected result in server.transfer.
Can anyone tell me why is it so?

any help will be truely appreciated.

thanks in advance.

Apr 23 '07 #1
2 1328
What error are you getting? Just to highlight: Server.Transfer() displays
content from the transferred page but the URL on the browser remains the old
one and so refreshing the page actually reloads the previous (old) page.

"archana" wrote:
Hi all,

I am new to asp.net. I am trying to use server.transfer and
respnse.redirect.

When i nagivate to page using server.transfer on navigated page if i
click on refresh i am getting error. But this is not happening when i
use response.redirect.

On msdn i read thaat i may get unexpected result in server.transfer.
Can anyone tell me why is it so?

any help will be truely appreciated.

thanks in advance.

Apr 23 '07 #2
When you use Server.Transfer, the browser is never informed that the page
has changed.
Therefore when you tell the browser to refresh, it is requesting the
original page. This is likely at the root of your problem.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"archana" <tr**************@yahoo.comwrote in message
news:11**********************@p77g2000hsh.googlegr oups.com...
Hi all,

I am new to asp.net. I am trying to use server.transfer and
respnse.redirect.

When i nagivate to page using server.transfer on navigated page if i
click on refresh i am getting error. But this is not happening when i
use response.redirect.

On msdn i read thaat i may get unexpected result in server.transfer.
Can anyone tell me why is it so?

any help will be truely appreciated.

thanks in advance.
Apr 23 '07 #3

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

Similar topics

6
by: \A_Michigan_User\ | last post by:
Ok, I give up... why do 1-4 work fine... but 5-6 give "can't find" errors? 1. Client-side VBscript code: call navigate("\\209.11.22.33\MyDir") 2. Client-side VBscript code: location.href...
6
by: StephenMcC | last post by:
Hi All, Got a quick query in relation to the Server.Transfer method available in IIS 5+/ASP. I've got an issue where I want to take a portion of an online app and extract this out into a web...
5
by: Jon Sequeira | last post by:
Is there a way to redirect from an ASP.NET page to an ASP page without showing the ASP page's URL in the client's browser? This works perfectly with an HTML page, for example: path =...
8
by: shin | last post by:
hi i have an asp.net page and i am trying to transfer control to another asp.net page response.redirect works fine but server.transfer gives me the foll error why is that ...
2
by: Pete | last post by:
Hi all... I sincerly hope one of the MS guys can clear this up for me... First some background... Ok, I have a web site which is fully translatable into several languages. All the strings...
8
by: bryan | last post by:
I've got a custom HttpHandler to process all requests for a given extension. It gets invoked OK, but if I try to do a Server.Transfer I get an HttpException. A Response.Redirect works, but I really...
1
by: =?Utf-8?B?c2hldWVydHo=?= | last post by:
Hi, I'm developing a reporting app that works as a subordinate to other apps, ie, users still see the menu structure for the app they're working in, but generate their report in my app. When...
2
by: =?Utf-8?B?YWxiZXJ0b3Nvcmlh?= | last post by:
Hi, I'm using Threads, and when I try to do Server.Transfer, I recieved an error. (child object does not exist...) My Code: Dim t As New Thread(AddressOf Hilo) Private Sub Hilo()...
3
by: jasonheath.net | last post by:
I apologize in advance for the length of this post. I wanted to get as much detail as possible in here. We have 1 web app that contains the functionality to do some single sign-on logic. The...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.