Test Post


namespace TerraMedia
{
	public partial class _Default : System.Web.UI.Page
	{
        protected void Page_Load(object sender, EventArgs e) { }

        protected void submitForm(object sender, CommandEventArgs e)
        {
            if (IsValid)
            {
                // Submit Was Sucessful
                Session["submit"] = true;

                // Create New Contact Record
                Business.Model.Contact c = new Business.Model.Contact();

                // Set It's Fields
                c.Created = DateTime.Now.ToUniversalTime();
                c.Fullname = tbxName.Text.Trim();
                c.Email = tbxEmail.Text.Trim();
                c.Type = ddlInterest.SelectedItem.Text;
                c.Comment = tbxComment.Text.Trim();
                c.Optin = cbxOptIn.Checked;

                // Save The Record
                c.Save();

                // Reload Page
                Response.Redirect("/");
            }
        }
	}
}
csharp
No Comments
October 1, 2009 in Uncategorized

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!

[contact-form 1 "Contact form 1"]

2 Comments
October 1, 2009 in Uncategorized