visible and a
visible=false like
if (chk.SelectedIndex == 0)
{
divmain.Visible = true;
divcompany.Visible = false;
}
in aspx this RadioButtonList,divcompany and divmain is under UpdatePanel
ITS WORKING FINE On Local but not working on server when i select radiobutton the divmain becomes visible after 3-5 mins
so plz help me in this ....
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Khan Abrar AhmedRank #778 · 3K reputationPosted Jun 10, 2014, 5:43 AM EDT
for this
after page post .cs file
register the client event
if (RadioButtonListID.Attributes["OnClick"] == null)
RadioButtonListID.Attributes.Add("OnClick", "return showorHidDiv(this,getElementById('" + divmain.ClientID + "'),getElementById('" + divcompany.ClientID + "'));");
else
RadioButtonListID.Attributes["OnClick"] = "return showorHidDiv(this,getElementById('" + divmain.ClientID + "'),getElementById('" + divcompany.ClientID + "'));";
or
foreach(ListItem RadioButton in RadioButtons){
RadioButton.Attributes.Add("onclick", "showorHidDiv(this,getElementById('" + divmain.ClientID + "'),getElementById('" + divcompany.ClientID + "'))");
}
and in the aspx page call the showorHidDiv method like