Click here to Skip to main content
15,921,941 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
function addRow(tableID) {

var table = document.getElementById(tableID);

			var rowCount = table.rows.length;
			
			if(rowCount<5)
			{
			var row = table.insertRow(2);

			var cell1 = row.insertCell(0);
            cell1.innerHTML = "  Name :";

			var cell2 = row.insertCell(1);
			var element1 = document.createElement("input");
			element1.type = "text";
			cell2.appendChild(element1);

			var cell3 = row.insertCell(2);
            cell3.innerHTML = "  Amount :";
            
            var cell4 = row.insertCell(3);
			var element2 = document.createElement("input");
			element2.type = "text";
			cell4.appendChild(element2);
			}


1.I just want to get values from element1 and element2.
for saving these values in database.....
2.How to make these client site control to server site control

Please help me out..in this

Thanx.
Posted
Updated 27-Aug-11 20:55pm
v3
Comments
[no name] 29-Aug-11 7:36am    
Thanx dear but i wants to make it server site for updating data in server. please somebody help me in this..

1 solution

Recommended solution would be LInQ to XML, which provides an in-memory XML programming interface that leverages the .NET Language-Integrated Query (LINQ) Framework. It resolves the problem rapidly.

A quick example is available at http://www.techrepublic.com/blog/programming-and-development/access-xml-data-using-linq-to-xml/594[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900