public virtual void Update(string html) { string template = "if({0}.rendered){{{0}.update({1});}}else{{{0}.html={1};}}"; this.AddScript(template, this.ClientID, JSON.Serialize(html)); }