473,395 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Is this possible in ASP.NET - dynamic questions

dw
Hello, all. We're building a Web app where we can have any number of
questions, which can contain any type of form element -- check boxes, text
fields, radio buttons, dropdowns, etc. We'd like to build an admin page so
someone can create the questions and store them on SQL Server. The responses
from those questions need to then be stored on the database. Is this
possible or is it just a pipe dream? If possible, is it so complicated that
it's better to just hard-code the questions? Thanks.
Nov 18 '05 #1
6 1221
This isn't complicated per say. It will require some work and knowledge of
ASP.NET, but in the long wrong, it will take less time to add new questions,
thus you will spend less time creating new surveys. Not to mention, once it
is up and running smoothly, you won't constantly be dealing with issues
arrising from having to repeatedly cut and paste to make some question work
correctly, etc.

It may be easier and cheaper to hire a contractor to build the system for
you, if you feel that will be faster then having your developer(s) get up to
speed enough to do it on their own.

Let me know if you have more questions

"dw" <co***************@uncw.edu> wrote in message
news:uI**************@tk2msftngp13.phx.gbl...
Hello, all. We're building a Web app where we can have any number of
questions, which can contain any type of form element -- check boxes, text
fields, radio buttons, dropdowns, etc. We'd like to build an admin page so
someone can create the questions and store them on SQL Server. The responses from those questions need to then be stored on the database. Is this
possible or is it just a pipe dream? If possible, is it so complicated that it's better to just hard-code the questions? Thanks.

Nov 18 '05 #2
I tried doing this a while back.

The issues I ran into were that I couldn't come up with a scheme as far as
HTML goes, that would work perfectly in a cross browser scenario, and with
designers who are ultra picky about each pixel on the screen.

So I just hard coded (actually I took a midway route, I decided on all the
controls I might ever need and positioning was dynamic, so I had a weird
looking control that was a combo of radio buttons and checkboxes, I had to
know the control structure in advance) - but not that the above isn't
possible to do. I just had 2 days to come up with these pages, so hard
coding made more sense in my case.

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik

"dw" <co***************@uncw.edu> wrote in message
news:uI**************@tk2msftngp13.phx.gbl...
Hello, all. We're building a Web app where we can have any number of
questions, which can contain any type of form element -- check boxes, text
fields, radio buttons, dropdowns, etc. We'd like to build an admin page so
someone can create the questions and store them on SQL Server. The responses from those questions need to then be stored on the database. Is this
possible or is it just a pipe dream? If possible, is it so complicated that it's better to just hard-code the questions? Thanks.

Nov 18 '05 #3
dw wrote:
Hello, all. We're building a Web app where we can have any number of
questions, which can contain any type of form element -- check boxes, text
fields, radio buttons, dropdowns, etc. We'd like to build an admin page so
someone can create the questions and store them on SQL Server. The responses
from those questions need to then be stored on the database. Is this
possible or is it just a pipe dream? If possible, is it so complicated that
it's better to just hard-code the questions? Thanks.


You can definitely add controls dynamically based on various criteria -
in fact I'm in the midst of writing an article for MSDN Online about
this. There's also free survey apps that may be similar to what you're
looking for - they provide an admin page to add questions and whatnot.
The one I've been most impressed with is nSurvey - www.nsurvey.org

hth

--

Scott Mitchell
mi******@4guysfromrolla.com
http://www.4GuysFromRolla.com

* When you think ASP.NET, think 4GuysFromRolla.com!
Nov 18 '05 #4
dw
Thank you, Marina and Sahil. Very useful information. I appreciate your time
: )

"Sahil Malik" <co*****************@nospam.com> wrote in message
news:er**************@TK2MSFTNGP10.phx.gbl...
I tried doing this a while back.

The issues I ran into were that I couldn't come up with a scheme as far as
HTML goes, that would work perfectly in a cross browser scenario, and with
designers who are ultra picky about each pixel on the screen.

So I just hard coded (actually I took a midway route, I decided on all the
controls I might ever need and positioning was dynamic, so I had a weird
looking control that was a combo of radio buttons and checkboxes, I had to
know the control structure in advance) - but not that the above isn't
possible to do. I just had 2 days to come up with these pages, so hard
coding made more sense in my case.

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik

"dw" <co***************@uncw.edu> wrote in message
news:uI**************@tk2msftngp13.phx.gbl...
Hello, all. We're building a Web app where we can have any number of
questions, which can contain any type of form element -- check boxes,
text
fields, radio buttons, dropdowns, etc. We'd like to build an admin page
so
someone can create the questions and store them on SQL Server. The

responses
from those questions need to then be stored on the database. Is this
possible or is it just a pipe dream? If possible, is it so complicated

that
it's better to just hard-code the questions? Thanks.


Nov 18 '05 #5
dw
Thank you, Scott. I can't wait for your article! Where will it be posted?
Thanks : )

"Scott Mitchell [MVP]" <mi******@4guysfromrolla.com> wrote in message
news:41**************@4guysfromrolla.com...
dw wrote:
Hello, all. We're building a Web app where we can have any number of
questions, which can contain any type of form element -- check boxes,
text fields, radio buttons, dropdowns, etc. We'd like to build an admin
page so someone can create the questions and store them on SQL Server.
The responses from those questions need to then be stored on the
database. Is this possible or is it just a pipe dream? If possible, is it
so complicated that it's better to just hard-code the questions? Thanks.


You can definitely add controls dynamically based on various criteria - in
fact I'm in the midst of writing an article for MSDN Online about this.
There's also free survey apps that may be similar to what you're looking
for - they provide an admin page to add questions and whatnot. The one
I've been most impressed with is nSurvey - www.nsurvey.org

hth

--

Scott Mitchell
mi******@4guysfromrolla.com
http://www.4GuysFromRolla.com

* When you think ASP.NET, think 4GuysFromRolla.com!

Nov 18 '05 #6
> Thank you, Scott. I can't wait for your article! Where will it be posted?
Thanks : )
Alex, it'll be on the ASP.NET DevCenter:
http://msdn.microsoft.com/asp.net/

In fact, you can see my existing articles there at:
http://msdn.microsoft.com/asp.net/co...scottmitchell/

Also, I'd be sure to announce it on my blog, so if you want you can keep
an eye on that, or subscribe to the RSS feed:
http://ScottOnWriting.NET

(The article's still a ways off, I haven't even yet begun writing it...
Look for it in December, most likely...)

Thanks.

--

Scott Mitchell
mi******@4guysfromrolla.com
http://www.4GuysFromRolla.com

* When you think ASP.NET, think 4GuysFromRolla.com!

"Scott Mitchell [MVP]" <mi******@4guysfromrolla.com> wrote in message
news:41**************@4guysfromrolla.com...
dw wrote:
Hello, all. We're building a Web app where we can have any number of
questions, which can contain any type of form element -- check boxes,
text fields, radio buttons, dropdowns, etc. We'd like to build an admin
page so someone can create the questions and store them on SQL Server.
The responses from those questions need to then be stored on the
database. Is this possible or is it just a pipe dream? If possible, is it
so complicated that it's better to just hard-code the questions? Thanks.


You can definitely add controls dynamically based on various criteria - in
fact I'm in the midst of writing an article for MSDN Online about this.
There's also free survey apps that may be similar to what you're looking
for - they provide an admin page to add questions and whatnot. The one
I've been most impressed with is nSurvey - www.nsurvey.org

hth

--

Scott Mitchell
mi******@4guysfromrolla.com
http://www.4GuysFromRolla.com

* When you think ASP.NET, think 4GuysFromRolla.com!


Nov 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: CAD Fiend | last post by:
Hello, Well, after an initial review of my database by my client, they have completely changed their minds about how they want their form. As a result, I'm having to re-think the whole process....
8
by: Peter B. Steiger | last post by:
The latest project in my ongoing quest to evolve my brain from Pascal to C is a simple word game that involves stringing together random lists of words. In the Pascal version the whole array was...
1
by: sleigh | last post by:
Hello, I'm building a web application that will build a dynamic form based upon questions in a database. This form will have several different sections that consist of a panel containing one to...
2
by: Brian | last post by:
I have a datagrid that is listing a bunch of questions from my DB.. I am creating a radiobuttonlist for each question to give me a yes or no answer. I would like to use the "QuestionCode" column...
7
by: serge | last post by:
How can I run a single SP by asking multiple sales question either by using the logical operator AND for all the questions; or using the logical operator OR for all the questions. So it's always...
34
by: clinttoris | last post by:
Hello Experts, I have been told to post this in the Javascript forum as I want to do this client side just before my form gets submitted. Once the user clicks the submit button a javascript...
5
by: matt | last post by:
hello, i am on an interesting project. in this project, i have to create dynamic data-entry forms for offline-users to fill out, save locally, and eventually postback to our app (when back...
26
by: Jerim79 | last post by:
I need to create a form that takes a number that the user enters, and duplicates a question the number of times the user entered. For instance, if the customer enters 5 on the first page, when...
1
by: Miyagi | last post by:
I am creating a simple "or so I thought" php/mysql survey. There are 3 types of Surveys, with different questions. 1 for Clients, 1 for Employees, 1 for Peers. Questions for each survey are...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.