I am implementing Javascript Validation on an ASP.Net page that is inside a Master Page. The control IDs are changing, so I can't use the original control IDs for validation. I looked on the Net and got the suggestion to build the script dynamically, and add it to the page using RegisterStartupScript. I don't like that solution because it is not maintainable.
What are the ways I can perform javascript validation on this page and arrange for the client IDs?
Another solution just asked me to go ahead and use the final clientIDs that appear in the browser. That is workable and I'd prefer it to creating the script on runtime. What's your opinion?