hi one urgent help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • spriyasenthil
    New Member
    • Nov 2006
    • 9

    hi one urgent help

    hi

    Am having one Gridview and in tht Gridview am having some form name with some checkboxes.

    If the checkbox is checked , the value of the form is one! else it is zero!

    Am creating an XML file by using these form names and checkbox values!

    According to these form values as 1, it should load in the menu tht is in MasterPage.

    How can i do this?

    Can u plz give me an idea or example for this!
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    How far have you gotten? What is your platform?

    Comment

    • spriyasenthil
      New Member
      • Nov 2006
      • 9

      #3
      Am working on Asp.net with C#.net and I got upto XML conversion.

      Wht i did is i created a datatable and binded like this below:

      for (int i = 0; i < GridView1.Rows. Count; i++)
      {
      string strGrd;
      int check;

      myrow = myDataTable.New Row();
      strGrd = GridView1.Rows[i].Cells[0].Text;
      myrow[GridView1.Colum ns[0].HeaderText] = strGrd;

      check = ((CheckBox)(Gri dView1.Rows[i].Cells[1].Controls[1])).Checked == true ? 1 : 0;
      myrow[GridView1.Colum ns[1].HeaderText] = check;
      }

      DataSet ds = new DataSet();
      ds.Tables.Add(m yDataTable);

      string sPath = System.AppDomai n.CurrentDomain .BaseDirectory;
      ds.WriteXml(sPa th + "/SetPermission.x ml");

      like this i created my XML, Now i want to read this XML file and to create a dynamic menu ,fact here is, tht MENU contol is in my masterpage.

      How to do this?

      Comment

      • spriyasenthil
        New Member
        • Nov 2006
        • 9

        #4
        can any members help me for this issue plzzzz

        Comment

        • spriyasenthil
          New Member
          • Nov 2006
          • 9

          #5
          or else plz tell mee how to dynamically load some menu and disable some items in menu- that is in masterpage

          And am having the form names and values like 0 or 1 in database.

          If it is like this

          Form1 1

          Form2 0

          means, form1 should display in the menu and form2 shouldnt display in the menu tht menu control is in masterpage.

          how to do this??

          PLZZ help mee

          Comment

          Working...