Click here to Skip to main content
15,936,046 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello!
I have Model:
C#
namespace CMSPI.Models
{
    public class UsersModels
    {
        [Display(Name = "ID")]
        [Required(ErrorMessage = "ID is required")]
        public virtual int Idanagrafica { get; set; }



        [Display(Name = "User name")]
        [Required(ErrorMessage = "Username is required")]
        public string Username { get; set; }

}

How i can display at my View all follow fields: Name (for example ID) and Name of parametr(for example Idanagrafica)
Posted
Comments
Anuja Pawar Indore 10-Apr-13 11:09am    
Bind your view to the model and you can get all the properties access.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900