Common ground :

It's all redirection ;

Difference :

redirect:

1 Occurs on the client side ;

2. Send two requests , Request the original page for the first time , When this method is called , Create a reply header , Return status code 302, The second page that requested redirection ;

3. You don't get any raw output ;

3. The loss of request All properties in ;

4. need client One more request ;

transfer:

1. These problems have been solved very well . It's from server The client sends the request directly to the next page , Unwanted client Send request again .

2. Occurs on the server side , The browser doesn't know that the server has performed a page transformation ;

3.  By default ,Server.Transfer Method does not pass form data or query strings from one page to another , But just set the second parameter of the method to True, You can keep the form data and query string of the first page .

4.EnableViewStateMac=false; Prevent re submission of data ;

5.Execute()l;

Redirect And Transfer More articles about the difference between

  1. Response.Redirect()、Server.Execute and Server.Transfer The difference between

    1.Response.Redirect(): Response.Redirect Method causes the browser to link to a specified URL. When Response.Redirect() Method is called , It creates a response , In response header ...

  2. Response.Redirect("");Server.Transfer("") The difference between jump pages

      Response.Redirect("") Server.Transfer("") Move to other sites can You can't ( You can only turn inside the station ) Whether you can bring QueryString ginseng ...

  3. Response.Redirect(),Server.Transfer(),Server.Execute() The difference with website optimization

    turn  http://blog.csdn.net/dannywj1371/article/details/10213631 1.Response.Redirect():Response.Redirect Fang ...

  4. redirect and forward The difference between

    similarities and differences 1. From the address bar display forward Is a server request resource , The server directly accesses the URL, Take that. URL Read the response content of , And then send it back to the browser . The browser has no idea where the content sent by the server comes from , therefore ...

  5. The configuration file Struts.xml in type attribute redirect,redirectAction,chain The difference between

    1.redirect:action Redirect to a view resource after processing ( Such as :jsp page ), All request parameters are missing ,action All the results are lost .  2.redirectAction:action After processing, redirect to a ...

  6. Response.Redirect() and Response.RedirectPermanent() difference

    remarks : I used Response.RedirectPermanent() Used to do 301 Jump , Such as : I want to visit the website's url The visiting address is :http://m.shop/abc.html , The access address entered by the user : ...

  7. python redirect and render The difference between

    render Is render variable to template , and redirect yes HTTP in 1 Jump function , It usually generates 302 Status code .

  8. redirect And forward The difference between

    File name :forward.jsp <html> <head><title> Jump </title> </head> <body> ...

  9. redirect and forward The difference between

    1. From the address bar display forward Is a server request resource , The server accesses the target address directly url, Take that. url Read the response content of , And then send it back to the browser , The browser has no idea where the content sent by the server comes from , So his land ...

Random recommendation

  1. Use Open xml operation Excel The second series -- from data table Export data to Excel

    because Excel PivotTables are provided in PivotTable, Many projects use it as a data analysis report .  In some cases , We need to be in Excel Design a good template in , Including data source tables , Pivot table, etc , When data is imported into the data source table , Automatically update PivotTable ...

  2. JS Medium if and else The usage and basic grammar of

    The normal way of variables .var a = 10; For integers .var b = 3.14; For the decimal point of .var c = " Hello ": Double quotation marks or single quotation marks are used to define strings . One . Type conversion ( Forced transfer ...

  3. Linux Next mongodb Installation and startup of

    install 1> Set up mongoDB Catalog cd /home/apps attach :centOS Under the create directory command   mkdir /home/apps 2> download mongodb curl -O http://fa ...

  4. SQL recursive query

    WITH cte AS ( AS lvl FROM Department UNION all FROM cte c inner join Department d ON c.Pid = d.Id ) ...

  5. PostgreSQL Correction of presentation errors :cannot be cast automatically to type integer

    If you use visualization tools directly to modify a varchar Field is int When it comes to type , There may be a mistake , Here you need to write a statement to modify Adjust the execution statement :ALTER TABLE table_name ALTER COLU ...

  6. JMeter Random variables of configuration elements (RandomVariable) Introduce

    Random variables of configuration elements (Random Variable) Introduce   by: Give the guest  QQ:1033553122 Test environment apache-jmeter-3.2 1.  Introduction to the counter Allows the user to create a thread group within the scope of all ...

  7. pyspider Some pitfalls encountered by startup errors

    https://blog.csdn.net/SiHann/article/details/88239892 Suddenly I got a project about pyspider, There are some small pits , Baidu found that there is no good solution, so research ...

  8. SpringBoot Add pair jsp Support for

    1. stay pom.xml Add the following : <dependency> <groupId>org.apache.tomcat.embed</groupId> <arti ...

  9. 【 turn 】PHP Interview question summary

    PHP Interview summary PHP Basics 1: Variable values and references . 2: Variable type conversion and judging type method . 3:php Operator priority , Generally, it is to write the operation result of the operator . 4:PHP In this paper, we introduce a new method of parameter transfer , Closure , Judge the output of echo,print ...

  10. Codeforces.739E.Gosha is hunting(DP Dichotomy with power )

    Topic link \(Description\) Yes \(n\) It's an elf , Two kinds of ELF balls ( High and low ), Each kind of ball can catch the second \(i\) Only the probability of the elves is known . Seek to use \(A\) A low ball and \(B\) An advanced ball can capture the maximum expected number of elves . ...