I am new to programming but attempting to learn. Im running visual studio 2010 with an asp.net webform project using C#. I am trying to implement paypals buy now buttons on one of the pages and the code that is generated is in form tags also. No matter which button it is, the first button on the page never works and there is a solid blue line underneath it. All the other buttons work fine. even if i remove it, the next button becomes the first on the page and then it too doesnt work….i am learning that since all the pages are forms and the code generated is also a form, i cannot have a form inside a form. Is this correct?
Is there any way around this…all i really know is a lil HTML and a lil CSS, i am trying to learn JavaScript, C#, XML, CSS, ASP.NET, as well as Visual Studio itself. Any help would be greatly appreciated. If anyone wants to see what im talking about go to http://www.curbappealfordummies.net/Packages.aspx That is the site im working on and webmaster of…Thank you guys for your help.
I am new to programming but attempting to learn. Im running visual studio 2010
Share
This is a wide-reaching question, but one possible answer is to generate a second form which has the needed PayPal code in it.
This is a simplified example; usually there is logic needed to lead up to this point. For example, if the buttons need to be contained within the ASP.Net default form, there will need to be server and/or client code to connect them to this second form and to make sure that it contains the correct hidden values.
In Your WebForm
In Your CodeBehind
If the logic is complex, the second block of code should really be contained in a helper class.
Hope this puts someone on the right path.