Click here to Skip to main content
15,916,189 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dynamically created ajax tabpanel Not working while post back..am getting error like this...
 Specified argument was out of the range of valid values.
Parameter name: value
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.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: value

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:


[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: value]
   AjaxControlToolkit.TabContainer.set_ActiveTabIndex(Int32 value) in c:\AjaxControlToolkit_Admin\Release\AjaxControlToolkit\Tabs\TabContainer.cs:125
   AjaxControlToolkit.TabContainer.LoadControlState(Object savedState) in c:\AjaxControlToolkit_Admin\Release\AjaxControlToolkit\Tabs\TabContainer.cs:387
   System.Web.UI.Control.LoadControlStateInternal(Object savedStateObj) +123
   System.Web.UI.Page.LoadAllState() +8905996
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +747
Posted
Updated 25-Feb-13 8:53am
v2
Comments
Software Engineer 892 25-Feb-13 3:21am    
Please can you post your code.

1 solution

Error simply means that on postback, the tabindex for the tab you are trying to set does not exits and thus an error.

Based on what you share, it's a dynamically created tab. So, you need to make sure that on postback the dynamic control is rebuilt such that the events are properly attached and the tabs exists as per exptected by the code after it.
 
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