How do I add HTML dynamically in C# ASP?
-
Easy question most likely, but I don't know where to get started. I need to build an HTML form dynamically based on the results of an SQL query I am doing so I can submit the form to paypal. They need something in this format (this is from their example site): So I need to be able to insert that HTML onto my ASP page and then recursively add sections like this for each item returned from my SQL query.
-
Easy question most likely, but I don't know where to get started. I need to build an HTML form dynamically based on the results of an SQL query I am doing so I can submit the form to paypal. They need something in this format (this is from their example site): So I need to be able to insert that HTML onto my ASP page and then recursively add sections like this for each item returned from my SQL query.
C# ASP is called ASP.NET. ASP is something else. You can create a page which just has an asp:Literal control, and insert your HTML into that. But, I'm not sure if that helps, because that would generate a page to send to the client, is that what you want, or do you want to post it direct to paypal ?
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )