ONYX
ONYX

Reputation: 5859

Creating unique IDs for XElement at runtime LinqToXml

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

Answers (1)

Surjit Samra
Surjit Samra

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

Related Questions