CRM中常用代码

由查询类型来取不同的数据   
string QueryType=(string)ViewState["QueryType"];
    string querycode="";
    if(QueryType.Trim()!="全部")
     if(QueryType.Trim()=="组区域")
     {
      querycode=DropDownList1.SelectedValue;
     }
     else
     {
      querycode=DropDownList2.SelectedValue;//地级市
     }
原文地址:https://www.cnblogs.com/hhq80/p/978400.html