Click here to Skip to main content
15,901,035 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
question for you, thats confusing me

I have a website ( asp.net / vb.net ) where a user has an option of 5 buttons to push. on click of the buttons , I use a 'ModalPopupExtender' to create a pop up containing options depending on which one is pressed. The pop up contains a placeholder which inturns contains dynamically created checkboxes, values coming from a database
the user then select the options they want and clicks save - on click i need to retreive the values of the check boxes

a quick example
2 buttons ( football, cricket )
click football, pop up appears with 4 check boxes ( dynamically created )
click cricket , pop up appears with 6 check boxes ( dynamically created )
users checks 2 boxes and clicks save
on save i need to retreive the vales of the checkboxes

issue
when i look at the placeholder.controls there is only 1 item
I've seen an example saying i should created the boxes on the page_load event, but at that stage I dont know what boxes Im creating

its driving me mad
any help / advice will be most appreciated


Regards
Matt
Posted

1 solution

Hi Matt,

If the popup is it's own aspx form, then you should create the controls during Page_Init() of the popop to persist the controls during post-back.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900