need help generating a dynamic list control <ul />...
- From: "Milsnips" <milsnips@xxxxxxxxxxx>
- Date: Thu, 25 Jan 2007 14:39:21 +0100
hi there,
i'm creating a dynamic menu system for a CMS website application. What i am
currently doing is the following: in a function called LoadMenu(), i loop
through the required db records and add the menus on the fly, however
because its not known which folder level the page will be on, i need to use
a <asp:hyperlink> control so i can use the navigateUrl="~/...."
functionality, whilst still programaticallly creating the <ul><li></li></ul>
tags.
I tried the following:
1. Using a Literal control - does not allow child controls.
2. Use a placeholder control - i can add the hyperlink but i dont know how
to add the relevant list tags.
If there is a way to add the "<ul>" tag from a server side control, eg. new
HTMLGenericControl, can anyone give me a quick example code?
Any help appreciated.
thanks,
Paul
.
- Follow-Ups:
- Re: need help generating a dynamic list control <ul />...
- From: Ignacio Machin \( .NET/ C# MVP \)
- Re: need help generating a dynamic list control <ul />...
- Prev by Date: Re: return object of an unknown type
- Next by Date: Re: return object of an unknown type
- Previous by thread: Casting of generics?
- Next by thread: Re: need help generating a dynamic list control <ul />...
- Index(es):
Relevant Pages
|