Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Dynamically Added PeopleEditor web control Check Names error

$
0
0
I am inserting PeopleEditor sharepoint web control dynamically as
PeopleEditor peopleEditor = new PeopleEditor();
peopleEditor.MultiSelect = false;                
peopleEditor.Attributes.Add("runat", "server");
peopleEditor.ID = "TravellerPicker" + (i + 1).ToString();
cell2.Controls.Add(peopleEditor);
This inserts the PeopleEditor control in the page.
But when typed in an name and clicked on Check Names, a script error is thrown. "There was an error in the callback."

Address book link works fine.

If anybody knows how to fix this, please help me.

Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>