Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
ERROR:
 
Invalid posted data for current ObjectList ViewMode. (The ObjectList may have been databound on postback during Page_Load, resetting the ViewMode. Call DataBind in Page_Load only if IsPostBack is false.)
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.Exception: Invalid posted data for current ObjectList ViewMode. (The ObjectList may have been databound on postback during Page_Load, resetting the ViewMode. Call DataBind in Page_Load only if IsPostBack is false.)
 
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:
[Exception: Invalid posted data for current ObjectList ViewMode.  (The ObjectList may have been databound on postback during Page_Load, resetting the ViewMode.  Call DataBind in Page_Load only if IsPostBack is false.)]
   System.Web.UI.MobileControls.Adapters.HtmlObjectListAdapter.HandlePostBackEvent(String eventArgument)
   System.Web.UI.MobileControls.ObjectList.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   System.Web.UI.MobileControls.MobilePage.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   System.Web.UI.Page.ProcessRequestMain()
 
[edit]text block added[/edit]
Posted 15-Nov-12 23:52pm
Edited 16-Nov-12 0:10am
Nelek63.5K
v2
Comments
Kschuler at 16-Nov-12 9:41am
   
If you really want help with this, you should tell us more about what you are doing. Post the relevant code that this exception is occuring on.

1 solution

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

Solution 1

This is an error message dump, not a question. Do what the message says. Don't data bind in page load, do it in page prerender.
  Permalink  

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

  Print Answers RSS
0 DamithSL 320
1 OriginalGriff 195
2 Afzaal Ahmad Zeeshan 154
3 BillWoodruff 135
4 Peter Leow 115
0 OriginalGriff 7,510
1 DamithSL 5,519
2 Sergey Alexandrovich Kryukov 4,994
3 Maciej Los 4,936
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 16 Nov 2012
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