internal string GetNextID (string proposedID) { if (proposedID != null && proposedID.Trim ().Length != 0) return proposedID; return "_bctrl_" + nextID++; }
protected void EnsureID (ControlBuilder builder) { string id = builder.ID; if (id == null || id.Trim () == String.Empty) builder.ID = builder.GetNextID (null); }