protected void btnSubmitAppartment_Click(object sender, EventArgs e) { DataTable Appartments = new DataTable(); Appartments = PropertyData.SearchAppartment( GetPropertyType(), txtApptName.Text, PropertyData.GetAreaNameByID(int.Parse(ddArea.SelectedValue)), ddSizeUnit.SelectedValue, GetMinSize(), GetMaxSize(), GetMinPrice(), GetMaxPrice(), GetFloor(), GetRooms() ); Session["SEARCH_TYPE"] = "appartment"; Session["SEARCH_RESULT"] = Appartments; Response.Redirect("Result.aspx"); }