动态添加输入框,例A页面设置文本框个数 在B页面显示 B页面点击按钮把页面内所有文本框数据添加到数据库 
还有一点,B页面内需要JS对文本框进行判断 必须有 数字 英文 汉字 3种类型的判断

解决方案 »

  1.   

    循环一下就都有了~~~在万能的RESPONSE.WRITE面前……
      

  2.   

     for (int i = 1; i <= Convert.ToInt32(Session["Count"]); i++)
                {
                    TextBox txt = new TextBox();
                    txt.ID = "txt_" + i;
                    Panel1.Controls.Add(txt);
                }
            }
    protected void btn_get_Click(object sender, EventArgs e)
        {
            for (int i = 1; i <= Convert.ToInt32(Session["Count"]); i++)
            {
                string s=((TextBox)Panel1.FindControl("txt_" + i)).Text;
            }
        }
    在JS取值判断或在取值时判断