Reputation: 5859
How do you create unique Id's for an XElement at runtime. Im using an object datasource for inerting XElements and I need to generate id's for the newly inserted XElement so I can return it id value
Upvotes: 1
Views: 642
Reputation: 4662
Is this what you looking for Guid.NewGuid()
Edit
KDM provided a useful link http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/
Upvotes: 1