Click here to Skip to main content
15,906,097 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All

I am working / creating a web application for free classified ads.

Here i am facing following problem while doing it.

Ad for car need following info

a) Make b) Color c) Model d) Kilometers (Textbox) e) Air Condition (Yes/NO) f) Fuel Type (dropdown with values diesal pertrol lpg cng etc)


Ad for Laptop need another set of info and some info required in car in not required here. like

a)Operating System b) CPU speed c) HDD


Now i wan to store the control information in database against each category so if i select to post an ad for laptop one set of controls will display and if i need to post an ad for car another set will display.

Please suggest how can i achieve the same any example or sample will be appreciated.

Regards
Yogesh Agarwal
Posted
Comments
Sampath Kumar Sathiya 2-Jul-13 11:45am    
You can use EAV model in database and for controls you can use dynamic controls creation.

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