EQUIV=REFRESH
文章:META HTTP-EQUIV="REFRESH" 实现网页自动跳转
< 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" ""> <script runat="server"> private string tMerchantPage = ""; protected void Page_Load(object sender, EventArgs e) { //1、取得MSG参数,并利用此参数值生成支付结果对象 com.abc.trustpay.client.ebus.PaymentResult tResult = new com.abc.trustpay.client.ebus.PaymentResult(); tResult.init(Request["MSG"]); //2、判断支付结果状态,进行后续操作 if (tResult.isSuccess()) { //3、支付成功 //tMerchantPage = "?请传入必要的参数" 如下: tMerchantPage = "?OrderNo=" + tResult.getValue("OrderNo"); } else { //4、支付失败 //tMerchantPage = "?请传入必要的参数" 如下: tMerchantPage = "?OrderNo=" + tResult.getValue("OrderNo"); } } </script> <!-- <URL><%= tMerchantPage %></URL> --> <html xmlns="" > <head> <meta http-equiv="refresh" content="0; url=‘<%= tMerchantPage %>‘"> </head> </html>
在农行支付中看到的代码,,之前没见过这种跳转页面的方式。
网页自动跳转 HTTP-EQUIV="REFRESH"
温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/42595.html
- 上一篇:【模板】dijstra最小费用最大流
- 下一篇:1+X证书Web前端开发规范手册