2
尝试拉取由SQL数据库动态填充的标签的文本值。任何帮助将不胜感激!查找控制文本(ASP.NET/C#)
ASP.NET
<asp:Label ID="PlatformName" Text='<%# DataBinder.Eval(Container.DataItem, "PlatformName") %>' runat="server" />
C#代码隐藏(这使我的对象,而不是字符串值的标签)
string strPlatform = GameGrid.Rows[counter].FindControl("PlatformName").ToString()
伟大工程的感谢! – KennyH 2010-11-11 13:48:03