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. Convert html contols to asp.net controls programatically

Convert html contols to asp.net controls programatically

Scheduled Pinned Locked Moved ASP.NET
csharphtmlasp-netdesignsysadmin
4 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
    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 <input type="text" value="hello" /> tag in my html page, i want this to be converted as an asp.net control programatically <asp:textbox id="TextBox1" runat="server" /> I want for all the html controls to be converted into asp.net controls. Is there any tool available for this. Thanx in Advance

    Y 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 <input type="text" value="hello" /> tag in my html page, i want this to be converted as an asp.net control programatically <asp:textbox id="TextBox1" runat="server" /> I want for all the html controls to be converted into asp.net controls. Is there any tool available for this. Thanx in Advance

      Y Offline
      Y Offline
      Yusuf
      wrote on last edited by
      #2

      Imran. Mohammed wrote:

      Is there any tool available for this.

      nope there is no such tool. Sorry, you're on your own. You could add runtat=server to the HTML control, but they will still be html control that run on the server.

      Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

      I 1 Reply Last reply
      0
      • Y Yusuf

        Imran. Mohammed wrote:

        Is there any tool available for this.

        nope there is no such tool. Sorry, you're on your own. You could add runtat=server to the HTML control, but they will still be html control that run on the server.

        Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

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

        I know runat=server attribute. What i want is: Is there any way to change the html controls to asp.net controls programatically.

        Y 1 Reply Last reply
        0
        • I immu5

          I know runat=server attribute. What i want is: Is there any way to change the html controls to asp.net controls programatically.

          Y Offline
          Y Offline
          Yusuf
          wrote on last edited by
          #4

          no, unless you write a code to handle all possible cases

          Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

          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