Click here to Skip to main content
15,905,233 members
Home / Discussions / C#
   

C#

 
GeneralFile transfer from one folder to another folder Pin
Deepak Nigam5-Feb-08 9:55
Deepak Nigam5-Feb-08 9:55 
GeneralIgnore this post. Cross posted in the VB.NET forum Pin
Dave Kreskowiak5-Feb-08 10:38
mveDave Kreskowiak5-Feb-08 10:38 
GeneralDesign controls on a Panel Pin
Edmundisme5-Feb-08 9:29
Edmundisme5-Feb-08 9:29 
GeneralRe: Design controls on a Panel Pin
Wes Aday5-Feb-08 10:06
professionalWes Aday5-Feb-08 10:06 
GeneralRe: Design controls on a Panel Pin
Edmundisme5-Feb-08 10:12
Edmundisme5-Feb-08 10:12 
Questioncan C# make control transparent Pin
netJP12L5-Feb-08 9:17
netJP12L5-Feb-08 9:17 
AnswerRe: can C# make control transparent Pin
Giorgi Dalakishvili5-Feb-08 9:29
mentorGiorgi Dalakishvili5-Feb-08 9:29 
AnswerRe: can C# make control transparent Pin
Edmundisme5-Feb-08 9:58
Edmundisme5-Feb-08 9:58 
GeneralRe: can C# make control transparent Pin
netJP12L5-Feb-08 10:21
netJP12L5-Feb-08 10:21 
GeneralRe: can C# make control transparent Pin
Edmundisme5-Feb-08 13:33
Edmundisme5-Feb-08 13:33 
GeneralRe: can C# make control transparent Pin
Anthony Mushrow5-Feb-08 13:59
professionalAnthony Mushrow5-Feb-08 13:59 
QuestionException Handling architecture/framework? Pin
kumar.bs5-Feb-08 7:55
kumar.bs5-Feb-08 7:55 
AnswerRe: Exception Handling architecture/framework? Pin
eggsovereasy5-Feb-08 9:10
eggsovereasy5-Feb-08 9:10 
GeneralRe: Exception Handling architecture/framework? Pin
led mike5-Feb-08 12:08
led mike5-Feb-08 12:08 
GeneralRe: Exception Handling architecture/framework? Pin
kumar.bs5-Feb-08 13:05
kumar.bs5-Feb-08 13:05 
GeneralCrystal_Report Pin
simworld5-Feb-08 7:52
simworld5-Feb-08 7:52 
GeneralRe: Crystal_Report Pin
SABhatti5-Feb-08 9:40
SABhatti5-Feb-08 9:40 
GeneralRe: Crystal_Report Pin
simworld6-Feb-08 7:24
simworld6-Feb-08 7:24 
GeneralRe: Crystal_Report Pin
PIEBALDconsult5-Feb-08 13:51
mvePIEBALDconsult5-Feb-08 13:51 
GeneralReading XML attributes without knowing the element name Pin
hpjchobbes5-Feb-08 7:33
hpjchobbes5-Feb-08 7:33 
GeneralRe: Reading XML attributes without knowing the element name Pin
Le centriste5-Feb-08 7:40
Le centriste5-Feb-08 7:40 
GeneralRe: Reading XML attributes without knowing the element name Pin
hpjchobbes5-Feb-08 7:53
hpjchobbes5-Feb-08 7:53 
GeneralRe: Reading XML attributes without knowing the element name Pin
Le centriste5-Feb-08 8:37
Le centriste5-Feb-08 8:37 
hpjchobbes wrote:
Since there can be multiple elements in one document that have statusCodes, I would venture to say that I should use:

XmlNodeList myNodeList = myXMLDoc.SelectNodes("//@attributeIAmLookingFor");

foreach(XmlNode n in myNodeList)
{
// Check the value of the node 'n' to see if it != "0"
}


There you go my friend!

If your document uses XML namespaces, it can get hairy. In that case, you will have 2 choices:

1) Use the class XmlNamespaceManager in your calls to SelectNodes, if your XML document uses prefixes.
2) If it does not use prefixes, you will have to resort to fully-qualified XPath queries, like:

//@*[local-name()='attributeIAmLookingFor' and namespace-uri()='http://somenamespace.com']


This is an alternative XPath syntax. Also, from your example above, you could save some code:

//@*[local-name='attributeIAmLookingFor' and namespace-uri()='http://somenamespace.com' and number()!=0]

Have fun!

-----

You seem eager to impose your preference of preventing others from imposing their preferences on others. -- Red Stateler, Master of Circular Reasoning and other fallacies

If atheism is a religion, then not collecting stamps is a hobby. -- Unknown

God is the only being who, to rule, does not need to exist. -- Charles Baudelaire

GeneralDirectoryInfo.GetDirectories() Pin
PaulPrice5-Feb-08 7:21
PaulPrice5-Feb-08 7:21 
GeneralRe: DirectoryInfo.GetDirectories() Pin
Luc Pattyn5-Feb-08 7:31
sitebuilderLuc Pattyn5-Feb-08 7:31 

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.