生成URL链接
1
using System;
2
using System.Data;
3
using System.Configuration;
4
using System.Collections;
5
using System.Web;
6
using System.Web.Security;
7
using System.Web.UI;
8
using System.Web.UI.WebControls;
9
using System.Web.UI.WebControls.WebParts;
10
using System.Web.UI.HtmlControls;
11
using System.Text;
12
13
public partial class pay : System.Web.UI.Page
14
2
3
4
5
6
7
8
9
10
11
12
13
14
接收支付宝信息并进行相应操作
1
<%@ Import NameSpace="System.Data.SqlClient"%>
2
<%@ Import NameSpace="System.Data"%>
3
<%@ Import NameSpace="System.Web"%>
4
<%@ Import NameSpace="System.IO"%>
5
<%@ Import NameSpace="System.Net"%>
6
<%@ Import NameSpace="System.Text"%>
7
<%@ Import NameSpace="System.Security.Cryptography"%>
8
<%@ Page Language="C#"%>
9
10
<script language="C#" runat="server">
11
private string returnTxt = "N"; //返回给支付宝通知接口的结果
12
private string alipayNotifyURL = "http://notify.alipay.com/trade/notify_query.do?"; //支付宝查询接口URL
13
private string myalipayEmail = "341081@qq.com"; //商户的支付宝Email
14
private string constPaySecurityCode = ""; //码
15
private SqlConnection conn = new SqlConnection();
16
17
private string GetMD5(string s)
18
</script>
118
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
118