I am trying to display this section
<tr>
<div id="contact" class="uniForm" style="visibility: hidden; display: none;">
<fieldset class="blockLabels">
<legend style="font-size: 10pt;">Contacts</legend>
<div class="ctrlHolder">
<%= this.strContactInfo%>
</div>
</fieldset>
</div>
</tr>
only if this condition is met:
if (iStatus == 2)
{
lblAccessError2.Text = "Failure. ";
Page.ClientScript.RegisterStartupScript(this.GetType(), "clientscript1", "document.getElementById('contact').style.visibility = 'visible';", true);
ModalPopupExtender1.Show();
}
You forgot to change the element’s
displayrule also. You need to set it according to theuniFormclass, or by default toblock.For the record, a working example.