OnItemViewState Not Persisting

R

Richard Myers

Howdy,

Im setting the imageUrl of a templated column of a datagrid in the
ItemCreated event. The image changes depending on the status of a customer
record being displayed in the grid. Somethings i cant validate for on the
client and do so instead on the server. If an input is invalid i post pack
to client.

However because the user interacts with the grid i dont rebind when i
postback and so consequently the item created event is not fired and so my
status indicator images do not display anything but the empty square <img>
im sure you've all seen many times before in general websurfing.

Clearly my design is flawed as im enabledviewstate = true but to zero effect
and i cant find anyone else with the same problem. aving said that my
current algorithm doesn;t seem to convoluted.

Any tips for persisting my images on postback?

TIA
Richard
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top