Friday, January 30, 2009

Javascript ASP.Net

Always use ID instead of name to refer to controls in the ASP/ASP.Net page. If we use name, then the control cannot be idetified in javascript. 

If the control has only name and ID is not associated with the control, then add the ID to the control and then use this ID to identify the control in javascript

No comments: