TaxonomyField taxonomyField = newWeb.Lists[i].Fields["Tender No"] as TaxonomyField;
try
{
taxonomyField.DefaultValue = TenderNO.ValidatedString;
}
catch
{
taxonomyField.DefaultValue = String.Empty;
}
taxonomyField.UserCreated = false;
taxonomyField.Update(true);