CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: Date Entered: 11/7/2005 2:37:34 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 31 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
"Jerbert" <>
NewsGroup User
control works fine in 1.1, but not 2.0 (viewstate error)11/7/2005 2:37:34 PM

0

I'm working with a custom button control that works fine in 1.1, but gives me the following error in 2.0:

Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

If I build a simple form that handles the button's click event in 1.1, it works without a hitch, but doing the same thing in 2.0 throws that error when I click the button.  I did not write the button control, but if you need more information, please let me know. 

Thanks for all your help!



"SimonCal" <>
NewsGroup User
Re: control works fine in 1.1, but not 2.0 (viewstate error)11/8/2005 10:38:21 PM

0

It should be OK. You can't postback a v1.1 generated page to a v2 and expect that to work as ViewState is created differently in v2. Can you describe the scenario in more detail and perhaps provide code?
Simon
This posting is provided "AS IS" with no warranties, and confers no rights.
"Caddre" <>
NewsGroup User
Re: control works fine in 1.1, but not 2.0 (viewstate error)11/8/2005 11:16:21 PM

0

There are two ways to get View State in custom control in 1.1 cheat by inheriting from Panel or Placeholder controls or creating a fake one, so the source code of the control is needed.  And if the control implemented the IPostBackDataHandler interface.  Hope this helps.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuiipostbackdatahandlerclasstopic.asp
Kind regards,
Gift Peddie
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:













any reasons to stay clear of [www.planetsmb.com]

home server setup, server behind router issue

property lists

custom control events not working...

inheriting base controls and interfaces

control gallery control

default button

problem with panel control viewstate

simple automation control

general web hosting questions

check this control please

custom tag parser

wbh 3.0 - ads web based ui - sample code

setting property options for a composite control

composite control design time behavior

automatically add register tag on page

user controls sharing data

client side script and custom control

repeater

formmail asp

viewstate issue within metabuilders masterpages

help! dynamic control hell!

building a custom component to read files

www.ultimahosts.net will not refund my money

reference problem. bc30002: type '' is not defined.

adding tag to the control's father page

usercontrol and checkbox

problem with inserting data using usercontrols

recalculate command ?

gate.com

explorer bar

routing table quandry

design time support - add html for multiple web controls

array of databound templates

composite control loses text over postback

search engine friendly user controls?

make running digital clock in asp.net

simple button control

need help

change value of newline in datalist

attributes and web user controls

server control load mechanism

detect ip spoofing?

composite control exposing a child control's datasource

collection persistance problem...

how to place different user controls in specific place within html

custom object viewstate lost

flash designtime ??

www.dailyrazor.com

context - when is it null?

   
  Privacy | Contact Us
All Times Are GMT