0

我确定这很明显,但我似乎无法让自动生成的贝宝代码与我的网站一起使用。我没有看到任何调试错误。该按钮在单击时什么也不做。任何帮助,将不胜感激

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<div class="background_subpages"> 
<div id="shirtsBG" class="RoundBorder">
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
        <input type="hidden" name="cmd" value="_xclick">
        <input type="hidden" name="business" value="xxxx@gmail.com">
        <input type="hidden" name="lc" value="US">
        <input type="hidden" name="item_name" value="Green">
        <input type="hidden" name="button_subtype" value="services">
        <input type="hidden" name="no_note" value="0">
        <input type="hidden" name="currency_code" value="USD">
        <input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest">
        <table>
        <tr><td><input type="hidden" name="on0" value="Sizes">Sizes</td></tr><tr><td><select name="os0">
            <option value="Small">Small $11.99 USD</option>
            <option value="Medium">Medium $11.99 USD</option>
            <option value="Large">Large $11.99 USD</option>
        </select> </td></tr>
        </table>
        <input type="hidden" name="currency_code" value="USD">
        <input type="hidden" name="option_select0" value="Small">
        <input type="hidden" name="option_amount0" value="11.99">
        <input type="hidden" name="option_select1" value="Medium">
        <input type="hidden" name="option_amount1" value="11.99">
        <input type="hidden" name="option_select2" value="Large">
        <input type="hidden" name="option_amount2" value="11.99">
        <input type="hidden" name="option_index" value="0">
        <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
        <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
        </form>
</div>

4

1 回答 1

0

这是因为我在表单中使用了表单。我页面加载中的这段代码起到了作用

if (!IsPostBack)
        { }
        else { }
        Form.Action = "https://www.paypal.com/cgi-bin/webscr";
        Form.Method = "post"; 
于 2013-09-01T23:46:35.837 回答