473,386 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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!
Mar 19 '07 #1
4 1006
kenobewan
4,871 Expert 4TB
How far have you gotten? What is your platform?
Mar 19 '07 #2
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.NewRow();
strGrd = GridView1.Rows[i].Cells[0].Text;
myrow[GridView1.Columns[0].HeaderText] = strGrd;

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

DataSet ds = new DataSet();
ds.Tables.Add(myDataTable);

string sPath = System.AppDomain.CurrentDomain.BaseDirectory;
ds.WriteXml(sPath + "/SetPermission.xml");

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?
Mar 20 '07 #3
can any members help me for this issue plzzzz
Mar 21 '07 #4
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
Mar 21 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Stefan Bauer | last post by:
Hi NG, we've got a very urgent problem... :( We are importing data with the LOAD utility. The input DATE field data is in the format DDMMYYYY (for days) and MMYYYY (for months). The target...
8
by: Mike | last post by:
Hello, I have a few rather urgent questions that I hope someone can help with (I need to figure this out prior to a meeting tomorrow.) First, a bit of background: The company I work for is...
2
by: Dimitri | last post by:
PLEASE HELP,I HAVE A DATABSE WITH MULTIPLE RECORDS AS OUTLINED BELOW EMP NO LEVEL NEXTINCREASE WAGETYPE UNIT 1000 1 0 1000 1000 1 0 1002 ...
8
by: Tim::.. | last post by:
Can someone please tell me why I keep getting the following error for some of my web application users but not others??? Even though the application runs from a central webserver??? Thanks for...
16
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
7
by: zeyais | last post by:
Here is my HTML: <style> ..leftcolumn{float:left;width:300px;border: 1px solid #ccc} ..rtcolumn{float:left;width:600px;border: 1px solid #ccc} </style> <body> <div class="leftcolumn"...
33
by: dembla | last post by:
Hey Frnds can anyone help me in this i need a program in 'c' PROGRAM to print NxN Matrix 9 1 8 1 2 3 2 7 3 as 4 5 6 6 4 5 7 8 9 in sorted form
8
by: ginnisharma1 | last post by:
Hi All, I am very new to C language and I got really big assignment in my work.I am wondering if anyone can help me.........I need to port compiler from unix to windows and compiler is written...
17
by: Saps | last post by:
Hi all. Can anyone help me here. I have loads of .sql files and i need a way to call these from my asp page so the user can run them from the browser. Meaning i have a page with a list of all...
3
by: N. Spiker | last post by:
I am attempting to receive a single TCP packet with some text ending with carriage return and line feed characters. When the text is send and the packet has the urgent flag set, the text read from...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.