ViewState - no accessibility - .NET2 ASP - c#

  • Thread starter Thread starter Steph
  • Start date Start date
S

Steph

Hello, i found a bug ? or an incompetence of my share !

I've 1 aspx and 3 ascx level : as :
Default.aspx :
PlaceHolder1 < Page_Init : LoadControl(1.ascx)

module.ascx :
PlaceHolder1 < Page_Init : LoadControl(2.ascx)

modify.ascx :
PlaceHolder1 < Page_Init : LoadControl(3.ascx)

modifyGrid.ascx : < BUG HERE >
TextBox1 + DropDownList1... etc etc.... < bug : value isnt accessible
!


The viewState of 2aGrid.ascx Controls are not "redeable", always empty...
.... somebody with an idea...
NB : there can it be another ascx in "modifyGrid.ascx "...


This architecture can be :
--------------------------
Default.aspx : n-tiers program page

module.ascx : my module, according to the state of a variable, the state of
the module changes : view, modify, config... (LoadControl : modify.ascx as
modify, config.ascx as config, ...)

modify.ascx : my ascx "modify state",
.....modifyGrid.ascx "modify state repeater" (graphics page-setting)

mau
 
I'm not sure if I understand what you mean, but it's not a bug that the
ViewState is not available yet in the 'Init' event of Controls.

The viewstate is only restored after this event.

Please investigate the ASP.NET life cycle to understand why:

http://www.15seconds.com/issue/020102.htm

Best Regards,

Wiebe Tijsma
 
In order to say this is a bug you should provide some code here and explain
them. It could be just a bug that you have created. Cheers

chanmm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top