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. dynamic controls in asp.net

dynamic controls in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
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.
  • R Offline
    R Offline
    rameshdontagani
    wrote on last edited by
    #1

    in a table .. i need like this first row with one textbox and save button second row is with one button named "addnew"....if click on this button first has to be generated again means (a row with textbox and a button named save") how can i do this in asp.net

    S 1 Reply Last reply
    0
    • R rameshdontagani

      in a table .. i need like this first row with one textbox and save button second row is with one button named "addnew"....if click on this button first has to be generated again means (a row with textbox and a button named save") how can i do this in asp.net

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

      Hey you posted same question yesterday didn't you get answer still?

      Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

      R 1 Reply Last reply
      0
      • S Sandeep Akhare

        Hey you posted same question yesterday didn't you get answer still?

        Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

        R Offline
        R Offline
        rameshdontagani
        wrote on last edited by
        #3

        ya............i did not get the answer till now

        M 1 Reply Last reply
        0
        • R rameshdontagani

          ya............i did not get the answer till now

          M Offline
          M Offline
          mareers
          wrote on last edited by
          #4

          use javascript...

          --Sreeram

          R 1 Reply Last reply
          0
          • M mareers

            use javascript...

            --Sreeram

            R Offline
            R Offline
            rameshdontagani
            wrote on last edited by
            #5

            can u send me the code plz........ramesh

            S 1 Reply Last reply
            0
            • R rameshdontagani

              can u send me the code plz........ramesh

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

              Thats simple first thing is that put all controls in page initially by making them hidden then on add new row button call a javscript that will show those controls . Now don't ask for the javascript first try your self 1. Google how to hide the controls. Hint(hide the TR in which your controls are present by making its style.display='none') 2. now write a javscript function that will show this controls 3. Register that javascript in Page load by simply adding (AddNewButtonId.Attributes.Add("OnClick","javascript:FunctionNameWrittentoShowControls();"));

              Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

              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