Accessing client side dynamic controls within ASP.NET codebehind

前端 未结 3 1500
Happy的楠姐
Happy的楠姐 2021-01-20 00:11

Hi I\'m trying to access the html controls that are created dynamically within an event but I\'m unable to access this.

I\'m using the following code to create the

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-20 00:45

    I would make sure that the input fields are added to an existing form element in the DOM. Also, I've had problems in the past with adding dynamic input (file) controls to a form, and .NET cannot see them... Unless there is at least one statically defined file input in the form already.

提交回复
热议问题