but web user control in your asp.net page
init Fetch_xml user control propery
and init ColumnsHeaderAndMaps that contain attribute display name and schema name
)

string fetch = @"<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>"
+ "<entity name='contact'>"
+ " <attribute name='fullname' />"
+ "<attribute name='telephone1' />"
+ "<order attribute='fullname' descending='false' />"
+ " </entity>"
+ "</fetch>";
AdVancedCrmSearch.Fetch_xml = fetch;


Dictionary<string,string> ColumnsHeaderAndMaps =new Dictionary<string,string>();
if (ColumnsHeaderAndMaps.Keys.Contains("fullname")==false)
{
ColumnsHeaderAndMaps.Add("fullname", "full name");
}
if (ColumnsHeaderAndMaps.Keys.Contains("telephone1") == false)
{
ColumnsHeaderAndMaps.Add("telephone1", "telephone number");
}
AdVancedCrmSearch.ColumnsHeaderAndMaps = ColumnsHeaderAndMaps;

Last edited Mar 6, 2014 at 3:19 PM by chandoklow, version 1