js动态生成的表单如何提交到数据库

js动态生成的表单怎么提交到数据库
如题在后台用了hidden和cookies都获取不到前面的值


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm3.aspx.cs" Inherits="ContractSystem.WebUI.WebForm3" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <script src="js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript">
        var $ = function (id) {
            return document.getElementById(id);
        }

        //全选
        function checkAll(target) {
            var checkeds = document.getElementsByName("b_id");
            for (var i = 0; i < checkeds.length; i++) {
                checkeds[i].checked = target.checked;
            }
        }
        function checkAll1(target) {
            var checkeds = document.getElementsByName("b_id1");
            for (var i = 0; i < checkeds.length; i++) {
                checkeds[i].checked = target.checked;
            }
        }
        //刷新行号
        function refreshRowNo() {
            var tbody = $("tbody");
            for (var i = 0; i < tbody.rows.length; i++) {
                tbody.rows[i].cells[0].innerHTML = i + 1;
            }
        }
        function refreshRowNo1() {
            var tbody = $("tbody1");
            for (var i = 0; i < tbody.rows.length; i++) {
                tbody.rows[i].cells[0].innerHTML = i + 1;
            }
        }
        //添加行
        function AddRow() {
            var tbody = $("tbody");
            var row = tbody.insertRow(tbody.rows.length);
            row.insertCell(row.cells.length);
            row.insertCell(row.cells.length).innerHTML = '<input type="checkbox" name="b_id" style="text-align: center"/>';
            row.insertCell(row.cells.length).innerHTML = '<textarea style="height: 99px; width: 86px" name="name" />';
            row.insertCell(row.cells.length).innerHTML = '<textarea style="height: 99px; width: 350px" name="number" />';
            row.insertCell(row.cells.length).innerHTML = '<textarea style="height: 99px; width: 350px" name="price" />';
            row.insertCell(row.cells.length).innerHTML = '<textarea style="height: 99px; width: 180px" name="sum" />';
            row.insertCell(row.cells.length).innerHTML = '<textarea style="height: 99px; width: 180px" name="beizhu" />';
            refreshRowNo();
        }


        function AddRow1() {
            var tbody = $("tbody1");
            var row = tbody.insertRow(tbody.rows.length);