too many forms, what should I do?

Discussion in 'ASP .Net' started by Jeff, Jun 24, 2009.

  1. Jeff

    Jeff Guest

    Hi

    I created an Subscribe button on the PayPal website. This button I want to
    use on my website so that people must pay to see hidden content. On the
    PayPal site I got this markup:

    <form action="<URL>" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="xxx">
    <input type="image" src="yyybtn_subscribeCC_LG.gif" border="0" name="submit"
    alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="uuuu/pixel.gif" width="1" height="1">
    </form>

    This won't work in asp.net because it already contain a form. So I'm looking
    for an workaround here... any suggestions?
    Like this on:
    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="xxxx"
    PostBackUrl="<URL>" />
    but this workaround fails, it doesn't contain the information in the hidden
    fields above...

    any suggestions?
     
    Jeff, Jun 24, 2009
    #1
    1. Advertising

  2. On Jun 24, 8:28 pm, "Jeff" <> wrote:
    > Hi
    >
    > I created an Subscribe button on the PayPal website. This button I want to
    > use on my website so that people must pay to see hidden content. On the
    > PayPal site I got this markup:
    >
    > <form action="<URL>" method="post">
    > <input type="hidden" name="cmd" value="_s-xclick">
    > <input type="hidden" name="hosted_button_id" value="xxx">
    > <input type="image" src="yyybtn_subscribeCC_LG.gif" border="0" name="submit"
    > alt="PayPal - The safer, easier way to pay online!">
    > <img alt="" border="0" src="uuuu/pixel.gif" width="1" height="1">
    > </form>
    >
    > This won't work in asp.net because it already contain a form. So I'm looking
    > for an workaround here... any suggestions?
    > Like this on:
    > <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="xxxx"
    > PostBackUrl="<URL>" />
    > but this workaround fails, it doesn't contain the information in the hidden
    > fields above...
    >
    > any suggestions?


    Do you need "ASP.NET form" there?

    Regarding PayPal link: you can use a "Buy Now Email Payment Link",
    e.g.

    https://www.paypal.com/cgibin/
    webscr?cmd=_xclick&business=&item_name=Hot
    Sauce-12+oz.+Bottle&item_number=12345&amount=5%2e95&currency_code=USD

    read more at https://www.paypal.com/en_US/ebook/PP_NVPAPI_DeveloperGuide/Appx_SDKDotNET.html
     
    Alexey Smirnov, Jun 24, 2009
    #2
    1. Advertising

  3. http://www.google.com/search?hl=en&q=paypal asp.net integration&aq=0&oq=paypal "asp.net&aqi=g10




    Juan T. Llibre, asp.net MVP
    ¿ Estas probando VS 2010 y ASP.NET 4.0 ?
    Regístrate (gratis) en los Foros de VS 2010 y ASP.NET 4.0, en español
    http://asp.net.do/foros/forums/
    =====================================================
    "Jeff" <> wrote in message news:...
    > Hi
    >
    > I created an Subscribe button on the PayPal website. This button I want to use on my website so that people must pay
    > to see hidden content. On the PayPal site I got this markup:
    >
    > <form action="<URL>" method="post">
    > <input type="hidden" name="cmd" value="_s-xclick">
    > <input type="hidden" name="hosted_button_id" value="xxx">
    > <input type="image" src="yyybtn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to
    > pay online!">
    > <img alt="" border="0" src="uuuu/pixel.gif" width="1" height="1">
    > </form>
    >
    > This won't work in asp.net because it already contain a form. So I'm looking for an workaround here... any
    > suggestions?
    > Like this on:
    > <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="xxxx" PostBackUrl="<URL>" />
    > but this workaround fails, it doesn't contain the information in the hidden fields above...
    >
    > any suggestions?
    >
     
    Juan T. Llibre, Jun 24, 2009
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. peelman

    How many threads is too many?

    peelman, Jan 13, 2005, in forum: Java
    Replies:
    12
    Views:
    842
    Esmond Pitt
    Jan 15, 2005
  2. Rhino
    Replies:
    33
    Views:
    1,315
    Oliver Wong
    Dec 22, 2005
  3. rbt
    Replies:
    1
    Views:
    356
  4. How many roles is too many?

    , Jun 13, 2006, in forum: ASP .Net Security
    Replies:
    4
    Views:
    195
    Joe Kaplan \(MVP - ADSI\)
    Jun 18, 2006
  5. Dag Sunde
    Replies:
    4
    Views:
    361
Loading...

Share This Page