Is there a way to add items from server under and keep ul ID as i want?
First, note that im using C#.
Basically, i know i can add server controls under a ul tag which is
runat=server:
HTML:
<ul id="myID" runat="server"></ul>
C#:
myId.Controls.Add(...);
but the issue is that once i add these items, the ul item has now a new
generated id (such as: id=ctl00_cphMainContainer_ctl00_myID) which ruins
my javascript code and also my css.
I was wondering, is there a clean way i could add my li items and keep my
ul as it is?
No comments:
Post a Comment