How to programmatically create and use a list of checkboxes from ASP.NET?

前端 未结 7 1303
礼貌的吻别
礼貌的吻别 2021-01-19 10:37

I have a page with a table of stuff and I need to allow the user to select rows to process. I\'ve figured out how to add a column of check boxes to the table but I can\'t se

7条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-19 10:41

    What I ended up doing was tagging all my ID's with a know prefix and stuffing this at the top of Form_Load:

    foreach (string v in this.Request.Form.AllKeys)
    {
        if (v.StartsWith(Prefix))
        {
            var data = v.Substring(Prefix.Length);
        }
    }
    

    everything else seems to run to late.

提交回复
热议问题