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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Add new row to a Datalist

Add new row to a Datalist

Scheduled Pinned Locked Moved ASP.NET
help
3 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.
  • S Offline
    S Offline
    sameercodes
    wrote on last edited by
    #1

    My datalist has two textboxes, one dropdown and one checkbox. There is also a button "Add" on the page. Every time the "Add" button is clicked, a new row should be added to the datalist, with all the controls on the row. Kindly help. Thanks in advance, for the solution. :)

    R A 2 Replies Last reply
    0
    • S sameercodes

      My datalist has two textboxes, one dropdown and one checkbox. There is also a button "Add" on the page. Every time the "Add" button is clicked, a new row should be added to the datalist, with all the controls on the row. Kindly help. Thanks in advance, for the solution. :)

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

      You have to use templates. One of the templates is named new item or something like that.

      1 Reply Last reply
      0
      • S sameercodes

        My datalist has two textboxes, one dropdown and one checkbox. There is also a button "Add" on the page. Every time the "Add" button is clicked, a new row should be added to the datalist, with all the controls on the row. Kindly help. Thanks in advance, for the solution. :)

        A Offline
        A Offline
        AlexeiXX3
        wrote on last edited by
        #3

        Is your datalist bound to a list? if so, just add an item to the list and rebind, it should add a new item to the datalist

        Alexei Rodriguez

        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