如何从HTML表格中的运行时生成的Shell中保存值 [英] How to save value from run time generated shells in html table

查看:79
本文介绍了如何从HTML表格中的运行时生成的Shell中保存值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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.我只想从element1和element2获取值.
用于将这些值保存在数据库中.....
2.如何使这些客户端站点控制变为服务器站点控制

请帮帮我..在这个

Thanx.



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.

推荐答案

推荐的解决方案是LInQ to XML,它提供了一个内存中XML编程接口,该接口利用了.NET语言集成的查询(LINQ)框架.它可以迅速解决问题.

http://上可以找到一个快速的示例. www.techrepublic.com/blog/programming-and-development/access-xml-data-using-linq-to-xml/594 [
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[^]


这篇关于如何从HTML表格中的运行时生成的Shell中保存值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆