繁体   English   中英

贝宝沙盒URL打开我的文档

[英]Paypal sandbox url opens my documents

当我单击应该重定向到贝宝的按钮时,我一直遇到问题,它打开了我的文档。 它在运行之前,但是当我将代码传输到另一台PC时,发生了错误。 救命!

这是aspx.cs中的代码

受保护的无效btnPayOnline_Click(对象发送者,EventArgs e){

        string url = "";

        string business = "business@yahoo.com";
        string description = "Buy";
        string country = "PH";
        string currency = "PHP";
        string amount = Label1.Text;

        url += "https://www.sandbox.paypal.com/cgi-bin/webscr" +
            "?cmd=" + "_xclick" +
            "&business=" + business +
            "&amount=" + amount +
            "&lc=" + country +
            "&item_name=" + description +
            "&currency_code=" + currency +
            "&bn=" + "PP%2dBuyNowBF";

        System.Diagnostics.Process.Start("explorer.exe", url);

}

这是aspx代码:

我真的看不出问题是什么

您的程序将启动文件夹资源管理器(从而显示默认的本地目录),而不是Web浏览器。

iexplore.exe替换explorer.exe应该可以解决您的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM