Beispiel #1
0
 public void BindSrchSchm(long PackageId)
 {
     try
     {
         if (PackageId == 0)
         {
             ddlSrchScheme.DataSource     = MembershipController.GetSchemes();
             ddlSrchScheme.DataTextField  = "schemeName";
             ddlSrchScheme.DataValueField = "ID";
             ddlSrchScheme.DataBind();
         }
         else
         {
             ddlSrchScheme.DataSource     = MembershipController.GetSchemesByPackageId(PackageId);
             ddlSrchScheme.DataTextField  = "schemeName";
             ddlSrchScheme.DataValueField = "ID";
             ddlSrchScheme.DataBind();
         }
         ddlSrchScheme.Items.Insert(0, new ListItem("Select Scheme", "0"));
         ddlSrchScheme.SelectedIndex = 0;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }