G
Guest
I need to be able to get a reference to a Control on an ASPX Page by the
exact ID that I gave that control at Design-Time.
Let's say I created an ASPX that had a control:
<asp:TextBox ID="SomeTB" runat="server" />
Now, I want to be able to discover, at run-time, the ClientID of the
Control. But here's the tough part: I'll only have the string "ID" as it had
been set at Design-Time.
So I tried doing FindControl() but that expects the full, "mangled" run-time
Client ID. And I don't have that because I don't know what it'll be.
Is there no way to get a reference to a Control at run-time based on what
it's DESIGN-TIME ID had been?
Alex
exact ID that I gave that control at Design-Time.
Let's say I created an ASPX that had a control:
<asp:TextBox ID="SomeTB" runat="server" />
Now, I want to be able to discover, at run-time, the ClientID of the
Control. But here's the tough part: I'll only have the string "ID" as it had
been set at Design-Time.
So I tried doing FindControl() but that expects the full, "mangled" run-time
Client ID. And I don't have that because I don't know what it'll be.
Is there no way to get a reference to a Control at run-time based on what
it's DESIGN-TIME ID had been?
Alex