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

What is a view? is View updatable?

17 Answers   IBM, L&T,


What is the diffrence between update_one and auto_fix?

3 Answers   IBM,


How do you connect 100 files as a flat file sources in one package of SSIS?

2 Answers  


If I delete a template from the list in sql studio, will it be deleted from the hard disk? : sql server management studio

0 Answers  


Say if we have a table that contains only a single column , say OrderID, which has IDENTITY attribute defined on it. So how can we insert data in this table. I am reframing my question, that how can we make the table to increment the column "OrderID" value several times???

3 Answers  






What are binary string data types in ms sql server?

0 Answers  


How do I view a script in sql server?

0 Answers  


How do I find the size of a sql server database?

0 Answers  


What are recommended options to be used while using db mirroring? : sql server database administration

0 Answers  


What is data source object?

0 Answers  


can you instantiate a com object by using t-sql? : Sql server database administration

0 Answers  


What is field with example?

0 Answers  


Categories