Restore the properties of dynamic controls during postbacks

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2005
Posts: 15
Reputation: ramareddy_dotne is an unknown quantity at this point 
Solved Threads: 0
ramareddy_dotne ramareddy_dotne is offline Offline
Newbie Poster

Restore the properties of dynamic controls during postbacks

 
0
  #1
Mar 29th, 2006
Im creating dynamic checkboxes on page_load(by getting the number of floors of a building from database)

if user checks any one of floor checkboxes and hits generateflats button(Postback) then I will refer to the flats existing in that particular floor and I will generate flats(checkboxes ) dynamically.

the problem is I cant get the properties of these checkboxes if I hit the save button.


How can I restore the properties of the dynamic controls(Check boxes)

This is very much urgent for my project Plzzzzzzzzz help me
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 84
Reputation: web_developer is an unknown quantity at this point 
Solved Threads: 1
web_developer web_developer is offline Offline
Junior Poster in Training

Re: Restore the properties of dynamic controls during postbacks

 
0
  #2
Mar 29th, 2006
man, my explanation isnt clear, but as i understood and correct me if i am wrong.
u r creating checkboxes dynamically, representing floors or flats in certain floor.
ur problem is when u create checkbox represneting flats in specific floor and then u want to restore the checkboxes representing the total floors created during the page_load.

if that is the problem, u have to create hidden varaiable and put in it the number of floors created during the page_load. then when u want to restore the floors just refer to this var and create checkboxes and no need to read from database twice.

sam
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 8
Reputation: SergioGP is an unknown quantity at this point 
Solved Threads: 0
SergioGP SergioGP is offline Offline
Newbie Poster

Re: Restore the properties of dynamic controls during postbacks

 
0
  #3
Mar 29th, 2006
use the viewstate
SergioGP

Search your feelings...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC