Hello All,
I am stuck on a problem with updating an XML file. Here is what my
final solution suppose to do. I have a web form which displays all
users that are authorized for recieving a particular application. To
display the users, a manager will select the product from a drop down
menu and then the form (FORM 1) will use the selecteditem.va lue to
query the xml file to find all users and then display the users in a
datagrid. This is working great.
Now the problem I am having is that the manager can also add and delete
users for a particular product. (FORM 2) Remember that there can be
many users per a particular product. How will I implement this process.
I was thinking about using XPath, but I could not find any solutions
out there similar to mine. Any help would be a great learning process
for me and greatfull.
Below is the webform layout and the XML file layout.
WEBFORM:
Product Name - DropdownList
FirstName - Textbox
MiddleInitial - Textbox
LastName - Textbox
Email - Textbox
Add - Checkbox
Delete - Checkbox
Save - ASP:Button to call a function
XML FILE:
<EmpType>
<ProductName>Ad obe</ProductName>
<EmployeeName>J ohn,S,Doe,Jo*** *****@email.com </EmployeeName>
<EmployeeName>J ane,S,Doe,Ja*** *****@email.com </EmployeeName>
</EmpType>
SENARIO 1:
A manager goes to FORM2 and select Adobe from the dropdownlist.
He enters the following information on the form:
FirstName: John
MiddleInitial: S
LastName: Doe
Email: Jo********@emai l.com
and Delete Checkbox = true
and he clicks on Save!
The function now searchs through the XML file and finds for a user with
the given information under the product Adobe and deletes the node. It
will do the same for add exept it will add a node.
Thanks Again