D
Dilip Bajaj via .NET 247
Hello Guys,
I have got to build ASP.NET Application, which has lot ofQuestions and Answers types of Web Forms Application.
All the answers (responses) is required to validate eithermandatory, numeric, range etc.
There are lots of calculative fields based upon the responses offew questions.
for eg:
Question 1 How many cars do u have? = 60
Question 2 How many boats do u have? = 30
Question 3 Total Vehicles = Question1 + Question2
Question 4 Average Vehicles = Question 3 / 2
Question 5 Total Vehicles in this Area = Question 4 * 12
Now my problems is How to dynamically generate Validations Rulesand Calculations for this kind of questions if the formulas arestored in the database. This sounds very simple if thecalculations are very few and to be done on the fly for fewquestions if the formulas hard-coded in the functions. Butimagine there are 200-300 questions which are stored in thedatabase and each responses of each users has to be stored inthe database. Each user responses has to be validated and eachcalcuative field is one type of question which has to bedisplayed on the fly as soon as the values entered in the webform and with its calcuations, entered values all has to bestored in the database for generating reports later on.
Can any one suggest the arhictecture of such application and willbe much appreciated if anyone has the developed applicationsimiliarly.
I am also very confused should I create the dynamic ASP.NET pagesor just hard code the question in the straight ASP.NET webpages? Performance is also main criticial criteria for this.
Pls. your quick responses and suggestions will be extremelythankful and much much appreciated.
Regards,
Dilip
I have got to build ASP.NET Application, which has lot ofQuestions and Answers types of Web Forms Application.
All the answers (responses) is required to validate eithermandatory, numeric, range etc.
There are lots of calculative fields based upon the responses offew questions.
for eg:
Question 1 How many cars do u have? = 60
Question 2 How many boats do u have? = 30
Question 3 Total Vehicles = Question1 + Question2
Question 4 Average Vehicles = Question 3 / 2
Question 5 Total Vehicles in this Area = Question 4 * 12
Now my problems is How to dynamically generate Validations Rulesand Calculations for this kind of questions if the formulas arestored in the database. This sounds very simple if thecalculations are very few and to be done on the fly for fewquestions if the formulas hard-coded in the functions. Butimagine there are 200-300 questions which are stored in thedatabase and each responses of each users has to be stored inthe database. Each user responses has to be validated and eachcalcuative field is one type of question which has to bedisplayed on the fly as soon as the values entered in the webform and with its calcuations, entered values all has to bestored in the database for generating reports later on.
Can any one suggest the arhictecture of such application and willbe much appreciated if anyone has the developed applicationsimiliarly.
I am also very confused should I create the dynamic ASP.NET pagesor just hard code the question in the straight ASP.NET webpages? Performance is also main criticial criteria for this.
Pls. your quick responses and suggestions will be extremelythankful and much much appreciated.
Regards,
Dilip