能获取用户信息,在点击立即购买时就跳到微信的服务器上了,点击事件的代码如下protected void Button1_Click(object sender, EventArgs e)
{
string total_fee = "1";
if(ViewState["openid"] != null)
{
string openid = ViewState["openid"].ToString();
string url = "http://www.weyishow.com/example/JsApiPayPage.aspx?openid=" + openid + "&total_fee=" + total_fee;
Response.Redirect(url);
}
else
{
Response.Write("" + "页面缺少参数,请返回重试" + "");
Button1.Visible = false;
Button2.Visible = false;
Label1.Visible = false;
Label2.Visible = false;
}
}
大家有遇到过这种问题吗,求解啊