hi...
in my project i have a panel named as bodyPanel.And this panel control have number of buttons which are generated by using for loop. i want to store the selected buttons in a list type through it's name. and after press the submit button...the selected controls in the panel must be in disable state ..and remaining all are in enabled state... i tried it by using 'foreach' loop and 'for' loop but i am failed to achieve it....
please help me....


Nitesh KejriwalRank #253 · 9.9K reputationPosted May 13, 2014, 10:23 PM EDT
Naredla NitheshRank #4,252 · 355 reputationPosted May 13, 2014, 10:33 PM EDT
Nitesh KejriwalRank #253 · 9.9K reputationPosted May 13, 2014, 10:38 PM EDT
Naredla NitheshRank #4,252 · 355 reputationPosted May 13, 2014, 10:45 PM EDT
Nitesh KejriwalRank #253 · 9.9K reputationPosted May 13, 2014, 10:48 PM EDT
2. Disable the panel
2. Enable the clicked button.
protected void btn_Click(object sender, EventArgs e)
{
Button b = (Button)sender;
if(b!=null)
{
pnl.Enabled=false;
b.Enabled=true;
}
}
Naredla NitheshRank #4,252 · 355 reputationPosted May 13, 2014, 10:56 PM EDT
1.buttons which are in panel
2.proceed button on form(not in panel) for submitting form
if we click on submit button the selected buttons in panel control will go into disable state..
Nitesh KejriwalRank #253 · 9.9K reputationPosted May 13, 2014, 10:58 PM EDT
Naredla NitheshRank #4,252 · 355 reputationPosted May 13, 2014, 11:08 PM EDT
assume that we need to develop a project for booking tickets for a movie theater.and we are generating the seats buttons of the theater using for loop.and when the user clicks on the buttons .the respective buttons must be selected...and when the user clicks on proceed button.the selected buttons must be stored in list item and depending up on the list content the buttons in the panel will be in disable state.
Nitesh KejriwalRank #253 · 9.9K reputationPosted May 13, 2014, 11:24 PM EDT
You will need to do the following steps-
1. Create a dictionary object with