Solved

ASP.net controls programatically added to a web page

Posted on 2011-09-27
3
207 Views
Last Modified: 2012-05-12
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
Comment
Question by:murbro
3 Comments
 
LVL 22

Accepted Solution

by:
plusone3055 earned 250 total points
ID: 36709618
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
 
LVL 12

Assisted Solution

by:Ramkisan Jagtap
Ramkisan Jagtap earned 250 total points
ID: 36710731
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
 

Author Closing Comment

by:murbro
ID: 36711417
thanks very much
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question