Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
i have created dynamic tabs in tabcontainer, in tabs i have created some textboxes and a button,when i click a button first time it works ok, but when i click it on second time i shows following error message.

"DotNetNuke.Services.Exceptions.PageLoadException: Specified argument was out of the range of valid values. Parameter name: value ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: value at AjaxControlToolkit.TabContainer.set_ActiveTabIndex(Int32 value) at AjaxControlToolkit.TabContainer.LoadClientState(String clientState) at AjaxControlToolkit.ScriptControlBase.LoadPostData(String postDataKey, NameValueCollection postCollection) at AjaxControlToolkit.TabContainer.LoadPostData(String postDataKey, NameValueCollection postCollection) at AjaxControlToolkit.ScriptControlBase.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---"

what will be the issue.

Thanks in advance..
Posted

1 solution

1. created dynamic tabs in tabcontainer,
2. when i click a button first time it works ok, but when i click it on second time i shows following error message.
3. Specified argument was out of the range of valid values. Parameter name: value
Though you have not shared the related code snnipet, above three things suggest that your dynamic tabs are not constructed during second click. This leads to the error when you try to access a particular tab/control using an index.

Make sure you build the tab on postback for proper reference. Further, put a check if the count is correct before accessing anything in the control array.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900