protected void btnSubmitHouse_Click(object sender, EventArgs e) { if (ddHouseAreaType.SelectedValue == "Full") { House_Full CurrentHouse_Full = CreateHouseFullObject(); PropertyData.UploadAd_House_Full(CurrentHouse_Full); } else if (ddHouseAreaType.SelectedValue == "Portion") { House_Portion CurrentHouse_Portion = CreateHousePortionObject(); PropertyData.UploadAd_House_Portion(CurrentHouse_Portion); } UploadImages(); Response.Redirect("Index.aspx"); }