We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,682 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

how to display datas in list format from database using VB

Hi Friends

I am new to asp.net, i want to display menu title from database using VB in asp.net, the display should be done in list format while href tag, i am expecting the display as below

menu1 menu2 menu3

Please can any one help me to solve this issue.

3
Contributors
3
Replies
1 Week
Discussion Span
9 Months Ago
Last Updated
4
Views
Question
Answered
rpv_sen
Posting Whiz in Training
204 posts since Mar 2011
Reputation Points: 24
Solved Threads: 18
Skill Endorsements: 0

You have a couple of options to do this. Each step requires pulling the menu items out of the database of course but after that you can display the menu as a standard UL but with asp:Labels inside each <li> or use a literal control to output the html for the menu server side. The repeater is a better idea as it allows for differing amounts of menu items (to a degree) whereas the first method doesn't.

hericles
Veteran Poster
1,065 posts since Nov 2007
Reputation Points: 156
Solved Threads: 228
Skill Endorsements: 9

Use a Repeater and build an <UL> <LI> list.

TimCadieux
Newbie Poster
15 posts since Aug 2012
Reputation Points: 0
Solved Threads: 1
Skill Endorsements: 0

Thanks Guys for your support. i solved the issue

rpv_sen
Posting Whiz in Training
204 posts since Mar 2011
Reputation Points: 24
Solved Threads: 18
Skill Endorsements: 0
Question Answered as of 9 Months Ago by TimCadieux and hericles

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0658 seconds using 2.67MB