Solved

ASP.net controls programatically added to a web page

Posted on 2011-09-27
3
212 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

756 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