且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

回传中占位符的控件为空!! - 紧急

更新时间:2023-11-30 15:56:46

如果在这种情况下动态添加控件,则需要自己保留控件的状态.有关更多详细信息,请查看以下文章.

在ASP.NET应用程序中为动态创建的控件保留状态 [
If you add control dynamically in that case you need to preserve the state of the control by yourself. For more details you can check following article.

Retaining State for Dynamically Created Controls in ASP.NET applications[^]

The other way around is to get the values of the control from Request.Form["ControlName"]