Asp.net 将参数从代码隐藏传递到URL
如何在ASP.NET中将参数传递给此url 我试着那样做,但没有成功。这也没有:Asp.net 将参数从代码隐藏传递到URL,asp.net,paypal,Asp.net,Paypal,如何在ASP.NET中将参数传递给此url 我试着那样做,但没有成功。这也没有: returnURL += "&return=" + ConfigurationManager.AppSettings("SuccessURL").ToString() web配置中的代码: returnURL += String.Format("return={0}&user{1}",Server.UrlEncode(ConfigurationManager.AppSettings("Succes
returnURL += "&return=" + ConfigurationManager.AppSettings("SuccessURL").ToString()
web配置中的代码:
returnURL += String.Format("return={0}&user{1}",Server.UrlEncode(ConfigurationManager.AppSettings("SuccessURL").ToString()),65)
以下是您应该做的事情: 在web.config中:
<add key="SuccessURL" value="http://localhost:58690/Seller/Part1/Main.aspx" />
你说它不起作用是什么意思?你收到错误信息了吗?或者额外的文本只是没有显示在URL中?此外,该代码在哪里调用(在什么情况下)?该代码应该在paypal中为我提供一个url,以便使用此bidid返回到我的网站,但它不提供返回url,但如果我尝试使用该返回url+=“&return=“+ConfigurationManager.AppSettings(“SuccessURL”)。ToString()但我需要传递bid id
<add key="SuccessURL" value="http://localhost:58690/Seller/Part1/Main.aspx?bidid={0}" />
var successUrl = String.Format(ConfigurationManager.AppSettings("SuccessURL").ToString(), 65);
returnURL += "&return=" + successUrl;