This Damn Thing Should Work

Friday, June 17, 2005

ASP.NET, Javascript, and Server Controls

I've mentioned before that I'm a Javascript junkie - I find myself using it quite a bit. ASP.NET made it a little tougher in the sense that when using server controls, the id assigned to the control varies depending on the situation. In a normal situation, the id assigned is used. But when used in a user control, the name of the user control is appended to the beginning of the id. As long as you understand these rules, its possible to get it all to work.

Today I found this - which looks like it takes some of the guesswork out by using the ClientId attribute of a server control...

Accessing Server Controls Using JavaScript

0 Comments:

Post a Comment

<< Home