Click here to Skip to main content
15,903,854 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Sir, plzz help me regarding this...

I have a table in my DB i.e. ITEM, like this,

INAME ITYPE ITYPE_ID PHOTO

Apparels Men 1 x.jpg
Apparels Women 2 y.jpg
Apparels Kids 3 z.jpg

Electronics Laptop 4 a.jpg
Electronics Tab 5 b.jpg
Electronics mobile 6 c.jpg
Electronics Desktop 7 d.jpg


Here ITYPE_ID is the Primary key.
So how can I bind INAME, ITYPE to a ASP.Net Menu control as parent-child relationship dynamically.
Posted

1 solution

I've also built one dynamic menu in asp.net, and i'm using this following structure

SQL
CREATE TABLE [dbo].[tbl_WebMenu](
    [MenuID] [int] NOT NULL,
    [MenuName] [nvarchar](max) NOT NULL,
    [MenuLocation] [nvarchar](max) NULL,
    [ParentID] [int] NOT NULL,
 CONSTRAINT [PK_tbl_WebMenu] PRIMARY KEY CLUSTERED
(
    [MenuID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]


Storing 0 in the ParentID.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900