I need to keep a count of items that match a condition while looping through a node list using a for-each.
I was using position() but this is incorrect as I need to keep a running total.
Any help would be really appreciated.
...
I wrote some sample code like this, all the outputs are the same, which is weird for me,
I guess it makes sense if assembly1 is as same as assemly2, since the assembly information is the same(such as name, assembly version, GUID and etc.)
however, I changed the assembly information and recompile the SampleCodedFormula.dll(then rename i...
Hi all,
As my company migrates towards the .NET framework from VB6, it looks like we are going in the direction of WPF (my boss is in love with the Office-style Ribbon control). I've been working to mock one of our VB6 applications in WPF and decided to experiment with MVVM at the same time. I'm being discouraged from using an existin...
I am doing C# application, and I want to change the style of a message box. Is it possible or not?
Example: change button style, fore color, etc.
...
Hi
First, there is a similar question on this but was asked 2 years ago, and I know that new players are in the arena now.
We need a CSM with the following characteristics:
Has Forum Module and is integrated with the Membership provider of the CMS (the don't want the user to login twice on CMS and on Forum)
Free/Cheap (the final clie...
I have a Backgroundworker whose purpose is to run jobs sequentially in the background. Now one job is implemented in multithreading way. That mean, the Backgroundworker will create several threads. I use Task Parallel Library so I use the Task.Factory.StartNew to create multiple Tasks.
After the tasks are run, the Backgroundworker waits...
I have a wcf service and i want to call a method automatically , immediately after the publishing in IIS. Like an initialization of the WCF service without having to call the method manually or from somewhere else. Where should i place my Initialize method in WCF Service in order to run exactly after the start of the application?
...
What is the difference between lock and Mutex? Why can't they be used interchangeably?
...
file contains tag as
<html><head></head><body><span class=style32></span>....
i want only the html tag i.e span,head,body in list.There should not be duplicates.
please help me i'm new to regular expressions.
...
Hey,
im using UserSettings in my WPF Application.
How can i change the path where my app saves the .config file?
greetz
...
I have a program that uses log4net. It logs directly in the exe folder.
Now, when passing to station with Windows > XP (Vista, Seven) I observed that the logs are not always created, due I suppose to the user privileges and other security stuff...
Could I redirect logs to the user folder? Say
\\Username\MyProgram\Logs
...
Possible Duplicate:
What are bitwise operators?
Recently I came across a few samples that used the | and ^ operator. I am guessing these are or and negation operators.
So what actually do these operators stands for?
...
Hi,
I'm facing a problem with a conflict between the DateTime class and a namespace for some unknown reason was also called DateTime.
Assembly CompanyDateTime has namespace Company.DateTime
My Application is in the namespace: Company
the problem is that everytime I need to use DateTime class, I have to explicitely say System.DateTime ...
Hi,
I have the task of creating a web service that would be used by some clients.
We didn't get the xsd's or anything. There are layers and layers of communication between me and the client, and it's just too complicated to get the problem through (and it probably wouldn't resolve anything for about a month, while we do have a schedule...
Hi folks,
i'm trying to make a mixed collection of Types. I know the types at the start.. but I can't seem to figure out the syntax to make the collection, etc.
eg.
....
// I leave the typo there, for embarrassment :(
Initialize(new []{ typeof(Cat), typeof(Dog), typeof(JohnSkeet) });
...
public Foo Initialize(IEnumerable<Type> types...
The two tableLayoutPanels have nothing in common.
In the first one, adding a specific row just makes all the Labels (and not the others controls) of the second tableLayoutPanel dissapear!
Has anyone encountered this problem? Solved it?
...
When exporting a lot of data to a string (csv format), I get a OutOfMemoryException. What's the best way to tackle this? The string is returned to a Flex Application.
What I'd do is export the csv to the server disk and give back an url to Flex. Like this, I can flush the stream writing to the disk.
Update:
String is build with a Stri...
Possible Duplicate:
Good Examples of .NET Desktop Applications
I have been wondering (inspired by this question) if there are any popular dotNET desktop applications out there. (It doesn't have to be as popular as MS Office which is written in C++ AFAIK, but you get the idea.)
Just to get an idea - compare it to Java: Most of...
Followup question to comments here
My impression had been that Mono is a science project. Is that inaccurate? Extra credit for recounting personal usage.
...
Hi All,
In my code I have a Query like this
SELECT id,name
FROM people
I retrieve datas using a sqldatareader.
If I change my query for
SELECT id,name
FROM people
WHERE NOT EXISTS(
SELECT *
FROM people_died
WHERE people_died.id = people.id
)
I can see with dotTrace that the calls to getvalue takes longer with the second query, so...