1: All controls that implement the IButtonControl interface can transmit pages:
For example: Button, LinkButton or ImageButton
are set as follows: <asp:Button
ID="Button1"
PostBackUrl="~/TargetPage.aspx" //Target page
runat="server"
Text="Submit" />
On the target page, you can use: this.PreviousPage.FindControl("TextBox1") method to obtain the source page.
Second: Call the Transfer method to transfer execution from the source page to the target page on the server.
I feel that this method is more efficient than the first method For some, the source page is no longer initialized when using this.PreviousPage, but the first one still needs to be initialized once.