ravi kiran

ravi kiran

  • NA
  • 104
  • 39k

How to create dynamic menu by using entity framework using c#

Oct 19 2012 1:45 AM
Hi,
  i want to create dynamic menu by using entity framework .Here i am sending  attachment by using trying for the output but getting some errors please once check my attachment its an urgent requirement for me.


Navigation table which i used in code :
 
NavigationId  NavigationName   ParentNavigationId    NavigationOrder   Url

              1                Home                      NULL                    1               //home.aspx
               2                Contacts                 NULL                    1 
               3               Create Contact           2                        1         //CreateContact.aspx
               4                View Contacts            2                       2           //ViewContacts.aspx
               5                Contact Report           2                       3          //ContactReport.aspx
               6                Import Contacts         2                       4        //ImportContacts.aspx
               7                 Opportunity           NULL                    1 
              8                 Create Opportunity   7                        1    //CreateOpportunity.aspx
              9                View Opportunity       7                       2    //ViewOpportunity.aspx
           10                View Opportunity Reports   7            3 //ViewOpportunityReports.aspx
           11                Documents NULL               1 
            12                   Create Document          11              1  //CreateDocument.aspx
           13               View Documents              11              2     //ViewDocuments.aspx
             14              Accounts NULL               1 
            15                  Create Account           14              1          CreateAccount.aspx
          16                  View Accounts               14               2          //ViewAccount.aspx
           17                 Import Accounts            14             3          //ImportAccounts.aspx
            18                    View Account Reports   14          4      //ViewAccountReports.aspx
 

Attachment: menu3.zip