my coding is working in windows form but same coding is not working in webform. i m pasting my code
.style1
{
width: 100%;
}
.style2
{
width: 184px;
}
oncheckedchanged="RadioButton1_CheckedChanged" /> | |
oncheckedchanged="RadioButton2_CheckedChanged" /> | |
oncheckedchanged="RadioButton3_CheckedChanged" /> | |
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void RadioButton1_CheckedChanged(object sender, EventArgs e)
{
if (RadioButton1.Checked == true)
{
Button1.Visible = true;
Button2.Visible = false;
Button3.Visible = false;
RadioButton2.Checked = false;
RadioButton3.Checked = false;
}
}
protected void RadioButton2_CheckedChanged(object sender, EventArgs e)
{
if (RadioButton2.Checked == true)
{
Button1.Visible = false;
Button2.Visible = true;
Button3.Visible = false;
RadioButton1.Checked = false;
RadioButton3.Checked = false;
}
}
protected void RadioButton3_CheckedChanged(object sender, EventArgs e)
{
if (RadioButton3.Checked == true)
{
Button1.Visible = false;
Button2.Visible = false;
Button3.Visible = true;
RadioButton1.Checked = false;
RadioButton2.Checked = false;
}
}
}
Brijendra GautamPosted Mar 18, 2014, 9:18 AM
Nitin SharmaPosted Mar 22, 2014, 12:39 AM
thank you very much for your help
Brijendra GautamPosted Mar 21, 2014, 5:37 AM
Write style="position:absolute;"
and then mouseover the radio button at corner untill you'll get the move cursor and move the control wherever you want. Top and left will get adjusted on its own.
Nitin SharmaPosted Mar 20, 2014, 8:15 AM
Brijendra GautamPosted Mar 19, 2014, 10:00 AM
Nitin SharmaPosted Mar 19, 2014, 6:15 AM