asp.net

  • Thread starter Thread starter sreeju
  • Start date Start date
S

sreeju

i have added two text boxes programatically

it gets displayed when i press abutton

how to retrieve values from these two text boxe
-
sreej
 
First things first..

When u create a control DYNAMICALLY ... its yo responsibility to 'RECREATE' it every time a postback occurs ... that is because we work in a stateless envmt and every control(design-time) will be created by the page @ runtime EACH time the page is loaded (post-back) ...

Also the VIEWSTATE of that control will be saved (by default) and even u'll observe that if u'll recreate yo control in post-back (i.e in yo Page_Load event) its viewstate will be automatically assigned to it !!

Just recreate yo control in Page_Load then u'll get everythin

Tell me if it doesn't work([email protected])
 
Back
Top