Article: META HTTP-EQUIV = "REFRESH" to achieve page automatically jump
< META HTTP-EQUIV="REFRESH" CONTENT="x; URL=*.*">
<meta http-equiv="refresh" content="0; url='<%= tMerchantPage %>'">
<%@ Page Language="C#" Debug="true" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> private string tMerchantPage = ""; protected void Page_Load(object sender, EventArgs e) { // 1 acquires parameters MSG, and use this parameter generates a payment result objects com.abc.trustpay.client.ebus.PaymentResult TResult = new new com.abc.trustpay.client.ebus.PaymentResult (); tResult.init(Request["MSG"]); // 2, the state determination result of payment, subsequent operations IF (tResult.isSuccess ()) { // 3, successful payment // tMerchantPage = " http://172.30.7.117/demo/CustomerPage.aspx? Please pass the necessary parameters" as follows: tMerchantPage = " http://172.30.7.117/demo/CustomerPage.aspx ? OrderNo = " + tResult.getValue ( " OrderNo " ); } else { // 4, payment fails // tMerchantPage = " http://172.30.7.117/demo/MerchantFailure.aspx? Please pass the necessary parameters" as follows: tMerchantPage = " http://172.30.7.117/demo/MerchantFailure.aspx ? OrderNo = " + tResult.getValue ( " OrderNo " ); } } </script> <!-- <URL><%= tMerchantPage %></URL> --> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <meta http-equiv="refresh" content="0; url='<%= tMerchantPage %>'"> </head> </html>
ABC paid seen in the code, never seen before in this way the jump page.