[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • Last Modified:

Server.Transfer going to the wrong page

I'm working on an existing ASP.NET 2003 application and noticed that they use Server.Transfer to move to another page in the application.  

The problem is, I added a button to a form in the app that does a Server.Transfer to a new page.  When it executes, it does not go to the page specified, it goes to a different page.  Is anyone aware of any framework issues that need to be setup to allow a page to call another page? I know that the Server.Transfer doesn't actually display the right page name, but it's not going to the right place either.

Thanks so much!
0
MrDeveloper
Asked:
MrDeveloper
1 Solution
 
jeebukarthikeyanCommented:
hi,

check any other response.redirect is there in the page load of the form from which ur caling the server.tranfer

also chek in the called form whether any code is there which is causing redirection

better put a break point in the page load of the called form

b u d d h a
0
 
MrDeveloperAuthor Commented:
Thanks buddha, that pointed me right to the problem!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now