M
Mark
Hi,
I have code like that:
<asp:Repeater ID="repClients" runat="server" >
<ItemTemplate>
<div runat="server" id="aaa" >
<div id="canFind" runat="server"></div>
<div id="clientHeader<%#Eval("ClientId")%>"
ClientId="bbb" UniqueID="ccc" runat="server"
In code begind I can find div named "canFind". In watch I do:
repClients.Items[0].FindControl("aaa").Controls[1].ID and I can see
"canFind"
But I can't find the div with dynamic id !! I check all Controls
collection, I try to find it by ClientId, UniqueID, but I doesn't
work, Why ?
How to find in c# div with dynamic Id ?
Thanks for help
I have code like that:
<asp:Repeater ID="repClients" runat="server" >
<ItemTemplate>
<div runat="server" id="aaa" >
<div id="canFind" runat="server"></div>
<div id="clientHeader<%#Eval("ClientId")%>"
ClientId="bbb" UniqueID="ccc" runat="server"
In code begind I can find div named "canFind". In watch I do:
repClients.Items[0].FindControl("aaa").Controls[1].ID and I can see
"canFind"
But I can't find the div with dynamic id !! I check all Controls
collection, I try to find it by ClientId, UniqueID, but I doesn't
work, Why ?
How to find in c# div with dynamic Id ?
Thanks for help