Click here to Skip to main content
15,881,938 members
Home / Discussions / C#
   

C#

 
GeneralRe: Sharing common enum with main app and class library Pin
souren7722-Jul-09 19:22
souren7722-Jul-09 19:22 
GeneralRe: Sharing common enum with main app and class library Pin
Tamer Oz22-Jul-09 20:16
Tamer Oz22-Jul-09 20:16 
GeneralRe: Sharing common enum with main app and class library Pin
PIEBALDconsult23-Jul-09 6:30
mvePIEBALDconsult23-Jul-09 6:30 
GeneralRe: Sharing common enum with main app and class library Pin
souren7723-Jul-09 6:33
souren7723-Jul-09 6:33 
GeneralRe: Sharing common enum with main app and class library Pin
Adam R Harris23-Jul-09 6:57
Adam R Harris23-Jul-09 6:57 
QuestionReading XML file From C# Pin
maheesh22-Jul-09 17:39
maheesh22-Jul-09 17:39 
AnswerRe: Reading XML file From C# Pin
Christian Graus22-Jul-09 18:16
protectorChristian Graus22-Jul-09 18:16 
AnswerRe: Reading XML file From C# Pin
harold aptroot22-Jul-09 18:21
harold aptroot22-Jul-09 18:21 
I would have suggested that you use SelectSingleNode (member of XmlDocument), but that won't work since this is not valid XML. The problem is this part <Failure_ID="1", which as far as I can see quickly is never valid XML, and certainly not in this case. The problem is, there is either no element name or no attribute name (but it's impossible to tell which is missing). I suggest you change it to <Failure ID="3" Name="whatever" Description="Something">
Or if you're not in a position to change the format, use an other way to read the data - not as XML because that's not what it is.

If you go for the first option, the code to select the Name based on the ID could be something like
myDocument.SelectSingleNode("/Failure_Table/Failure[@ID=\"" + theID + "\"]/Name).Value

(warning: untested, and does not do any checking so will fail if Name is not present)

Hope that helps



AnswerRe: Reading XML file From C# Pin
infneeta22-Jul-09 20:54
infneeta22-Jul-09 20:54 
QuestionMS CRM 4.0 - SQL Reporting Services Pin
onetreeup22-Jul-09 10:09
onetreeup22-Jul-09 10:09 
AnswerRe: MS CRM 4.0 - SQL Reporting Services Pin
Adam R Harris23-Jul-09 7:01
Adam R Harris23-Jul-09 7:01 
QuestionIncrementing a Progress Bar in DAL layer Pin
Wheels01222-Jul-09 9:43
Wheels01222-Jul-09 9:43 
AnswerRe: Incrementing a Progress Bar in DAL layer Pin
Abhijit Jana22-Jul-09 9:48
professionalAbhijit Jana22-Jul-09 9:48 
GeneralRe: Incrementing a Progress Bar in DAL layer Pin
Wheels01223-Jul-09 1:24
Wheels01223-Jul-09 1:24 
AnswerRe: Incrementing a Progress Bar in DAL layer Pin
PIEBALDconsult22-Jul-09 14:16
mvePIEBALDconsult22-Jul-09 14:16 
GeneralRe: Incrementing a Progress Bar in DAL layer Pin
Wheels01223-Jul-09 8:15
Wheels01223-Jul-09 8:15 
GeneralRe: Incrementing a Progress Bar in DAL layer Pin
Abhijit Jana23-Jul-09 10:40
professionalAbhijit Jana23-Jul-09 10:40 
GeneralRe: Incrementing a Progress Bar in DAL layer Pin
Wheels01224-Jul-09 1:18
Wheels01224-Jul-09 1:18 
GeneralRe: Incrementing a Progress Bar in DAL layer Pin
PIEBALDconsult24-Jul-09 4:36
mvePIEBALDconsult24-Jul-09 4:36 
QuestionPointers to events. Pin
Douglas Kirk22-Jul-09 9:37
Douglas Kirk22-Jul-09 9:37 
AnswerRe: Pointers to events. Pin
Luc Pattyn22-Jul-09 10:28
sitebuilderLuc Pattyn22-Jul-09 10:28 
AnswerRe: Pointers to events. Pin
Gideon Engelberth22-Jul-09 12:43
Gideon Engelberth22-Jul-09 12:43 
QuestionCode for deletion from database at form level when deleting values from data gridview using check box column and a button for delete. Pin
Omar Akhtar Sheikh22-Jul-09 8:22
Omar Akhtar Sheikh22-Jul-09 8:22 
AnswerRe: Code for deletion from database at form level when deleting values from data gridview using check box column and a button for delete. [modified] Pin
Blue_Boy22-Jul-09 8:50
Blue_Boy22-Jul-09 8:50 
QuestionSendKeys {Enter} clears textbox Pin
hpydir22-Jul-09 5:53
hpydir22-Jul-09 5:53 

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.