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?