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. General Programming
  3. C#
  4. how to make HTML Page

how to make HTML Page

Scheduled Pinned Locked Moved C#
htmltutorial
6 Posts 3 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.
  • J Offline
    J Offline
    Jintal Patel
    wrote on last edited by
    #1

    hi i want to make HTML page.like on button click i have write all code for HTML Page.on click i want that .html page will be display

    Jintal Patel

    C 1 Reply Last reply
    0
    • J Jintal Patel

      hi i want to make HTML page.like on button click i have write all code for HTML Page.on click i want that .html page will be display

      Jintal Patel

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

      You're asking this in the C# forum because.... ? Try explaining it better. What sort of page ? What sort of button do you mean, in the web page ? Sounds like you need to read a beginner ASP.NET article, to me.

      Christian Graus - Microsoft MVP - C++ "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 )

      J 1 Reply Last reply
      0
      • C Christian Graus

        You're asking this in the C# forum because.... ? Try explaining it better. What sort of page ? What sort of button do you mean, in the web page ? Sounds like you need to read a beginner ASP.NET article, to me.

        Christian Graus - Microsoft MVP - C++ "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 )

        J Offline
        J Offline
        Jintal Patel
        wrote on last edited by
        #3

        hi IN My application i m display all the listing of products in my datalist control .Each Product Have Linkbutton for Description.now on that link button click event i want to display discription and image of product in new page .which is Productname.html page....

        Jintal Patel

        M 1 Reply Last reply
        0
        • J Jintal Patel

          hi IN My application i m display all the listing of products in my datalist control .Each Product Have Linkbutton for Description.now on that link button click event i want to display discription and image of product in new page .which is Productname.html page....

          Jintal Patel

          M Offline
          M Offline
          Malcolm Smart
          wrote on last edited by
          #4

          You would link the button's OnClick event to redirect to a new 'product.aspx' page, passing the product ID to the page. The 'product.aspx' page, would query the database and populate the page with the products data dynamically. You don't want to physically create a new HTML page for each product.

          "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

          "This time yesterday, I still had 24 hours to meet the deadline I've just missed today."

          J 1 Reply Last reply
          0
          • M Malcolm Smart

            You would link the button's OnClick event to redirect to a new 'product.aspx' page, passing the product ID to the page. The 'product.aspx' page, would query the database and populate the page with the products data dynamically. You don't want to physically create a new HTML page for each product.

            "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

            "This time yesterday, I still had 24 hours to meet the deadline I've just missed today."

            J Offline
            J Offline
            Jintal Patel
            wrote on last edited by
            #5

            ya.i have allready made this product.aspx page for each product passing productID but I want to create HTML page for Each Product Dynamically.

            Jintal Patel

            M 1 Reply Last reply
            0
            • J Jintal Patel

              ya.i have allready made this product.aspx page for each product passing productID but I want to create HTML page for Each Product Dynamically.

              Jintal Patel

              M Offline
              M Offline
              Malcolm Smart
              wrote on last edited by
              #6

              Use a Textwriter/HtmlWriter and write the raw HTML out for each page you want to create. Where will you store these files? If you want to store them in the web directory you might hit permission issues. What happens if two users hit the same product at the same time? Which one will do the writing? You will have to handle concurrency issues on the file.

              "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

              "This time yesterday, I still had 24 hours to meet the deadline I've just missed today."

              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