GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP
Go To First  |  Previous Question  |  Next Question 
 ASP  |  Question 139 of 146    Print  
What is the difference between server.trasfer, server.execute and Response.redirect?
Is Response.trasfer is valid in ASP.

  
Total Answers and Comments: 2 Last Update: March 24, 2007     Asked by: jibijoseph 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: rashmi
 
server.execute stops the execution of the current page and transfers the control to the URL passed in as a parameter. After that page has finished execution control passes back to the original page and execution resumes at the statement after the execute method call.

server.transfer is similar to server.execute but unlike that methos the execution does not resume to the original page but end when the new page completes executing

response.redirect transfers the control to the given url but there is server round trip.
In response.redirect the  new url can be seen , but in server.execute and transfer the new page url is not seen even though the control is passed to the new page.

Performance is better in server.execute and transfer nut they cannot be used with server-side include #exec directive.

Above answer was rated as good by the following members:
vinodsaini.cs, satyanis1
March 17, 2007 06:09:39   #1  
rashmi        

RE: What is the difference between server.trasfer, ser...
server.execute stops the execution of the current page and transfers the control to the URL passed in as a parameter. After that page has finished execution control passes back to the original page and execution resumes at the statement after the execute method call.

server.transfer is similar to server.execute but unlike that methos the execution does not resume to the original page but end when the new page completes executing

response.redirect transfers the control to the given url but there is server round trip.
In response.redirect the  new url can be seen , but in server.execute and transfer the new page url is not seen even though the control is passed to the new page.

Performance is better in server.execute and transfer nut they cannot be used with server-side include #exec directive.

 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 0Overall Rating: +2    
March 24, 2007 05:07:06   #2  
Prabhu Jayaraman        

RE: What is the difference between server.trasfer, ser...
Rashimi Answer is Right
Server.Execute -- is like sub function.. you cant return values from tht page.
Server.Transfer -- This can be done only in Local System. and when you use Server.Transfer tht url page will not be stored in history.
Reponse.redirect-- Ths is just passing the user from one page to another page.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions


<% Set Application("Thing") = Server.CreateObject("THINGDOER.thingy") %> The above code appears in the global.asa file. What would it accomplish?
A. It would create a "Thing" object and place it in Contents Collection of the Application object. B. It would create a "Thing" object and place it in StaticObjects Collection of the 

A. Setting the [component name].scope property. B. Using the Server.CreateObject method. C. Placing it in the Session or Application OnStart event handler. D. Instantiating the component in the global.asa 
Latest Answer : Its Option E. tag ...

<% intA = 3 sStrA = "Hello World" sStrB = "Hello World" + intA Response.Write sStrB %>

A. Client actions cannot change Application variables. B. The change is not visible to any client until the application is stopped and started. C. The change is only visible to future requests made by 
Latest Answer :  Answer : E ...

A. HTMLEncode,MapPath B. URLEncode,ScriptTimeout C. URLEncode,CreateObject D. ScriptTimeout,Abandon  
Latest Answer : these are server object  properties:-server.CreateObject()server.Execute( )server.GetLastError()server.HTMLEncode()server.MapPath()server.ScriptTimeout()server.Transfer()server.URLEncode()so A,B,C is the Correct Answer ...

Following is the code Server.MapPath (".") consider the path is C:InetpubWWWRootMATDefault.asp. What will be the output
A. C:InetPUb B. C:InetPUbWWWroot C. C:InetPUbwwwrootMAT D. Error  

A. Server B. Response C. Request D. ObjectContext  
Latest Answer : Ans:Request ...

A. Server B. Response C. Request D. Session  
Latest Answer : Ans:Response ...

The browser makes a HTTP request; the server gives a HTTP response to the browser and the browser converts into a HTML page.  
Latest Answer : Client send the request to the server thru Request objcet. Server recevied the information and after processing the request send back to the server thru response object.server object takes the user supplier string and encode it into the proper html format. ...


 Sponsored Links

 
Related Articles

SQL Server 2005 Integration Services Review

SQL Server 2005 Integration Services using Visual Studio 2005 A Beginner s Guide SQL Server 2005 A offering of Microsoft Corporation for database management the SQL server 2005 is one of the powerful database management systems in the world Available for integration in almost any system that uses Mi
 

SQL Server Integration Services

SQL Server Integration Services Here is a sample chapter from Beginners Guide to SQL Server Integration Services Using Visual Studio 2005 by Jayaram Krishnaswamy Environment set up for Visual Studio 2005 with respect to SSIS and multiple tasking Connecting to Microsoft Access Text Files Excel S
 

Web Server

Web Server A web server can be a program or the computer itself which receives the requests from various other browsers and responds to those requests These requests are all requests that are being sent for some documents There are two kinds of web servers available The web server program and the
 

Client-Server Models and N-Tier Applications

Client Server Models and N Tier Applications One of principal objective of Client Server methods is to provide data to an end user However Client Server architectural methodologies are much more complex Client Server describes the process wherein a client program generates contact with a separate se
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

Web Services and Client Server Technology

Web Services and Client Server Technology Introduction to Distributed Computing The Internet and expanded network connectivity established client sever models as the preferred form of distributed computing When talking about Client Server models of networked communication using web services the broa
 

Object-Oriented Client-Server Internet

Object Oriented Client Server Internet OCSI Environments as IT Infrastructure Client Server Basics Object Oriented Client Server Internet OCSI environments provide the IT infrastructure for supporting OCSI applications For our purposes infrastructure refers to operating systems networks middleware
 

N-Tier Client-Server Architecture

N Tier Client Server Architecture Description of 1 Tier and 2 Tier Web Applications This article will discuss the various architectures of Client Server environments Perhaps the most influential Client Server environment is the Internet and its global users With the increasing use of web application
 

What is difference between call by value and call by reference in function?

The arguments passed to function can be of two types 1. Values passed 2. Address passed The first type refers to call by value and the second type refers to call by reference. For instance consider program1 main() { int x=50, y=70; interchange(x,y); printf(&ldquo;x=%d y=%d&rdquo;,x,
 

Language Enhancements in SQL Server 2005

The T-SQL has been enhanced to include error handling, recursive query and to support the new database engine capabilities. Two new relational operators have been introduced&mdash;PIVOT and UNPIVOT for use in the FORM clause query. They perform manipulation on an input table valued expression an
 

Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape