At runtime, the text attribute of an imageButton is not available. How can I set it?
Mark <><
You need to use the client-side object model (CSOM) of WebImageButton to set its text, specifically its setText() function.
var imgbtn = ig_getWebControlById("<% =WebImageButton1.ClientID %>");imgbtn.setText("My New Text");
When I try ig_getWebControlById or iged_getById for my image button it returns null. When I try document.getElementById for the same id, it works. But I can't use the setText method on what is returned in the document version. Help? Is there a typo in your solution?