When I copy, for example, the word "Çamlık" from a web page into a rich text box (forms application) at runtime, it is displayed as "?aml?k". Is there a setting in the richtextbox control or form or application to fix this? If not, what is the "socially acceptable" method?
(.Net 2008)
...
When the document(uri) function is used to load another document within the XSLT, where the target document contains a DTD I get an XslTransformException, containing an inner XmlException:
For security reasons DTD is prohibited in this XML document. To enable DTD processing set the ProhibitDtd property on XmlReaderSettings to false a...
Lets say we need to select two sets from a table: "Things"
var GradeA = db.Things.Where(t=> condition1);
var GradeB = db.Things.Where(t=> !condition1 && condition2);
var DesiredList = GradeA.union(GradeB);
alternatively, we need to write a single statement to avoid union cost:
var DesiredList = db.Things.Where(t=> condtion1 || (!con...
Is it possible to override a private method by using Reflection in .NET 3.5?
...
I'm looking for an algorithm (or some other technique) to read the actual content of news articles on websites and ignore anything else on the page. In a nutshell, I'm reading an RSS feed programatically from Google News. I'm interested in scraping the actual content of the underlying articles. On my first attempt I have the URLs from th...
I'm a .NET developer working alongside Java and Eclipse developers. They seem to work with a lot more Open Source than I ever have. Some/Most seem to have made it across to .NET (Hibernate to NHibernate is a great example of this.)
But I am curious as to what OS software out there hasn't made it to the .NET world? What do people feel is...
So I want to be able to just log all unhandled exceptions to the event log without having to catch all the exceptions manually and write them out.
I wanted to use the health monitoring functionality within a WCF service, the problem is that this only catches errors generated by asp.net and I specifically want to also catch SPException e...
OK, hit me over the head if this is a blatantly duplicate question....
I recently purchased NHibernatie in Action from Manning. This book outlines version 1.21
It mentions a version 2.0 of NHibernate that is coming/is in beta. If I download NHibernate from nhforge I get version 2.1 Is the book hopelessly outdated??
...
I have a number of COBOL programmers who are moving to .NET. I've found many struggle to adopt/understand OO programming principles. I don't have any COBOL experience, so my ability to find what few similarities there are is very limited.
There's no way I want to say "forget your twenty years of experience. This is all new," but I don...
Is there a way to provide translation for expressions that have no translation ?
like double.parse()
...
I am working on a project (C# and .NET Framework) which requires me to solve some partial differential equations. Are there any specific libraries based on .NET Framework that I could see and make my work simpler?
I have worked with MATLAb and solving partial differential equations is very straightforward there. How can I solve this pro...
We want to have two .NET apps running on the same machine communicate with each other. We want three projects. A library containing interfaces. A "server" app that implements the interfaces and "client" app that communicates with the server using the interfaces. We do not want the client to reference the server.
We have a test app th...
What the title says! I see it from times to times and I'd like to know why. Is there any difference at all?
...
I have seen in Debugging .net 2.0 Applications the following code
[Condictional("DEBUG")]
void AssertTableExists() {
#if DEBUG
...
#end-if
}
Is there any reason to use the #if directive? I mean, from what I understand the method will only be called if the DEBUG is defined, so I don't see a point in having the #if in th...
How can this be written in linq
select * from transactions T
JOIN TransactionSample ts
ON ts.TransactionID =
CASE
WHEN T.ParentTransactionID is null
THEN T.TransactionID
ELSE T.ParentTransactionID
END
where T.TransactionID = 227511
...
I am wondering under what circumstances the following NHibernate code could fail:
var session = NHibernateSessionManager.CurrentSession;
var foo = session.Linq<Foo>.ToList()[0];
foo.SomeProperty = "test";
session.SaveOrUpdate(foo);
var reloadedFoos = session.Linq<Foo>
.Where(x => x.SomeProperty == "test");
...
Does Enumerable.GroupBy from LINQ to Objects preserve order of elements in the groups?
...
If a user knows almost anything about coding in .net, and they see a .dll, they have the unfortunate ability to call your public functions and subroutines. I know you could try a "key" system, where it will check for a certain "key" as an argument, and only run the code if the "key" is valid, but I just ran some code and a .dll that I ma...
I have a parent child table relationship. In the example below Foo has a FooID and a nullable ParentFooID that points to a parent record.
The Bar table is always linked to the parent record. This is the SQL I use to get the result.
Select * from Foo f
JOIN Bar b
ON b.FooID =
CASE
WHEN f.ParentFooID is null
TH...
Hi there,
In my datbase I have TableA, TableB and TableC
TableB has just 2 columns, the primary key of TableA and TableC, so it really defines a one to many relationship between the two tables
What i want to do using SQL is:
SELECT *
FROM TablesA a
JOIN TablesB b ON a.AID = b.AID
WHERE b.BID = 1
In the Entity Framwork is doesn't c...