Asp.net ASP:占位符-can';找不到';它正在生成它的内容
我需要更新在.aspx页面上呈现的一些文本。我已经搜索了源代码和数据库表、视图和存储过程,但找不到它 生成文本的代码位如下所示:Asp.net ASP:占位符-can';找不到';它正在生成它的内容,asp.net,Asp.net,我需要更新在.aspx页面上呈现的一些文本。我已经搜索了源代码和数据库表、视图和存储过程,但找不到它 生成文本的代码位如下所示: <asp:PlaceHolder id="teamMemberTable" runat="server" /> 是的,代码可能位于已编译的程序集中,而不是纯文本。一种选择是运行.NET Reflector或ILSpy等工具,对应用程序中的所有程序集进行反编译,并搜索反编译的代码以查找对“teamMemberTable”的任何引用 另一种可能性是控件由索引
<asp:PlaceHolder id="teamMemberTable" runat="server" />
是的,代码可能位于已编译的程序集中,而不是纯文本。一种选择是运行.NET Reflector或ILSpy等工具,对应用程序中的所有程序集进行反编译,并搜索反编译的代码以查找对“teamMemberTable”的任何引用
另一种可能性是控件由索引而不是名称引用。例如,如果占位符控件位于页面中,它可以被引用为
page.Controls[5]
,因此您永远不会在源代码中看到该名称。我们可以猜出它是什么类型的内容吗?向我们展示它是如何呈现的,以及您需要从中获得什么
<span id="ctl00_rightContent_Repeater1_ctl01_Literal1" class="teamListName">
Team Number One
</span>
<table>
<tr>
<td class="teamListMember">Team Captian</td>
<td class="teamListPlayer">Jane Doe</td>
<td class="teamListStatus teamListStatusPaid">Paid</td>
</tr>
<tr>
<td class="teamListMember">Player 2</td>
<td class="teamListPlayer">John Q. Public</td>
<td class="teamListStatus teamListStatusNotPaid">Not Paid</td>
</tr>
</table>