State Management problem

nithinramesh

New member
Joined
Nov 13, 2005
Messages
2
Programming Experience
3-5
Hi all,

Am developing a web application, in which all the controls are dynamically generated. I want some controls to retain it value after postback and for some controls i dont want to retain(For these controls i'll put values from the code). Currently what i found that if I didnt chanage the ID of a control the value will retain after postback. So every time the page postback all the control ID's will be same. But now the problem what am facing is even if I put some values to the controls for which i dont want to maintain the state, it is not coming. So how can I do that?

Thanks in advance,
Nithin
 

mdserif

New member
Joined
Dec 21, 2005
Messages
4
Programming Experience
1-3
you have to set the property of the controls to AutoPostback = True only for the control which u want to retain the value . the rest control should be
AutoPostback= False ,
 

mdserif

New member
Joined
Dec 21, 2005
Messages
4
Programming Experience
1-3
Put the controls as runat = server before u start
 
Top Bottom