I need a sample coding for displaying an html table in code behind asp.net c# with mysql database values,
Chennai Bangalore Mumbai Hyderabad Delhi
Sridhar park shopping mall null null beach
Munna null beach temple null temple
Prayushi null null park shopping mall null
Sheetal null long drive null null null
All these above values are fetched from database, whereas chennai, bang, hy etc are horizontal headers--> "tblcities" and
sridhar, munna etc are vertical header --> "tblnames" , park is displayed from the database table "tblschrecords"
refering in where condition chennai,shridhar if no record is present in that scenario display null.
I have an idea of displaying in array format in the HTML TABLE but dono how to implement, any idea to implement the above is welcomed
tblcities-->cid,cityname
tblnames-->nid,names
tblschrecords-->sid,cid,nid,activities