0

Hi All,

I have created the custom visual web part in SharePoint 2013 and added into page. In this web part i am trying to add the literal control dynamically(the purpose of adding this control is to post the form data to another page in another server) which i am not able to add instead i am getting the error as “the control collection cannot be modified during databind init load prerender or unload phases” in my code

page.controls.Add(new LiteralControl(strform))

Please advise to resolve this issue such that i can post the data to another page.

Thanks,

Siva

 

(Visited 33 times, 1 visits today)
Add a Comment