| | |
Restore the properties of dynamic controls during postbacks
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2005
Posts: 15
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Mar 2006
Posts: 84
Reputation:
Solved Threads: 1
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
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
![]() |
Similar Threads
- how to make the aspx page at runtime (ASP.NET)
- Reading Controls from Panel (ASP.NET)
- dynamic tables (ASP.NET)
- retrieving ids from dynamically created controls in asp.net (ASP)
- ASP.NET / C# Dynamic Control (ASP.NET)
- Creating new controls through code. (VB.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: radio button
- Next Thread: calling session variable
| Thread Tools | Search this Thread |
.net 2.0 3.5 ajax alltypeofvideos appliances asp asp.net beginner box browser businesslogiclayer button c# cac checkbox class commonfunctions compatible content contenttype control countryselector courier dataaccesslayer database datagrid datagridview datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv gridview gudi iis javascript list listbox login menu microsoft mouse mssql nameisnotdeclared news novell numerical opera order panelmasterpagebuttoncontrols problem radio ratings redirect registration relationaldatabases reportemail schoolproject search security serializesmo.table sessionvariables silverlight smoobjects software sql sql-server sqlserver2005 ssl tracking treeview validatedate validation vb.net videos vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment webprogramming webservice wizard xsl youareanotmemberofthedebuggerusers





