I’ve got a static control in ASP.NET – a regular old <ul> on a master page. On some of the content pages I add to this <ul> statically by just inserting <li> statically in the content placeholder, but on one of the others I’d like to add dynamically on the server side, e.g. an <li> for each file in a directory. How can I achieve both these objectives? When I add runat="server" it still doesn’t seem to have a server-side representation I can modify.
I’ve got a static control in ASP.NET – a regular old <ul> on a
Share
I just wrote a loop in the template directly, instead of some C# code-behind.