Solved

Add rows to a datagrid using data from clientside

Posted on 2003-11-10
2
1,372 Views
Last Modified: 2007-12-19
ASP.NET
I have a datagrid on a page. And I'm using client side Javascript to add more rows to the table rendered in the HTML. The problem is when i submit the page and go back and count the rows in the page the newly added rows are not being considered in the datagrid. The itemcount does not change

I'm using cloneNode to create the additional rows and i am changing the id of the new rows in the format that is used by the asp (sumthing like asdfl10__adfdafl23_adfsf34... and similarly the name). Is there any way i can directly load the html table into the datagrid/datatable

I don't know much about asp (knowledge -> 0 :().
Currently im giving the same id for all the rows and hence get a , delimited value which i have to seperate on the server and use. It would be nice if i got sumthing using which i could just add rows on the clientside using javascript and have the same rows added to the datagrid.

thanx in advance.
:)
Don

ps. i guess the codebehind is c# though im not sure
0
Comment
Question by:a_twixt_in_the_tale
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
thomasdodds earned 150 total points
ID: 9734607
i suggest putting the data into a serverside hidden field

1- using the DataGrid.Items.Add() to add to the grid

or

2- if you want the data to go into the databaseand the datagrid, then add the rows to the dataset and run the adapter.update() then call the datagrid.databind()
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 10256709
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: thomasdodds {http:#9734607}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheLearnedOne
EE Cleanup Volunteer
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question