protected void Get_Role()
    {
        DataTable dt = objMenuBLL.Get_Role();

        ddlCopyFromRole.DataSource     = dt;
        ddlCopyFromRole.DataTextField  = "Role";
        ddlCopyFromRole.DataValueField = "Role_Id";
        ddlCopyFromRole.DataBind();
    }
Esempio n. 2
0
    public string GetRoleList()
    {
        try
        {
            return(UDFLib.CreateHtmlTableFromDataTable(objMenuBLL.Get_Role(),
                                                       new string[] { "", "" },
                                                       new string[] { "Role", "Role_Id" }, ""));
        }

        catch
        {
            throw;
        }
    }