| | |
CheckBoxList Control
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2007
Posts: 10
Reputation:
Solved Threads: 0
[I have an application where , i have a radiobuttonlist having 2 radio buttons radiobuttons RB1 & RB2
and there are 6 checkBoxes CB1 thru CB6
If RB1 is selected then CB6 shld be disable /invisible and if RB2 is selected then all the CBs shld be enabled. How do i do this?
i get an error Object reference not set to an instance of an object
plz help.
thank you
and there are 6 checkBoxes CB1 thru CB6
If RB1 is selected then CB6 shld be disable /invisible and if RB2 is selected then all the CBs shld be enabled. How do i do this?
C# Syntax (Toggle Plain Text)
protected void rb_OnIndexChanged(object sender, System.EventArgs e) { if (rb.SelectedValue=="A") { cb6.Enabled=true; } }
plz help.
thank you
Last edited by Tekmaven; Jul 22nd, 2008 at 7:37 pm. Reason: Code tags
try this :
C# Syntax (Toggle Plain Text)
private void RB1_CheckedChanged(object sender, System.EventArgs e) { if (RB1.Checked == true) { C1.Enabled = true; C2.Enabled = true; C3.Enabled = true; C4.Enabled = true; C5.Enabled = true; C6.Enabled = false; } } private void RB2_CheckedChanged(object sender, System.EventArgs e) { if (RB2.Checked == true) { C1.Enabled = false; C2.Enabled = false; C3.Enabled = false; C4.Enabled = false; C5.Enabled = false; C6.Enabled = false; } }
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
![]() |
Similar Threads
- Checkbox (ASP.NET)
- RadioButtonList matter (ASP.NET)
Other Threads in the C# Forum
- Previous Thread: Update GridView
- Next Thread: Extracting data from images MIME
| Thread Tools | Search this Thread |
.net access algorithm array asp barchart bitmap box broadcast buttons c# check checkbox client column combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development display draganddrop drawing encryption enum equation event excel file form format formbox forms formupdate function gdi+ httpwebrequest image index input install java label linux list listbox mandelbrot math mouseclick mysql networking operator packaging parse path photoshop picturebox pixelinversion post powerpacks programming radians regex remote remoting reporting richtextbox robot server sleep socket sql statistics stream string table text textbox thread time timer transform treeview update usercontrol validation visualstudio webbrowser wfa windows winforms wpf xml






