What is the use of Attributes property?

 Posted by vishalneeraj-24503 on 5/3/2014 | Category: JavaScript Interview questions | Views: 476 | Points: 40
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 

Comments or Responses

Login to post response