【解決方法】response.redirect true/false の違い

プログラミングQA


の違いは何かについて、誰でも実際に私を導くことができますか Response.RedirectTrue / False、 つまり

C#
Response.Redirect('Default.aspx",True)

V/秒

C#
Response.Redirect('Default.aspx",False)

私が試したこと:

疑いの説明が必要です。

解決策 1

クライアントを新しい URL にリダイレクトします。新しい URL と、現在のページの実行を終了するかどうかを指定します。 詳細については、Google で検索してください。

解決策 2

解決策 3

SQL
Response.Redirect(Default.aspx,True)     V/s    Response.Redirect(Default.aspx,False)></b>



If you are processing page &quot;A&quot; an then you issue a redirect

    Response.Redirect(&#39;Default.aspx&quot;,True)

The client will be sent the redirect for the new page and Page &quot;A&quot; will immediately stop processing as a thread abort will occur.  This is the default behavior of a redirect.

If you issued the redirect as

    Response.Redirect(&#39;Default.aspx&quot;,False)

Then the client will be sent the redirect for the new page, but Page &quot;A&quot; will be allowed to continue processing.  Perhaps page &quot;A&quot; has cleanup work to do or something.  The client will never see the results from page &quot;A&quot; as they were redirected.</pre>

コメント

タイトルとURLをコピーしました