Click here to Skip to main content
15,917,628 members
Home / Discussions / C#
   

C#

 
AnswerRe: Retrieve the PK after an add into an in memory DataTable Pin
Ennis Ray Lynch, Jr.6-Jul-09 12:44
Ennis Ray Lynch, Jr.6-Jul-09 12:44 
GeneralRe: Retrieve the PK after an add into an in memory DataTable Pin
Mycroft Holmes6-Jul-09 19:16
professionalMycroft Holmes6-Jul-09 19:16 
AnswerRe: Retrieve the PK after an add into an in memory DataTable Pin
zlezj6-Jul-09 20:43
zlezj6-Jul-09 20:43 
Questioncode behind method Pin
zoyakhan6-Jul-09 8:00
zoyakhan6-Jul-09 8:00 
AnswerRe: code behind method Pin
Pete O'Hanlon6-Jul-09 9:13
mvePete O'Hanlon6-Jul-09 9:13 
Questionthis.NotifyIcon.BalloonTipShown not executing Pin
ark_mage26-Jul-09 7:56
ark_mage26-Jul-09 7:56 
QuestionExecute workflow using windows service Pin
Member 40084926-Jul-09 7:23
Member 40084926-Jul-09 7:23 
QuestionProperties.Settings (Application connectionstring) Pin
Jacob Dixon6-Jul-09 6:54
Jacob Dixon6-Jul-09 6:54 
AnswerRe: Properties.Settings (Application connectionstring) Pin
Jacob Dixon6-Jul-09 7:13
Jacob Dixon6-Jul-09 7:13 
QuestionConvert XDocument to string ? Pin
Mohammad Dayyan6-Jul-09 5:23
Mohammad Dayyan6-Jul-09 5:23 
AnswerRe: Convert XDocument to string ? Pin
Mirko19806-Jul-09 5:35
Mirko19806-Jul-09 5:35 
GeneralRe: Convert XDocument to string ? Pin
Mohammad Dayyan6-Jul-09 5:54
Mohammad Dayyan6-Jul-09 5:54 
QuestionRecommend a simple distributed messaging tool? Pin
Brian Duke6-Jul-09 5:23
Brian Duke6-Jul-09 5:23 
QuestionApplication problem Pin
lune126-Jul-09 3:55
lune126-Jul-09 3:55 
AnswerRe: Application problem Pin
Eddy Vluggen6-Jul-09 4:24
professionalEddy Vluggen6-Jul-09 4:24 
GeneralRe: Application problem Pin
lune127-Jul-09 5:05
lune127-Jul-09 5:05 
GeneralRe: Application problem Pin
Eddy Vluggen7-Jul-09 5:55
professionalEddy Vluggen7-Jul-09 5:55 
QuestionSMPP V3.4 need help Pin
Ömer YÜCE6-Jul-09 3:53
Ömer YÜCE6-Jul-09 3:53 
AnswerRe: SMPP V3.4 need help Pin
stancrm6-Jul-09 4:19
stancrm6-Jul-09 4:19 
QuestionXML to LINQ Pin
zeeShan anSari6-Jul-09 3:39
zeeShan anSari6-Jul-09 3:39 
hi all Big Grin | :-D

i have an xml file as:
<?xml version="1.0" encoding="utf-8" ?>
<Pages>
<Page>
<Name>ManageUser.aspx</Name>
<User>
<ID>Admin</ID>
<ID>WebMaster</ID>
</User>
</Page>
<Page>
<Name>Traders.aspx</Name>
<User>
<ID>Admin</ID>

</User>

</Page>
</Pages>


my query as:
var result = xmlDoc.Descendants("Page").Select(s => new { Name = s.Element("Name").Value, User = s.Element("User").Value }).Distinct().ToList();



and finally result as:
result |Count =2
+[0]   {Name="ManageUser.aspx",User="AdminWebMaster"}
+[1]   {Name="Traders.aspx",User="Admin"}


My problem is that how i can sub divide "User" into "ID"
like
result |Count =3
+[0]   {Name="ManageUser.aspx",User(ID)="Admin"}
+[1]   {Name="ManageUser.aspx",User(ID)="WebMaster"}
+[2]   {Name="Traders.aspx",User(ID)="Admin"}


actually i want IDs against Pages

thanks Smile | :)
AnswerRe: XML to LINQ Pin
Mirko19806-Jul-09 5:17
Mirko19806-Jul-09 5:17 
QuestionC# application don't start on Windows Vista. Pin
eproo6-Jul-09 2:57
eproo6-Jul-09 2:57 
AnswerRe: C# application don't start on Windows Vista. Pin
Manas Bhardwaj6-Jul-09 3:07
professionalManas Bhardwaj6-Jul-09 3:07 
GeneralRe: C# application don't start on Windows Vista. Pin
eproo6-Jul-09 3:09
eproo6-Jul-09 3:09 
QuestionRe: C# application don't start on Windows Vista. Pin
musefan6-Jul-09 3:12
musefan6-Jul-09 3:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.