[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

ASP.net controls programatically added to a web page

Hi

In ASP.net 4 I have to build a site that is used a a questionaire.
I want to be able to add radio buttons ore other similar controils
programatically to each web page depending on the information stored
in my SQL database.
What is the best way to approach this. Can I perhaps do some sort of Listbox with
several columns? Or a GridView?
Just need a little advice.

Thanks
0
Murray Brown
Asked:
Murray Brown
2 Solutions
 
plusone3055Commented:
you can do either
its based on your preference
I would reccomend if your basing the choies on what is already stored in your DB that you use a listbox that way depending on what is or is not present with generate in a dropdown :)

0
 
Ramkisan JagtapLead DeveloperCommented:
If you have fixed fields in the DB then u can use datalist or listbox with ur costom template. At run time you can add any no. of items to it.
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
thanks very much
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now