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. Saving New row ( added in client side)

Saving New row ( added in client side)

Scheduled Pinned Locked Moved ASP.NET
javascripthtmldatabasesysadminquestion
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.
  • T Offline
    T Offline
    Tirthadip
    wrote on last edited by
    #1

    Hi, I have a HTML tabe.I am populating it in Page_Load with some existing record.In client side I am adding some new rows to this table through Javascript.But while I am trying to insert the new record to database, server shows no clue to detect the newly added rows. How can I make the server sense the new rows and insert the record to database. If possible give me the code. Tirthadip

    I G 2 Replies Last reply
    0
    • T Tirthadip

      Hi, I have a HTML tabe.I am populating it in Page_Load with some existing record.In client side I am adding some new rows to this table through Javascript.But while I am trying to insert the new record to database, server shows no clue to detect the newly added rows. How can I make the server sense the new rows and insert the record to database. If possible give me the code. Tirthadip

      I Offline
      I Offline
      Ista
      wrote on last edited by
      #2

      you need to use the datagrid instead 1 line of code equals many bugs. So don't write any!!

      1 Reply Last reply
      0
      • T Tirthadip

        Hi, I have a HTML tabe.I am populating it in Page_Load with some existing record.In client side I am adding some new rows to this table through Javascript.But while I am trying to insert the new record to database, server shows no clue to detect the newly added rows. How can I make the server sense the new rows and insert the record to database. If possible give me the code. Tirthadip

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        Tirthadip wrote:

        server shows no clue to detect the newly added rows.

        That is because the server has no clue what so ever that you have done something to the html code in the browser. The only thing that is posted back to the server is the contents of the form fields, nothing else. If you wan't the changes to be available on the server, you have to send the information as form data. You can use hidden fields for this. --- b { font-weight: normal; }

        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