Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Menu item from database in ASP.Net

Reply
Thread Tools

Menu item from database in ASP.Net

 
 
jayender.vs@gmail.com
Guest
Posts: n/a
 
      03-31-2006
Hi,

I am doing a menu in asp.net here is the sample code for that:

Code:
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" >

<Items>

<asp:MenuItem Text="<%=m_Menu[0]%>" Value="New Item"></asp:MenuItem>

<asp:MenuItem Text="New Item" Value="New Item"></asp:MenuItem>

<asp:MenuItem Text="New Item" Value="New Item"></asp:MenuItem>

<asp:MenuItem Text="New Item" Value="New Item"></asp:MenuItem>

</Items>


</asp:Menu>
Now the m_Menu[0] is the string array which has the string
value taken from database., but am not able to display the string which
i got from database.

is there anyother way to do ? waiting for ur reply ..

 
Reply With Quote
 
 
 
 
S. Justin Gengo
Guest
Posts: n/a
 
      03-31-2006
jayender,

This example may help you:

http://www.eggheadcafe.com/articles/20050531.asp

Regards,

--
S. Justin Gengo
Web Developer / Programmer

Free code library:
http://www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche


<> wrote in message
news: oups.com...
> Hi,
>
> I am doing a menu in asp.net here is the sample code for that:
>
>
Code:
>
> <asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" >
>
> <Items>
>
> <asp:MenuItem Text="<%=m_Menu[0]%>" Value="New Item"></asp:MenuItem>
>
> <asp:MenuItem Text="New Item" Value="New Item"></asp:MenuItem>
>
> <asp:MenuItem Text="New Item" Value="New Item"></asp:MenuItem>
>
> <asp:MenuItem Text="New Item" Value="New Item"></asp:MenuItem>
>
> </Items>
>
>
> </asp:Menu>
>
>
Now the m_Menu[0] is the string array which has the string
> value taken from database., but am not able to display the string which
> i got from database.
>
> is there anyother way to do ? waiting for ur reply ..
>



 
Reply With Quote
 
 
 
 
jayender.vs@gmail.com
Guest
Posts: n/a
 
      04-01-2006
Well , thanks Justin Gengo . will try it out ....
but was is the way to give the string in asp tag. like

<asp:MenuItem Text="<%=m_Sample%>" Value="New Item"></asp:MenuItem>

where
string m_Sample ;
m_Sample = "Hello"

why is that hello is not printed in the menu item ...
anyway thanks for the url...

Regards,
Jayender.

 
Reply With Quote
 
Waki Hunt
Guest
Posts: n/a
 
      04-02-2006
Hi
You can try my menu item: WakiCoolBar for Asp.net. It can render menu items
from database.
Download: http://www.aspxcontrol.net
Demo: http://www.aspxcontrol.net/demo/wakicoolbar/sample.aspx


<> wrote in message
news: oups.com...
> Hi,
>
> I am doing a menu in asp.net here is the sample code for that:
>
>
Code:
>
> <asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" >
>
> <Items>
>
> <asp:MenuItem Text="<%=m_Menu[0]%>" Value="New Item"></asp:MenuItem>
>
> <asp:MenuItem Text="New Item" Value="New Item"></asp:MenuItem>
>
> <asp:MenuItem Text="New Item" Value="New Item"></asp:MenuItem>
>
> <asp:MenuItem Text="New Item" Value="New Item"></asp:MenuItem>
>
> </Items>
>
>
> </asp:Menu>
>
>
Now the m_Menu[0] is the string array which has the string
> value taken from database., but am not able to display the string which
> i got from database.
>
> is there anyother way to do ? waiting for ur reply ..
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Database Database Database scott93727@gmail.com Computer Information 0 09-27-2012 02:43 AM
DataBase DataBase DataBase DataBase scott93727@gmail.com Computer Information 0 09-26-2012 09:40 AM
How do I set selected Menu item in a asp:menu control? goran.strand@gmail.com ASP .Net 0 12-22-2006 08:05 AM
"Shutdown" menu item disapper from START menu......... vik Computer Support 5 08-09-2006 03:14 PM
How to do bitmap icon in front of menu-items in Java? what is the class for menu-item in Java? gino Java 12 09-01-2004 04:14 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57