Ejemplo n.º 1
0
    public void GetModuleNameFromDataBase()
    {
        List <PackagesInfo> objPackageList = PackagesController.GetPackagesByPortalID(GetPortalID, string.Empty);
        StringBuilder       packageName    = new StringBuilder();

        foreach (PackagesInfo objPackage in objPackageList)
        {
            packageName.Append(objPackage.FriendlyName.ToLower());
            packageName.Append(",");
        }
        hdnModuleListFromDatabase.Value = packageName.ToString();
    }
Ejemplo n.º 2
0
 /// <summary>
 /// This is used to bind the gridview with package info
 /// </summary>
 private void BindGrid(string searchText)
 {
     try
     {
         gdvExtensions.PageSize   = int.Parse(ddlRecordsPerPage.Text);
         gdvExtensions.DataSource = PackagesController.GetPackagesByPortalID(GetPortalID, searchText);
         gdvExtensions.DataBind();
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }