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 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Khan Abrar AhmedPosted Jun 10, 2014, 9:43 AM
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