[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 571
  • Last Modified:

Add, Update, Delete, Save Xml

Dear Friends,

 I am new in xml.

I just want a example


First Name: [TextBox]

Last Name: [TextBox]


[      1        ][   Aamir     ][   Khan   ]  [edit] [delete]
[      2        ][   Akshay  ][   Kumar  ]  [edit] [delete]
[      3        ][   John      ][   Abrah   ]  [edit] [delete]

                    [  Save  ]

 Here you can see the design view of the page.

1. When the page load there is no xml file

2. When i click on Add, a new records save in session and bind the GridView

3. Working with edit

4. Working with delete

5. When i click on save a new xml will create with the records in Session.

Note: The CustomerId is autoincrement

I hope you understand my requirement
  • 2
  • 2
1 Solution
virafhAuthor Commented:
Thank You Dahaest,

I just want to ask one more point

if i don't have xml when page load means

i want to create xml file when i click on Save Button
before this the records saved in Session

how can i ?
When the page loads, Create a dataset, add  datatable to it, add and configure columns and then use that as the datasource. Then in the save button, call the writexml function.

Dim dSet as new dataset
dSet.tables.add(New DataTable)
dSet.Tables(0).colums.add("columnname", gettype(string))
virafhAuthor Commented:
Thank You
I think i answered your second question!

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now