我正在创建一个网站,其中我添加了一个贝宝按钮。我想在付款成功后,在同一页。所以我希望支付处理应该在新的tab.My写的代码如下:
protected void Button7_Click(object sender, EventArgs e)
{
string business = "rajpadwa@gmail.com";
string itemName = "Funds";
int itemAmount = Int32.Parse(DropDownList1.SelectedItem.Value);
string currencyCode = "USD";
StringBuilder ppHref = new StringBuilder();
ppHref.Append("https://www.paypal.com/cgi-bin/webscr?cmd=_xclick");
ppHref.Append("&business=" + business);
ppHref.Append("&item_name=" + itemName);
ppHref.Append("&amount=" + itemAmount.ToString("#.00"));
ppHref.Append("¤cy_code=" + currencyCode);
Response.Redirect(ppHref.ToString(), true);
}请告诉我在使用Response.Redirect() Method...时如何在新标签中进行paypal交易
发布于 2014-04-14 18:40:04
尝试使用如下所示的客户端代码
string newScript = "<script language='javascript'>window.open('" + ppHref.ToString() + "', '_blank');</script>";
Page.ClientScript.RegisterClientScriptBlock(this.GetType, "NewWindow", newScript);https://stackoverflow.com/questions/23057763
复制相似问题