•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 422,832 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,307 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 6044 | Replies: 2
![]() |
Hey guys,
I'm using VS .NET 2003, and I am designing a web application in VB .NET, I'm just wondering, Tekmaven mentioned to me in another thread of mine that it would be a good idea to use the datalist control as a menu, how would I use it to get menu's much the same as those on this site, or any control for that matter.
Thanks again guys,
Slade
I'm using VS .NET 2003, and I am designing a web application in VB .NET, I'm just wondering, Tekmaven mentioned to me in another thread of mine that it would be a good idea to use the datalist control as a menu, how would I use it to get menu's much the same as those on this site, or any control for that matter.
Thanks again guys,
Slade
Formerly known as Slade.
Umm, that is a kind of a wide open question you have asked. confused:
Here is some code to get you started:
Now in the Code behind or Script Code place
Hope this helps.... Maybe Tekmaven has something to add to this? :
Here is some code to get you started:
<asp:DataList id="dlMenu" runat="server" .....
....
....
OnItemCommand="dlMenu_ItemCommand"
....>
....
<ItemTemplate>
<asp:LinkButton id="btnItem1" runat="server" Text='<%Container.DataItem("MenuValue1")%' CommandName="select" /></ItemTemplate>
</asp:DataList>Now in the Code behind or Script Code place
public sub dlMenu_ItemCommand(obj as Object, e as DataListCommandEventArgs) dlMenu.SelectedIndex = e.Item.ItemIndex ' ||||| Do what you want with the selected Item . Navigate, etc end sub
Hope this helps.... Maybe Tekmaven has something to add to this? :
Assistant Manager, Regional Pharmacy Information Systems
TLC Services Website (Under Construction)
Updated : ASP.Net Login Code
TLC Services Website (Under Construction)
Updated : ASP.Net Login Code
•
•
Join Date: Jun 2006
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
Great article!
I also posted a tutorial at www.KYNOU.com about DataList control in asp.net
Go to www.KYNOU.com and search for: DataList Control
There is also a chat room where I try to spend a lot of time answering questions. Stop by if you want.
I also posted a tutorial at www.KYNOU.com about DataList control in asp.net
Go to www.KYNOU.com and search for: DataList Control
There is also a chat room where I try to spend a lot of time answering questions. Stop by if you want.
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Datagrid to draw a table (C#)
- URGENT!: Saving Database information from ASP.NET Button (ASP.NET)
- Can someone please help? (Graphics and Multimedia)
- Java GUI (Java)
- Need your opinion on the new looks and color of my site (Website Reviews)
- I've got Trojan.Holax... is this bad? (Viruses, Spyware and other Nasties)
- Identification of Web Forms (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: Limitation
- Next Thread: E-mail not working


Linear Mode