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 GautamRank #1,900 · 778 reputationPosted Mar 18, 2014, 5:18 AM EDT
Nitin Sharma152 reputationPosted Mar 19, 2014, 2:15 AM EDT
Brijendra GautamRank #1,900 · 778 reputationPosted Mar 19, 2014, 6:00 AM EDT
Nitin Sharma152 reputationPosted Mar 20, 2014, 4:15 AM EDT
Brijendra GautamRank #1,900 · 778 reputationPosted Mar 21, 2014, 1:37 AM EDT
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 Sharma152 reputationPosted Mar 21, 2014, 8:39 PM EDT
thank you very much for your help