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. When to use HTML or ASP.Net Control ?

When to use HTML or ASP.Net Control ?

Scheduled Pinned Locked Moved ASP.NET
csharphtmlasp-netdesignquestion
4 Posts 4 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.
  • B Offline
    B Offline
    Binod K
    wrote on last edited by
    #1

    Hi Fore creating a UI on a Tool Box HTML as well ASP.Net control is given.Me confuse when to use which and why ? Thanks Binod

    S B D 3 Replies Last reply
    0
    • B Binod K

      Hi Fore creating a UI on a Tool Box HTML as well ASP.Net control is given.Me confuse when to use which and why ? Thanks Binod

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      Both have their own signicficance if you want to do Client side coding then its better to use html controls else at the server side you should have control which could render at server side so use asp control or html control with run at server

      1 Reply Last reply
      0
      • B Binod K

        Hi Fore creating a UI on a Tool Box HTML as well ASP.Net control is given.Me confuse when to use which and why ? Thanks Binod

        B Offline
        B Offline
        badgrs
        wrote on last edited by
        #3

        Using the HTML controls will give you more control over the resulting markup but certain options (such as manipulating a drop down list) are only available on the ASP.NET controls.

        1 Reply Last reply
        0
        • B Binod K

          Hi Fore creating a UI on a Tool Box HTML as well ASP.Net control is given.Me confuse when to use which and why ? Thanks Binod

          D Offline
          D Offline
          DavidNohejl
          wrote on last edited by
          #4

          ASP.NET controls - classes from System.Web.UI.WebControls namespace - are meant as abstraction for controls that goes beyond simple HTML. Web controls are typically compound of lot of javascript, HTML and server-side logic. You use HTML controls - from namespace System.Web.UI.HtmlControls when you don't need that abstraction, when you just need to control HTML elements from server-side.


          "Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus

          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