protected void ddlAvailable_SelectedIndexChanged(object sender, EventArgs e) { var manager = new MarinaManager(); int slipID = Convert.ToInt32(ddlAvailable.SelectedValue); txtLength.Text = Convert.ToString(manager.GetSlipLength(slipID)); txtWidth.Text = Convert.ToString(manager.GetSlipWidth(slipID)); }