Answer: Attributes property is used to associate any Javascript function on server side.It is used with controls like command button,link button and so on.
By using this property,we can fire any JS function in server side.
For Example:-
On code behind on Page load event we can write:
Button1.Attributes.Add("onclick", "js function();");
Asked In: Many Interviews |
Alert Moderator