Liming
10-23-2003, 02:55 PM
Hi all,
Is there anyway to create Server Control ID dyanmically inside the page?
such as <asp:panel ID="ID<%=my_variable%>" runat="server"></asp:panel>?
This way, I'm getting an error...<%=my_variable%> is not a valid identifier.
I understand that I'm able to use a placeholder inside the page and dyamically
add an asp:panel to the placeholder inside Page_Load()..that works.... but
I'm just curious why the traditional ASP way doesn't work.
Thanks a lot
Is there anyway to create Server Control ID dyanmically inside the page?
such as <asp:panel ID="ID<%=my_variable%>" runat="server"></asp:panel>?
This way, I'm getting an error...<%=my_variable%> is not a valid identifier.
I understand that I'm able to use a placeholder inside the page and dyamically
add an asp:panel to the placeholder inside Page_Load()..that works.... but
I'm just curious why the traditional ASP way doesn't work.
Thanks a lot