controls in placeholder were lost after postback

W

Wen Ou

hi

i developed a user controls in a web application. the user controls will be
created dynamically and put them into a placeholder. when i click a buttom,
all controls with data are lost. i spent 3 days to find a solution. but...

some articles said using viewstate can fix it. but i still don't understand
how it work. could somebody give me an example? or other mathods can avoid
this problem.

how about using custom control? it have the same problem? please tell me

i need your help

thank you

wen ou
 
W

Wen Ou

Hi Ken

in my web application, user controls will be loaded into a placeholder
dynnamically depend on the number of parameters of SP. filling value to user
controls. then submit these data to server and diaplay the previous user
contorls with value. maybe some controls will added again. this is the
background of my project.

please help me. i have been thinking this problem for 4 days

thank you
 
W

Wen Ou

thank you for your reply

i would like to know how saveviewstate and loadviewstate work. this control
is suitable for me because i used a user control i wrote. it store the value
of 4 parameters.

do you have other idea?

thank you

wen ou
 
W

Wen Ou

thank you for your reply

i would like to know how saveviewstate and loadviewstate work in my
application. do you have other example or articles?

waiting for you. thank you

wen ou
 

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,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top