view state problem

B

Bren

I am developing a web based app. in .net, with C# as the code
behind.the problem I am having is with view state for a page. the page
is capturing an event fired in an object. the event changes the
properties of various controls in the UI. the event is fired when the
user enters some info. on the page, initiating a post back etc.
However, when i test the page, the changes that should appear in the
UI don't happen. debugging through the code everything appears in
order - page loads, the event is captured and the properties are set
in the controls (which are labels). how ever, when you look at the
controls during pre-render the controls have their original values. if
I add code that adds proeprties to view state when the event fires,
when you try yo get these properties back during pre-render they are
null. it as if the page has locked view state, or is using the
original view state info. - either way the changes that should be
happening are ignored ....any ideas much appreciated.
 

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

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,144
Latest member
KetoBaseReviews
Top