creating dynamic control in asp.net

后端 未结 1 1128
再見小時候
再見小時候 2021-01-23 10:27

I\'m creating a fileupload control on a linKbutton click event. First time it\'s creating the controls, but if I press the link button second time, it\'s not creati

相关标签:
1条回答
  • 2021-01-23 11:24

    When you create controls dynamically with ASP.NET you need to recreate the control every time you post back, generally you recreate the control on Page_Load. That is most likely the cause of your problem.

    0 讨论(0)
提交回复
热议问题