//Button click gets details of existing Mask off ID protected void EditMaskType_Click(object sender, EventArgs e) { //Ask admin the Mask they wish to edit int Mask_ID = Convert.ToInt32(MaskID.Value); //Get product based off ID var Mask = SR.GetMask(Mask_ID); //If its NOT the initial visit to page if (!IsPostBack) { //Display Mask info to admin MaskName.Value = Mask.Name; MaskDescription.Value = Mask.Description; MaskAdmin.Value = Convert.ToString(Mask.Admin_User_Id); } }