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. Conversion of html page to aspx page

Conversion of html page to aspx page

Scheduled Pinned Locked Moved ASP.NET
csharphtmlasp-netdesign
7 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.
  • I Offline
    I Offline
    immu5
    wrote on last edited by
    #1

    Hello All, I have got a web design template in .HTML format. I want to parse the html file and convert that into .Aspx format programatically and then add to my ASP.Net project and start coding that. for e.g. if i have tag in my html page, i want this to be converted as an asp.net control programatically I want for all the html controls to be converted into asp.net controls. Is there any tool available for this. Thanx in Advance

    C D 2 Replies Last reply
    0
    • I immu5

      Hello All, I have got a web design template in .HTML format. I want to parse the html file and convert that into .Aspx format programatically and then add to my ASP.Net project and start coding that. for e.g. if i have tag in my html page, i want this to be converted as an asp.net control programatically I want for all the html controls to be converted into asp.net controls. Is there any tool available for this. Thanx in Advance

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

      No, there is not.

      Christian Graus Driven to the arms of OSX by Vista.

      I 1 Reply Last reply
      0
      • I immu5

        Hello All, I have got a web design template in .HTML format. I want to parse the html file and convert that into .Aspx format programatically and then add to my ASP.Net project and start coding that. for e.g. if i have tag in my html page, i want this to be converted as an asp.net control programatically I want for all the html controls to be converted into asp.net controls. Is there any tool available for this. Thanx in Advance

        D Offline
        D Offline
        David Mujica
        wrote on last edited by
        #3

        REGEX is a regular expression tool that can perform string substitutions, which is basically what you are looking for. It might take a couple of passes through an HTML document in order to get the conversion done, but it should help.

        I 1 Reply Last reply
        0
        • D David Mujica

          REGEX is a regular expression tool that can perform string substitutions, which is basically what you are looking for. It might take a couple of passes through an HTML document in order to get the conversion done, but it should help.

          I Offline
          I Offline
          immu5
          wrote on last edited by
          #4

          Can you provide me some sort of example?

          1 Reply Last reply
          0
          • C Christian Graus

            No, there is not.

            Christian Graus Driven to the arms of OSX by Vista.

            I Offline
            I Offline
            immu5
            wrote on last edited by
            #5

            Is there any other way to do it, if tool is not available? Give me some sample example. Thanks in advance

            C 1 Reply Last reply
            0
            • I immu5

              Is there any other way to do it, if tool is not available? Give me some sample example. Thanks in advance

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

              Imran. Mohammed wrote:

              Is there any other way to do it

              Yes, it's called typing. As someone else said, you could use regex, or even just plain old search and replace in the IDE. If you don't know how to do these things, I'm left wondering what you hope to do with this page after you convert it to ASP.NET. You can actually just specify runat="server" and an id, and use the input tags, etc, as server controls, although using full ASP.NET controls is probably better, if all you need to do is access their values, that will work.

              Christian Graus Driven to the arms of OSX by Vista.

              I 1 Reply Last reply
              0
              • C Christian Graus

                Imran. Mohammed wrote:

                Is there any other way to do it

                Yes, it's called typing. As someone else said, you could use regex, or even just plain old search and replace in the IDE. If you don't know how to do these things, I'm left wondering what you hope to do with this page after you convert it to ASP.NET. You can actually just specify runat="server" and an id, and use the input tags, etc, as server controls, although using full ASP.NET controls is probably better, if all you need to do is access their values, that will work.

                Christian Graus Driven to the arms of OSX by Vista.

                I Offline
                I Offline
                immu5
                wrote on last edited by
                #7

                I know copy & paste thing and add runat="server" attribute. Apart from usual things, Can we change html controls to asp.net controls programatically. If you know, please provide me some code. Thanks

                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