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. HTML Control in asp.net, C#

HTML Control in asp.net, C#

Scheduled Pinned Locked Moved ASP.NET
csharphtmlasp-netdatabase
6 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.
  • A Offline
    A Offline
    Abbas_here
    wrote on last edited by
    #1

    Hi friends, I am trying to use a form with html control in asp.net2.0 and c#, how can we use those control (html control) in our c# code for inserting records in database... Please suggest me... Thanks, Abbas

    R P A 3 Replies Last reply
    0
    • A Abbas_here

      Hi friends, I am trying to use a form with html control in asp.net2.0 and c#, how can we use those control (html control) in our c# code for inserting records in database... Please suggest me... Thanks, Abbas

      R Offline
      R Offline
      rakeshs312
      wrote on last edited by
      #2

      use runat="server" for controls

      modified on Wednesday, January 20, 2010 2:14 AM

      A 1 Reply Last reply
      0
      • A Abbas_here

        Hi friends, I am trying to use a form with html control in asp.net2.0 and c#, how can we use those control (html control) in our c# code for inserting records in database... Please suggest me... Thanks, Abbas

        P Offline
        P Offline
        Pranay Rana
        wrote on last edited by
        #3

        put runat = "server" tag in your form element and also in all element whose values you are going to fetch

        A 1 Reply Last reply
        0
        • P Pranay Rana

          put runat = "server" tag in your form element and also in all element whose values you are going to fetch

          A Offline
          A Offline
          Abbas_here
          wrote on last edited by
          #4

          thanks.... it's working now with txt.value

          1 Reply Last reply
          0
          • R rakeshs312

            use runat="server" for controls

            modified on Wednesday, January 20, 2010 2:14 AM

            A Offline
            A Offline
            Abbas_here
            wrote on last edited by
            #5

            thanks.

            1 Reply Last reply
            0
            • A Abbas_here

              Hi friends, I am trying to use a form with html control in asp.net2.0 and c#, how can we use those control (html control) in our c# code for inserting records in database... Please suggest me... Thanks, Abbas

              A Offline
              A Offline
              Arjun Sridhar
              wrote on last edited by
              #6

              Add this attribute to html controls. runat="server". also you get posted values in server using request.form['controlname']

              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