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

x
  • 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

ex:

First Name: [TextBox]

Last Name: [TextBox]

[Add]

[CustomerId][FirstName][LastName]
[      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
0
virafh
Asked:
virafh
  • 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 ?
0
 
CodeCruiserCommented:
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))
...
Session("dSet")=dSet
0
 
virafhAuthor Commented:
Thank You
0
 
CodeCruiserCommented:
I think i answered your second question!
0

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