Setting <Window.DataContext> in XAML?

I followed a very simple MVVM example as a basis for my program. The author had one code behind instruction he used ...

Requesting html over https with c# Webclient?

I am attempting various html resources via c# WebClient class from a site I have no control over. When I attempt to...

How to get complete month name from DateTime?

What is the proper way to get the complete name of month of a DateTime object? e.g. January, December. I am curren...

crystal report viewer is not showing same layout of the report as Report opened in crystal reports?

Crystal Report Viewer Version &lt;%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral,...

How do I clear the server cache in asp.net??

How do I clear the server cache in asp.net? I have found out that there are two kinds of the cache. There is the bro...

Getting the HTML source through the WebBrowser control in C#?

I tried to get HTML Source in the following way: webBrowser1.Document.Body.OuterHtml; but it does not work. For e...

Deciding on when to use XmlDocument vs XmlReader?

I'm optimizing a custom object -&gt; XML serialization utility, and it's all done and working and that's not the iss...

MVC: Where to put business logic??

First of all, I have seen many questions of this, but not enough reasoning behind that. If my question is not good e...

What is the best way to iterate over a dictionary??

I've seen a few different ways to iterate over a dictionary in C#. Is there a standard way? ...

How to 'foreach' a column in a DataTable using C#??

How do I foreach each column is a datarow? DataTable dtTable = new DataTable(); MySQLProcessor.DTTable(mysqlCommand...

How do you concatenate Lists in C#??

If I have: List&lt;string&gt; myList1; List&lt;string&gt; myList2; myList1 = getMeAList(); // Checked myList1, it ...

Is there a “Set” data structure in .Net??

Ideally, I'm looking for a templated logical Set class. It would have all of the standard set operations such as Un...

How to quickly zero out an array??

I am currently doing it in a for loop, and I know in C there is the ZeroMemory API, however that doesn't seem to be ...

Delete a row in WPF DataGrid?

I have a datagrid with a delete icon as one column and update icon as another column. On click of update, the first ...

Sort ObservableCollection<string> through C#?

I have below ObservableCollection&lt;string&gt;. I need to sort this alphabetically. private ObservableCollection&l...