Solved

ASP.net controls programatically added to a web page

Posted on 2011-09-27
3
177 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now