asp.net


How to validate survey table [closed]


I want design a platform to let users add their activity.
They can customized the input field in activity form.
It is similar to survey system.
Here is my Table design
Activity Table
id | Act name | StartDAte | EndDate
001 Act1 20170312
002 Act2 20170504
Fields
id | Activity ID | Field Name | Required
001 001 Name Y
002 001 Phone Y
003 001 Gender Y
Sign up Master
id | user id | Activity ID | Save date
001 testabc 001 20170501
002 assa 002 20170428
Sign up Detail
id | Sign up Maser id | Field id | value
001 001 001 John
002 001 002 0998985123
003 001 003 Male
In the View,there have three fields.
Name、Phone、Gender
In old way, model will like this
public class form
{
[Required(ErrorMessage = "Name is required.")]
public string name{get;set}
[Required(ErrorMessage = "Phone is required.")]
public string phone {get;set;}
[Required(ErrorMessage = "Gender is required.")]
public string gender {get;set;}
}
When value pass back,how to binding these value to model?
And how to validate these value?

Related Links

Convert number in excel into string?
Publish error
Best way to organize the files in my project
GridView paging always shows first page
ORM for ASP.net, ORACLE, looking for a solution
ASP.NET - Prevent Page Refresh with ModalPopupExtender
Disabling Required Field Validators server-side of checkbox is checked
Why is each control is like a page on its own on our registration page?
Displaying images derived from a byte-array dynamically on a page
ASP.NET MVC Authorization and roles per team_id
How to insert data in listbox control in ASP from database row by row
Regular expression for date time format “MM/DD/YY HH:mm:ss AM/PM” in asp.net regular expression validator
ASP.NET: How-to share resources (membership, libraries) between web applications
Disable automatic including of style sheets within a SiteFinity theme
ASP.NET - Trust Level = Full?
How to Reference ConnectionString in ASP.NET?

Categories

HOME
oauth-2.0
azure-eventhub
windows-server-2008
hex
okhttp3
azure-resource-manager
query-string
css-selectors
ms-access-2010
browser-cache
powerquery
liquidsoap
sequence
jquery-select2
google-my-business-api
olap
vichuploaderbundle
email-attachments
solidity
yui
jinja2
amazon-data-pipeline
powerpivot
alert
airbnb
react-jsx
minimagick
typedef
rndis
connection-pooling
aws-iot
deployment-descriptor
large-files
dynamics-ax-2012-r3
kundera
2checkout
ios-autolayout
restler
bootcamp
azure-storage-files
kepserverex
redhat-brms
mockserver
ninja-forms
office-interop
azure-web-roles
wicket-tester
compiler-warnings
uitextview
smooth-streaming
nshttpurlresponse
spring-ide
google-chrome-storage
spring-cloud-bus
cancan
e4
scanf
stringbuilder
toggleclass
virtualenvwrapper
mate-desktop
queuing
system-integration
3d-rendering
nd4j
android-progressbar
taverna
random-sample
jain-sip
adempiere
windows-phone-8-emulator
tess4j
sparkcore
litedb
copy-on-write
connection-timeout
indices
os.walk
nsnotificationcenter
maven-webstart-plugin
android-library
friendly-url
servicemanager
simplemembership
auctex
qt5.1
rfc822
junit-rule
ios6-maps
flatten
django-admin-tools
automapper-2
clgeocoder
virtual-printer
windows-xp-embedded
fxcopcmd
rollover
arraycollection
mediastreamsource
table-valued-parameters
pitch-shifting
ihtmldocument2
html-help-workshop

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile