|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
namespace mvcForumapp.Models
{
public class Questions
{
[Required(ErrorMessage = "Title required")]
[Display(Name = "Enter Title")]
[StringLength(20, MinimumLength = 4)]
public string TopicTitle { get; set; }
[Required(ErrorMessage = "Description required")]
[Display(Name = "Enter Description")]
[StringLength(20, MinimumLength = 10)]
public string TopicDescription { get; set; }
[Required(ErrorMessage = "Content required")]
[StringLength(Int32.MaxValue, MinimumLength = 10)]
public string TopicContent { get; set; }
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am working as a Software engineer. Web development in Asp.Net with C#, WinForms and MS sql server are the experience tools that I have had for the past 3 years. Yet to work on WCF, WPF, Silverlight and other latest ones.