Avatar of tidustr
tidustr
 asked on

Category - Subcategory in Asp.net Vb.net Datalist

I have database in MS SQL Server

Hi, i have two tables as;

First table name: Categories
Columns: cat_id, cat_name

Second Table Name: Subcategories
Columns: subcat_id, subcat_name, cat_id

cat_id in both tables has relationship.
In asp.net page i want to get these rows in datalist like

Category

 - Sub Category
 - Sub Category
 - Sub Category

Category

 - Sub Category
 - Sub Category
 - Sub Category

How do i do that in VB.NET please explain it ?
ASP.NET

Avatar of undefined
Last Comment
marchiano

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
marchiano

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck