Difference between server.transfer and server.execute method?

Answers were Sorted based on User's Feedback



Difference between server.transfer and server.execute method?..

Answer / sreyasmn

Server.Transfer takes the control execution of the page to
the new page and thereafter it doesnt return automatically
to the original page.

The transfer happens at the server side and the client
browser is not aware of the change and hence will not
update the URL.

Server.Execute actually executes the specified page and
then returns back to the original page. This can be used in
scenarios where you want to go to a specific page, execute
some thing and then come back to the original page.

Is This Answer Correct ?    26 Yes 2 No

Difference between server.transfer and server.execute method?..

Answer / t

The transfer happens at the server side and the client
browser is not aware of the change and hence will not
update the URL.

Server.Execute actually executes the specified page and
then returns back to the original page. This can be used in
scenarios where you want to go to a specific page, execute
some thing and then come back to the original page.

Is This Answer Correct ?    9 Yes 0 No

Post New Answer

More SQL Server Interview Questions

Working with TLogs

0 Answers  


What is named query? : sql server analysis services, ssas

0 Answers  


What is msdb database? : SQL Server Architecture

0 Answers  


Differentiate between a having clause and a where clause.

0 Answers  


What is the parse query button used for?

0 Answers  






What are the advantages of user-defined functions over stored procedures in sql server?

0 Answers  


How to generate the Reports for the Database? I need an Example for it.Will we manually do this or else any script is there? Please let me know ASAP...

1 Answers   Cognizant,


How to create a new schema in a database?

0 Answers  


How to rename an existing column with the "sp_rename" stored procedure in ms sql server?

0 Answers  


What is the use of “join” in sql server?

0 Answers  


When would you use it?

0 Answers  


What is the difference between Normalization and De-normalization?

0 Answers   TCS,


Categories