private void BeginEditMode()
{
if (ViewState[CMSViewStateManager.TaxID] != null)
{
Tax Tax =
TaxManager.GetTax(Convert.ToInt32(ViewState[CMSViewStateManager.TaxID]), CMSContext.PortalID);
if (Tax != null)
{
pnlTaxItem.Visible = true;
txtRate.Text = Tax.Rate.ToString();
cbIsEnabled.Checked = Tax.IsEnabled;
btnSave.Visible = false;
btnUpdate.Visible = true;
}
}
}