Some properties should not be represented on the Web Form like the "ID" you can add the Hidden Attribute to hide the property from being representing on the Generated Web Form.

Example:

[Serializable]
[Caption("Contact Us Form")]
public class ContactUsInfo2
{
[Hidden]
public int ID { get; set; }

public string FullName { get; set; }

public string Email { get; set; }

public string Subject { get; set; }

[TextBox(TextMode=System.Web.UI.WebControls.TextBoxMode.MultiLine)]
public string Message { get; set; }

}

Last edited Dec 18, 2010 at 10:48 AM by kmusaied, version 1

Comments

No comments yet.