title: How to Save a menu items (text) into dynamic Session states
body: <p>Okay , below is the code for populating menu items dynamically from a database table.
  now what i want to do is to save the <strong>"PageHeader"</strong> from the database into <strong>sessions states</strong> so that i can use those session values to check the authorization of a user on Page-load of different content pages.
  now since every user have different no. of authorized pages so the no. of sessions will vary from user to user. the values of those sessions will be matched with a <strong>PageHeader</strong> variable on the Page-Load of content pages.</p>
  
  <ol>
  <li>can someone help me how to go about it.</li>
  <li>also i want to change the style of the menu-bar which is otherwise
  default and very  simple.</li>
  </ol>
  
  <hr>
  
  <pre><code>private void GetMenu()
  {
      DataTable dt = new DataTable();
      dt = bll.master_Menu_Bar(en);
      DataRow[] drow = dt.Select();
      foreach (DataRow dr in drow)
      {
          MenuBar.Items.Add(new MenuItem(dr["PageHeader"].ToString(), dr["PageId"].ToString(), "", dr["PageUrl"].ToString()));
      }
  </code></pre>
  
  <hr>
  
  <p>business logic layer method used in above code is:</p>
  
  <pre><code>public DataTable master_Menu_Bar(EntityLayer.Entity en)
      {
          return dll.ReturnSingleTable("Select PageHeader,PageUrl from authorized_view where Emp_Mobile="+ en.cal_EmpMobile);
      }
  </code></pre>