label text change to call for pageload/ javascript
<p>basically i got no idea to starts so i cant provide any better code
i have a null label</p>

<pre><code>lblErrorMsg = "" ;
</code></pre>

<p>once if there are any error, my label will display error msg with css</p>

<pre><code>lblErrorMsg.Text = "some error Msg";
</code></pre>

<p>at the same time i am trying to display another image label as well, but i dont want to make it like button click then display the error msg, due to this is an on-going project, so there are lot of button, so what i want to ask is, is there any method can perform during page load to detect label text change?</p>

<p>something like</p>

<pre><code>pageload(){
    check lblErrorMsg
    if(lblErrorMsg.Text!=""){
         lblImg.Visible= true;
     }else{
         lblImg.Visible= false;
     }
}
</code></pre>
