Beispiel #1
0
    private void Search_Participant_Person()
    {
        DropDownList ddl = UC_DropDownListByAlphabet_Search_Participant.FindControl("ddl") as DropDownList;

        Session["order"]                = "";
        Session["searchKey"]            = ddl.SelectedValue;
        Session["searchTypeProperties"] = "P";
        ChangeIndex2Zero4SearchDDLs(false);
        ddl.SelectedValue = Session["searchKey"].ToString();
        HandleQueryType();
        upProperty.Update();
    }
Beispiel #2
0
 public void ChangeIndex2Zero4SearchDDLs(bool bResetUC)
 {
     gvProperty.SelectedIndex             = -1;
     ViewState["SelectedValueProperties"] = null;
     ClearProperty();
     try { ddlProperty_Search_Zip.SelectedIndex = 0; }
     catch { }
     try { ddlProperty_Search_FarmBusiness.SelectedIndex = 0; }
     catch { }
     try { ddlProperty_Search_Township.SelectedIndex = 0; }
     catch { }
     try { ddlProperty_Search_County.SelectedIndex = 0; }
     catch { }
     if (bResetUC)
     {
         try { UC_DropDownListByAlphabet_Search_Participant.ResetControls(); }
         catch { }
     }
 }