var i=1;
function addFile()
{
    if (i<16)
    {
        var str = '<BR> <input type="file" name="File" runat="server" style="width: 200px"/>描述:<input name="text" type="text" style="width: 150px" maxlength="20" />';
        document.getElementById('MyFile').insertAdjacentHTML("beforeEnd",str);
    }
    else
    {
          }
    i++;

解决方案 »

  1.   

    Request.Params.GetValues("text")自动把所有name为text的值转换成数组
    用个数组接收一下
    然后按照数组的长度循环一下
    你这个是个批量的上传吧
      

  2.   

    可以在前台用JavaScript把选取的值赋给Html的一个隐藏控件,后台就可以取到选择的值了。 
      

  3.   

    可以在前台用JavaScript把值赋给Html的一个隐藏控件,后台就可以取到值了。
      

  4.   

    如果你是Post过去的,那么用Requst.Form
    如果你是get过去的,那么用Requst.QueryString
    如果你没发送这个信息,后台得不到。
      

  5.   

    string[] text = Request.Params.GetValues("text");
    if (text != null)
                {
                    for(int i=0;i<text.Length;i++){
                        //这里加上更新数据库的方法
                    }
                }
      

  6.   

    string[] array = context.Request.Form.GetValues("test");
    这样就能获取所有name为test的文本框的值!
      

  7.   

    Request.Form["html控件的name"];
    function createInput(){
            var inputT=document.createElement("<input type='text' name='txt'/>"); 
            document.getElementById("div1").appendChild(inputT);
        }
    string form = Request.Form["txt"];
            string[] values = form.Split(',');
            foreach (string val in values)
            {        }