I am trying to add a bdp dynamically to the page. The control is stored in an array as when the page posts back the dynamic controls are removed. So on page load the controls are added from the array, but I get the following error:
An entry with the same key already exists.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: An entry with the same key already exists.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[ArgumentException: An entry with the same key already exists.]
System.Collections.Specialized.ListDictionary.Add(Object key, Object value) +2247216
BasicFrame.WebControls.ClientScriptManager.RegisterClientStyleInclude(String key, String url) +223
BasicFrame.WebControls.ClientScriptManager.RegisterClientStyleInclude(String resourceName) +52
BasicFrame.WebControls.BDPLite.RegisterStyles() +261
BasicFrame.WebControls.BDPLite.Page_PreRenderComplete(Object sender, EventArgs e) +97
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2010340
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1566
|