Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am adding items to CheckBoxList on runtime.. when user clicks on a row in GridView.

a moodal popup screen will appear which contains a checkboxes set in code behind file. after user clicks a button on moodal popup screen selecting atleast one checkbox that action will completed.

But the problem is when user selects and click on the popup screen button in code behind file i am checking there are no items in that CheckBoxList to check which item user checked.

help me in this issue.. as i am thinking CheckBoxList will not get cleared once post back happens..
Posted

Please use
C#
if(!page.ispostback)
in pageload while you are filling your items

Regards
Sebastian
 
Share this answer
 
v3
Instead of keeping CheckBoxList to which data loads at runtime, i placed on normal web page.

After selecting the items in checkbox list user needs to click on submit button.
 
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