Click here to Skip to main content
15,896,063 members
Home / Discussions / Web Development
   

Web Development

 
GeneralDate Selector control Pin
rotsey3-Apr-05 23:43
rotsey3-Apr-05 23:43 
GeneralMime boundry Pin
alex.barylski3-Apr-05 10:54
alex.barylski3-Apr-05 10:54 
GeneralRe: Mime boundry Pin
DavidNohejl3-Apr-05 12:26
DavidNohejl3-Apr-05 12:26 
GeneralINPUT tag Pin
nagarajuepuri2-Apr-05 6:26
nagarajuepuri2-Apr-05 6:26 
GeneralRe: INPUT tag Pin
Scott Serl2-Apr-05 8:34
Scott Serl2-Apr-05 8:34 
GeneralJAVASCRIPT Pin
Member 15762691-Apr-05 8:22
Member 15762691-Apr-05 8:22 
GeneralRe: JAVASCRIPT Pin
JKroschel6-Apr-05 5:00
JKroschel6-Apr-05 5:00 
GeneralViewState with webUserControl & inheritance Pin
parsiphal1-Apr-05 1:21
parsiphal1-Apr-05 1:21 
Hi there,
i'm again in trouble. Great trouble.

I have a WebUserControl written by me, in which all control rendered are dynamically generated on page_Load. It works well, so I've decided to extend it with another WebUserControl.
Public class ExtendedUserControl:MyUserControl
This mean that in this second page_load, a just-generated control is added in a collection before one of the inheriteds. It seems to work, but here begin my trouble.

I've done my WebForm for test, and the control extended is well-rendered. The problem is with the PostBack and ViewState: first it shows to me a message of Invalid_Viewstate.
I've tried to manage it by overloading SavePageStateToPersistenceMedium and LoadPageStateFromPersistenceMedium and make the __ViewState variable to be divided in packages lesser then 1024byte.
It then shows me an error of Invalid Cast in the private System.Web.UI.Page.LoadPageViewState() where I cannot either debug or do some.

It is clear the problem is with the viewState because making those methods to do nothing, the problem disappears. But the state, obviously, also was lost.

I need state functionality (as always in web form) and I don't like to go the ancient way to manage myself the state-infos. I think I don't know state-lore enought to understand what is really at work here. Should I have designed in another manner my WebUserControls? You know i don't go the common way to have the tags in aspx and the code in aspx.cs: I choose to make all in the .aspx.cs file so I can inherit from.
Are there some triks I wasn't able to find in the web? Or perhaps there are some requirement i don't know, and so don't meet?

Any help is quite appretiated and very welcome.


Parsiphal
GeneralNeed help with ASP, error trapping while sending email Pin
w1n7831-Mar-05 14:39
w1n7831-Mar-05 14:39 
GeneralDefault Button on HTML form Pin
Brian Van Beek31-Mar-05 11:17
Brian Van Beek31-Mar-05 11:17 
GeneralProblems making a proxy server Pin
shaiba31-Mar-05 6:19
shaiba31-Mar-05 6:19 
GeneralDare to Solve it Pin
vipul thakur31-Mar-05 4:12
vipul thakur31-Mar-05 4:12 
QuestionGoogle ads without javascript? Pin
tantiboh30-Mar-05 12:11
tantiboh30-Mar-05 12:11 
AnswerRe: Google ads without javascript?--follow up question Pin
JKroschel6-Apr-05 5:35
JKroschel6-Apr-05 5:35 
GeneralWeb Services Extract/Insert SOAP Body Pin
Poiema30-Mar-05 7:20
Poiema30-Mar-05 7:20 
GeneralCross domain Javascript Pin
Esmo200030-Mar-05 4:09
Esmo200030-Mar-05 4:09 
GeneralNull value Pin
Brendan Vogt29-Mar-05 19:14
Brendan Vogt29-Mar-05 19:14 
GeneralRe: Null value Pin
Colin Angus Mackay30-Mar-05 4:23
Colin Angus Mackay30-Mar-05 4:23 
GeneralRe: Null value [Additional] Pin
Colin Angus Mackay30-Mar-05 19:50
Colin Angus Mackay30-Mar-05 19:50 
GeneralASP Log off Section Pin
Brendan Vogt29-Mar-05 19:06
Brendan Vogt29-Mar-05 19:06 
GeneralRe: ASP Log off Section Pin
AlanJones20053-Apr-05 23:16
AlanJones20053-Apr-05 23:16 
GeneralJavaScript String Comparison Pin
Brendan Vogt29-Mar-05 19:02
Brendan Vogt29-Mar-05 19:02 
GeneralRe: JavaScript String Comparison Pin
Esmo200030-Mar-05 5:10
Esmo200030-Mar-05 5:10 
GeneralRe: JavaScript String Comparison Pin
Yulianto.30-Mar-05 14:45
Yulianto.30-Mar-05 14:45 
GeneralSession Persistence Pin
Brendan Vogt29-Mar-05 18:57
Brendan Vogt29-Mar-05 18:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.