Esempio n. 1
0
    public void fill_mainmodules()
    {
        try
        {
            lst_module.DataSource     = objBLL.GetCollection_AllModules();
            lst_module.DataTextField  = "Menu_Short_Discription";
            lst_module.DataValueField = "mcodeseq";

            lst_module.DataBind();
        }
        catch { }
    }
    //Method used to Bind Main Module names to the drop down list.
    public void BindModule()
    {
        DataTable dt = objMenuBLL.GetCollection_AllModules();

        if (dt != null)
        {
            if (dt.Rows.Count > 0)
            {
                ddlModule.DataSource     = dt;
                ddlModule.DataTextField  = "Menu_Short_Discription";
                ddlModule.DataValueField = "mcodeseq";
                ddlModule.DataBind();
            }
        }
        ddlModule.Items.Insert(0, new ListItem("-SELECT-", "0"));
    }