| | |
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 |
Tag cloud for C#
.net access algorithm array barchart bitmap box buttons c# chat check checkbox class client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees draganddrop drawing encryption enum event excel file files form format forms ftp function gdi+ httpwebrequest image index input install java label list listbox listener login mandelbrot math mouseclick mysql networking object operator oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






