Rajesh Kamalakshan
Friday, April 23, 2010
How to assign value to asp.net literal or Label using JavaScript?
For an asp.net Label you can assign value using the innerText property
document.getElementById ('<%=Label.ClientID %>').innerText='Hellow World';
For an asp.net Literal you can assign value using the innerHTML property
document.getElementById ('<%=Label.ClientID %>').innerHTML=' Hellow World ';
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment