Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 30-Jan-13 23:03pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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



Advertise | Privacy | Mobile
Web03 | 2.8.140709.1 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid