asp.net mvc - MVC3 Razor dynamic form creation and validation -


i have setup page on website admin staff can create competition , add number of fields certains types , can set required or not competition.

when competition page loaded questions load dynamically database using editor templates each question type ie text, multi select, multi line text, email

there few tables main ones competition, competitionquestions , questiontypes

each competition can have multiple questions of different types.

the settings on question types have validation type ie email, regularexpression, length etc

and questions when added each competition can set required or not

now can competition page lead fine dynamically adding questions page editorfor , editor template each type.

my problem don't know how manually apply validation required questions , validation based on question type validation settings?


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -