/// <summary> /// Binds the object to its datasource /// </summary> public override void DataBind() { CustomPage page = this.Page as CustomPage; page.RegisterScriptFile(lw.CTE.Files.CkEditor, lw.CTE.Files.CkEditorFile); this.Attributes.Add("class", "ckeditor"); base.DataBind(); }
public override void DataBind() { if (bound) { return; } bound = true; //System.Web.UI.WebControls.Panel panel = new System.Web.UI.WebControls.Panel(); //panel.ID = this.ID; //this.Controls.Add(panel); CustomPage p = this.Page as CustomPage; if (p != null) { p.RegisterScriptFile(this._scriptId, "http://maps.google.com/maps?file=api&v=2&key=" + Key); p.RegisterScriptFile(this._scriptId + "_Local", string.Format("{0}/js/Maps.js", WebContext.Root)); p.RegisterLoadScript("load map", string.Format("lw_map.init(\"{0}\");", this._id), true); } base.DataBind(); }