Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How do I add HTML dynamically in C# ASP?

How do I add HTML dynamically in C# ASP?

Scheduled Pinned Locked Moved ASP.NET
questiondatabasecsharphtmltutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    InvalidTypecast
    wrote on last edited by
    #1

    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. Alternately, if anyone knows of an easier way to submit a shopping cart to paypal from an ASP page I'd love to hear it. Thanks

    C 1 Reply Last reply
    0
    • I InvalidTypecast

      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. Alternately, if anyone knows of an easier way to submit a shopping cart to paypal from an ASP page I'd love to hear it. Thanks

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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 )

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups