Let's say a control X has a template called RowTemplate.
So X's markup would be like:
<foo:X>
<RowTemplate>
<foo:Y>...</foo:Y>
</RowTemplate>
</foo:X>
My question is: How can the Y control be sensitive to the data context? I know I can use template inline tags to get access to the data context: <%# Eval("Id") %>, but ...
(warning - unholy mixture of xml and gratuitous character encoding below.)
Short version:
Why can't I get my service reference call (c#, .net 3.5, automagic service reference code added to VS2008) to properly encode a parameter that's supposed to look like this one the wire: (look for the " bits...those are my bane.)
(other extra ...
What's the difference between calling .NET methods asynchronously by using:
BeginInvoke/EndInvoke
vs.
IAsynchResult
vs.
Specific object asynchronous methods (WebClient, for example)
I assume the difference between the first two and the third one is that some objects (WebClient in this case) natively support asynchronous calli...
I have a WPF form that shows a contact (Name, Address and State).
The GUI is bound to a CurrentContact object and they are stored in a List<Contact>.
I would like to add buttons to the bottom:
+-----+ +-----+ +-----+ +-----+
| << | | < | | > | | >> |
+-----+ +-----+ +-----+ +-----+
Meaning first, previous, next an...
how to get cpu temperature in c/c++/vb.net/c# ? i already found this link Get CPU Temperature in .Net
but i'm not sure if it really works! also i would like to know if there is a way other than using wmi queries.
...
I've been searching for the standard implementation of a doubly linked list in c# (so that I have a linked list I can iterate over backwards) and cannot find one. I feel like something so simple must have an implementation that I'm just missing.
If it does exist, for which version of c#/.net does it exist?
Reverse iteration in general ...
Hi,
Is there any tool, or any VS debug option i'd use to watch all the calls my c# application, sends to the SQL server 2k8? I'd like to know how efficient is my c# code at doing the calls, like how many SELECTS is it sending at certain time/situation.
Thanks.
...
I'm in the process of creating a custom stream for an API endpoint in my app. The stream needs to have custom logic that I don't want to get into, but suffice to say I can't use a built-in stream class.
I did the minimum necessary to implement a read-only stream (inheriting from System.IO.Stream) and I've verified that the System.IO.Bin...
Hi, I am using entity framework 4 to create entities from DB.
I have 2 entity contexts to connect to db.
let's say context1 and context2
However, when I do the following steps,
1. get data from context1
2. get same data row from context2
3. update same data row to context1
4. get same data row from context2
context2 doesn't change ...
I have a column chart with multiple series each containing multiple points. Currently the columns all touch each other. I want to force a gap between each column. How can I achieve this?
I found that applying a PointWidth (Chart1.Series[seriesName]["PointWidth"] = (0.6).ToString();) gives me a separation between the x value groups but n...
I've seen there is a plenty of them. NCache, Velocity and so forth but I haven't found a table comparing them.
What's the best considering the following criterias:
Easy to understand.
Is being maintained lately.
Is free or has a good enough free version.
Works.
...
So Windows Server Core 2008 R2 added support for ASP.net, but only a subset:
Subset of .NET Framework 2.0
Subset of .NET Framework 3.0 and 3.5 – WCF, WF, and LINQ
Now the question is, what is not available? I'm guessing that the Media stuff and everything related to WPF is missing, which isn't a huge loss. But any other big...
Hi,
I am currently playing around spring.net framework. In fact, i am wondering about Spring.net validation since i cannot figure out to enable client side validation of controls on a page just like asp.net validation do.
Thanks,
...
I've regularly read that the framework is just too large for one developer to have experience with every part of it. Having some actual numbers would certainly help put things in perspective.
MSDN seems to list them all but there are no actual numbers (from what I could see) and spending hours counting them is not my idea of productive...
What Considerations do we need when creating a DB helper class in .Net?
...
I spawn a thread (only one) to do some work and it pretty much takes care of itself not accessing any data outside of the tread except calling callback() to see if the user wants to quit (also sends a status report back to the main thread to display in the GUI).
When the close closes the exe i would like to wake up the thread and have i...
I have next very non-optimized code:
void Summarize(IEnumerable<Section> sections)
{
this.DateBegin = sections.Select(s => s.Date).Min();
this.DateEnd = sections.Select(s => s.Date).Max();
this.Income = sections.Where(s => s.IsIncome).Sum(r => r.Amount);
this.ExpenditureBank = sections.Where(s => s.IsExpenditureBank).Sum...
What is the point of IHandleMessages<T> vs IMessageHandler<T> in NServiceBus 2.0?
One interface derives from the other and does not appear to add any new methods or new constraints on T. It is possible that one is a marker interface but there is no evidence for this in the comments.
...
Whenever I start a new software project I spend a good amount of time at the beginning drawing class diagrams and other flow charts to plan out how I see the application working. This part just takes a lot of thinking and testing. But at a certain point when everything is planed out I don't need to think about it so much anymore I just n...
I've a ClickOnce application. On one machine - Windows 7 (works on others) an upgrade failed - the installation is served by Apache.
The entire log is ... long, but the only thing that errors are this:
ERROR DETAILS
Following errors were detected during this operation.
* [26.01.2010 10:55:07] System.Runtime.InteropServices.COMEx...