2016-03-04 51 views
0

被稱爲這裏的情景: enter image description here頁面上回發單由另一頁

我的源頁面需要調用的目標頁面,檢查它是否存在。它有時可以是應用程序中的任何頁面或外部的某個頁面。現在,在它調用應用程序中的一個頁面的情況下,在目標頁面上執行回發兩次可能會由於其處理而導致一些性能問題(由於GET方法,我理解這一點)。

從源頁面調用目標頁面時是否有一個回發方法?

回答

0

你能請嘗試以下,

<form method="post" action="YourPage.aspx"> 
    <h1>Page passing tests</h1> 
    <p>Please enter some data in the field below and click send</p> 
    <input type="text" id="txt1" name="txt1" placeholder="enter text here" /> 
    <button type="submit" id="btnSend">Send</button> 
</form> 
+0

這是在目標頁面或源頁? – Musikero31

+0

目標頁面。在源頁面中,您需要像這樣放置代碼。 –

相關問題