我可以从aspx.cs页面发送服务器控件

sau*_*abh 0 asp.net

我可以从aspx.cs页面发送服务器控件

Cer*_*rus 5

如果通过"发送"表示"创建",那么您可以通过将动态创建的控件添加到容器(如页面或面板)来轻松完成:

LinkButton lnk1 = new LinkButton();
// Set any required properties.
...

// Add the control to the container.
Panel1.Controls.Add(lnk1);
Run Code Online (Sandbox Code Playgroud)

LinkBut​​ton将按预期在客户端呈现.