or
MarkFirstMatch
="false"
Attachment1 is firing the event.
ContentPlaceHolder cph = this.FindControl("ContentPlaceHolder1") as ContentPlaceHolder; UserControl uc = this.LoadControl("~/UserControls/" + strName + ".ascx") as UserControl; if ((cph != null) && (uc != null)) { uc.ID = strName; cph.Controls.Clear(); cph.Controls.Add(uc); IsControlAdded = true; ViewState[IDS_USERCONTROL] = strName; }switch (index) { case 0: //Person var arr = GetSelectedPerson(); args.set_cancel(true); break; case 1: //Company break; case 2: //Group var arr = GetSelectedGroups(); break;GetSelectedPerson and GetSelectedGroups are two js methods that exist in different usercontrols.Validation-IsRequired" property of the RadInputManager control?