public void GetDataByCode() { Code = Request.QueryString["Code"]; var GetDataByCode = _CategoriesManager.GetDataByCode(Code); if (GetDataByCode != null) { txtCategoryCode.Text = GetDataByCode.Code.ToString(); txtCategoryName.Text = GetDataByCode.Name.ToString(); txtStatus.Text = GetDataByCode.Status.ToString(); if (txtStatus.Text == "Running") { StatusButton.Text = "Stop"; } else { StatusButton.Text = "Running"; } } else { } }