private void Store_LoadComplete(object sender, EventArgs e)
{
if (this.IsDynamic)
{
return;
}
if (this.Page == null)
{
return;
}
string _ea = this.Page.Request["__EVENTARGUMENT"];
if (_ea.IsNotEmpty())
{
string _et = this.Page.Request["__EVENTTARGET"];
if (_et == this.UniqueID)
{
RaiseAjaxPostBackEvent(_ea);
}
return;
}
if (this.SubmitConfig == null)
{
return;
}
XmlNode eventArgumentNode = this.SubmitConfig.SelectSingleNode("config/__EVENTARGUMENT");
if (eventArgumentNode == null)
{
throw new InvalidOperationException(
"Incorrect submit config - the '__EVENTARGUMENT' parameter is absent");
}
XmlNode eventTargetNode = this.SubmitConfig.SelectSingleNode("config/__EVENTTARGET");
if (eventTargetNode == null)
{
throw new InvalidOperationException(
"Incorrect submit config - the '__EVENTTARGET' parameter is absent");
}
if (eventTargetNode.InnerText == this.UniqueID)
{
RaiseAjaxPostBackEvent(eventArgumentNode.InnerText);
}
}