Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP>NET
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 24-Feb-13 19:41pm
Edited 25-Feb-13 8:53am
v2
Comments
Software Engineer 892 at 25-Feb-13 3:21am
   
Please can you post your code.

1 solution

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

Solution 1

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

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

  Print Answers RSS
0 Maciej Los 450
1 OriginalGriff 403
2 Sergey Alexandrovich Kryukov 219
3 Peter Leow 190
4 CPallini 189
0 OriginalGriff 6,092
1 Sergey Alexandrovich Kryukov 5,022
2 Maciej Los 3,269
3 Peter Leow 3,164
4 DamithSL 2,490


Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 25 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100