943,718 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 3938
  • ASP.NET RSS
Mar 29th, 2006
0

Restore the properties of dynamic controls during postbacks

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ramareddy_dotne is offline Offline
15 posts
since May 2005
Mar 29th, 2006
0

Re: Restore the properties of dynamic controls during postbacks

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
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
web_developer is offline Offline
84 posts
since Mar 2006
Mar 29th, 2006
0

Re: Restore the properties of dynamic controls during postbacks

use the viewstate
Reputation Points: 10
Solved Threads: 0
Newbie Poster
SergioGP is offline Offline
8 posts
since Mar 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: radio button
Next Thread in ASP.NET Forum Timeline: calling session variable





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC