Questions tagged [server.transfer]

106 questions
0
votes
1 answer

if child of server.execute calls Server.Transfer or handler.ProcessRequest or Response.Redirect, what happens?

I'm trying to run (in a try block, with no catch but a finally) HttpContext.Current.Server.Execute(child1, tw, true); where the child page tries to run one of the…
Yuriy Zubovski
  • 128
  • 1
  • 6
0
votes
1 answer

Wrong usage of UserHostAddress

I have some web site with two .aspx files (Default.aspx and Default2.aspx). In Default.aspx.cs I have this simple code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using…
0
votes
1 answer

Server.TransferRequest doesn't send passed header

My target is to send my own items of header of HTTP Response using Server.TransferRequest. I'm trying to do something like that: Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetNoStore(); var headers = new…
0
votes
1 answer

Server.Transfer in Try-catch :Thread abort exception

What is the equivalent of Response.Redirect("abc.aspx",false) when i use Server.Transfer instead of Response.Redirect.I use false as the second param of Response.Redirect to stop receiving the ThreadAbort exception in a try catch block I want to…
Shyju
  • 214,206
  • 104
  • 411
  • 497
0
votes
1 answer

redirection from one user control to another user control

I have a usercontrol.ascx in a aspx page. And in my user control I have a button click event, and I need to open another user control from this button click. Please give me some suggestions on how to achieve this. Thanks.
0
votes
1 answer

Application Lifecycle Event Not Fired when Server.Transfer

I have a custom rewrite module and when specific query string parameters are passed i need to be able to call a server.transfer and not a response.redirect due to adserve software and tracking in the Init Event of the RewriteModule i register the…
stack72
  • 8,198
  • 1
  • 31
  • 35
0
votes
1 answer

How can I server.transfer to one page and then server.transfer back to the original

How can I transfer to a confirmation page using: protected void Transfer_Click(object sender, EventArgs e) { if (Page.IsValid) { Server.Transfer("~/NewApplicationConfirmation.aspx"); } } Then, on the…
0
votes
1 answer

How to make a server.transfer() with a Response.AddHeader("refresh", "seconds") and not get a 404 error?

so this is the scenario: I have a base class for all login-controlled pages: public class SessionControlledPage : Page { protected virtual void Page_Load(Object sender, EventArgs e) { Response.AddHeader("Refresh",…
Andres A.
  • 1,329
  • 2
  • 21
  • 37
0
votes
0 answers

HttpContext.Server.Transfer to an IHttpHandler

Problem: I have an application defined within IIS, that points to a path containing a Web App. The Web App has a HttpHandler that handles all incoming requests, and forwards those requests onto other apps (also containing HttpHandlers) located in…
R4D4
  • 1,382
  • 2
  • 13
  • 34
0
votes
1 answer

Server.Transfer takes more time than direct call

I have a page "screen_test.aspx". When I am calling this page directly like "server/application/screen_test.aspx". This is taking 50 ms to load. Now I have a intermediate page which checks security "secure.aspx?name=screen_test" . It check security…
Ranjan Kumar
  • 497
  • 2
  • 8
  • 24
0
votes
1 answer

Error Page Not Rendering

So I have my global.asax Application_Error() event set up to process errors and then do a Server.Transfer() to a custom error page. When an exception is thrown, I can watch the code step through the Application_Error event, then step into the…
0
votes
2 answers

SMO.Transfer: cannot convert type "database" to type "database"

Here is a powershell script: [string] $server = "devserver\mssql"; # SQL Server Instance [string] $database = "ftg"; # Database with the tables to script out. [string] $folder = "d:\FT\FTProject\"; # Path to export…
host.13
  • 108
  • 1
  • 1
  • 11
0
votes
1 answer

Create and Download Image of Linode to restore to Windows Server 2012 Hyper-V Environment

We want to transfer a debian 6 install from linode to a Windows Server 2012 Hyper-V Environment. How can I download a full image of my linode? What format will the Windows Server need? I mostly work in linux and I have been researching on how I…
styks
  • 3,193
  • 1
  • 23
  • 36
0
votes
0 answers

How to return control to function after page transfer

I'm working on my first web forms application and I'm running into an interesting problem. I have two pages in my application- one is the main page where the user can manipulate information on the page, and the other is an information retrieval page…
Arch
  • 45
  • 2
  • 10
0
votes
1 answer

Server.transfer looks for the resource in subfolder

I have a page in a root folder and another page in a files folder inside the root. folder structure ->root->files->foo.aspx ->root->default.aspx ->root->foo.js when i do a server.transfer from the page inside the files folder(foo.aspx) to the page…
user1
  • 1,063
  • 1
  • 8
  • 28