Hello All,
I am working on a capstone project. Part of it is to create a web page using C# in MS Visual Studio 2003 (.Net framework).
I have several tabs. Each tab has two panels (left and right). The left panel contains a number of radioButtons. The right panel contains stacked panels of the appropriate information for each radioButton.
I am stuck trying to write code to display the right panel's information based on which radioButton is selected on the left panel.
Should I be using DataBinding?
Right now, I click the radioButtons on the left panel, but the right panel does not change.
Here is part of the code of things I have tried (that have not worked). Most of it dittos for each panel and radioButton:
//radioButton1private void radioButton1_CheckedChanged(object sender, System.EventArgs e)
{
}
//panel2
private void panel2_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
}
//this is my pseudocode logic of what I want to happen
if (radioButton1.Checked == true)
{ panel2.Visible = true;//and all other panels are not visible}
else
panel2.Visible = false; //or some text message or blank panel or some default
I found this somewhere. Will this help?
//radioButton3.Attributes.Add("onclick", panel4.Visible = true);