Hi Sowjanya,
My understanding of your issue is that you cannot change the lable's text property on the client side by using
document.getElementById("<%=lblClienterr.ClientID%>").value ="Enter Process Name"; If I have misunderstood, please let me know.
We will find that the Label control displays like"<span id="Label1">this is a test</span>"on the client side by checking the html code of the page. As we know, <span> element has no value property, so document.getElementById("<%=lblClienterr.ClientID%>").value ="Enter Process Name" will not change its text. In this case, we can using innerText. Here is my sample:
document.getElementById("<%=Label1.ClientID%>").innerText = "Enter Process Name";
Best Regards,
Jonathan
No comments:
Post a Comment