Skip to main content
 首页 » 编程设计

c#之将列设为空白,但为其提供 tdInnerHtml 的 ID

2024年08月06日42tintown

软件:Visual Web Developer 2008 Express Edition

我正在阅读“Programming ASP.NET 3.5”,它说要创建一个带有表的 Web 应用程序

书上说

Leave the second column in the last row empty, but give it an ID of tdInnerHtml

如何做到这一点?我试过了

但是当我必须在文档中引用 itInnerHtml 时,它不会呈现。注意 tdInnerHtml 下的红色波浪线

谢谢!

请您参考如下方法:

在您的单元格中包含标签 runat="server":

<td id="tdInnerHtml" runat="server"> 
... 
... 
...