How to give a unique id like that 15b85c2b-83ca-44
I have a little query of generting unique id for creating node , Is there is any way to generate random no ...
I have to genarate a random no for FieldUniqueId attribute in the <FieldToSupport> each time when I create a new node <FieldToSupport>..
I tried it by using Session.SessionID but the no string genarated for example 'hzskur45zxzh4jiwq5lsp3j3' this is same during for the logged user .... also i have to generate random no string in the format like '15b85c2b-83ca-44ec-8741-22a4dc64f64d' ..
following is the strucuture of XML file
<FieldsToSupport>
<FieldToSupport>
<Caption>Blank</Caption>
<Url>Blank</Url>
<Label>NewField1</Label>
<HtmlName />
<HtmlId />
<FieldUniqueId>15b85c2b-83ca-44ec-8741-22a4dc64f64d</FieldUniqueId>
<LinkHref>http://careers.msn.com/</LinkHref>
<InnerHTML>Careers &amp; Jobs</InnerHTML>
<OuterHTML><A href="http://careers.msn.com">Careers &amp; Jobs</A></OuterHTML>
<PopupHTML />
<FieldSupportItems />
</FieldToSupport>
<FieldToSupport>
......
</FieldToSupport>
<FieldToSupport>
......
</FieldToSupport>
</FieldsToSupport>
|