Difference between server.transfer and server.execute method?
Answer Posted / 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 |
Post New Answer View All Answers
What is the difference between a view and a stored procedure?
How much space does sql server 2016 take?
What is the exact numeric data type in sql?
which backup strategy you are following at ur company
What is use of @@ spid in sql server?
How to create new tables with "create table" statements in ms sql server?
List the advantages of using stored procedures?
Using the customer, and order table in northwind database, please write a query to produce xml?
What does it mean to invest in the index?
When a primary key constraint is included in a table, what other constraints does this imply?
How to transfer data from a cursor to variables with a "fetch" statement?
Do you know the isolation level that sql server support?
How to delete multiple rows with one delete statement in ms sql server?
When cursors are useful?
How to start sql server browser service?