protected string EncodeError(string error) { Hashtable hashtable = new Hashtable(); hashtable["generalError"] = error; return(this.Encode("/*^^^DX^^^*/" + HtmlConvertor.ToJSON(hashtable))); }
protected string EncodeRedirect(string redirectUrl) { Hashtable hashtable = new Hashtable(); hashtable["redirect"] = redirectUrl; return(this.Encode("/*^^^DX^^^*/" + HtmlConvertor.ToJSON(hashtable))); }
protected override void GetCreateClientObjectScript(StringBuilder stb, string localVarName, string clientName) { base.GetCreateClientObjectScript(stb, localVarName, clientName); stb.AppendFormat("{0}.SetParentGridView({1});\n", localVarName, HtmlConvertor.ToJSON(Page.ToClientID(ParentGridViewID))); stb.AppendFormat("{0}.SetHeaderSearchUndefined({1});\n", localVarName, HtmlConvertor.ToJSON(HtmlEncode(HeaderSearchUndefined))); stb.AppendFormat("{0}.SetHeaderSearchPerformed({1});\n", localVarName, HtmlConvertor.ToJSON(HtmlEncode(HeaderSearchPerformed))); stb.AppendFormat("{0}.SetHeaderSearchCancelled({1});\n", localVarName, HtmlConvertor.ToJSON(HtmlEncode(HeaderSearchCancelled))); }
protected void Callback_Callback(object source, CallbackEventArgs e) { e.Result = HtmlConvertor.ToJSON(GetCallbackResult(e.Parameter)); }
protected override void GetCreateClientObjectScript(StringBuilder stb, string localVarName, string clientName) { base.GetCreateClientObjectScript(stb, localVarName, clientName); stb.AppendFormat("{0}.SetParentGridView({1});\n", localVarName, HtmlConvertor.ToJSON(Grid.ClientID())); }