Ok. But check for subsequent postbacks. Maybe the attribute doesn't get stored into ViewState and you'' have to add it eachtime you load the page. If so, don't check for !isPostBack and load it every time...