I have this Asp.net page and I am trying to set label and image visible and diplay text in the label on click event on client side.
This is asp code:
<td align="right">
<asp:Image ID="AlertPic" runat ="server" Visible="false" ImageUrl="~/images/i_AlertWarning.png" />
<asp:Label ID="lblError" runat ="server" Visible="false" CssClass="errorMessage"></asp:Label>
</td>
on javascript side:
function xx(sender,eventArgs){
document.getElementById('lblError').style.visibility = "visible";
document.getElementById('AlertPic').style.visibility = "visible";
document.getElementById('lblError').innerHTML = "Please fill in Search Criteria";
}
This does not work.