Why would a database timeout??

when i run queries to the database im constantly getting this System.Data.SqlClient.SqlException: Timeout expired. ...

Remove duplicates in the list using linq?

I have a class Items with properties (Id, Name, Code, Price). The List of Items is populated with duplicated items....

Selecting rows programmatically in DataGridView?

I want to select row of previously selected rows after some event my code is as below. int currentRow = dgvIcbSubsIn...

WPF UserControl.Resources reference?

I am try to start learning WPF and i am using Telerik. So i start with simple ComboBox in this article and this is m...

How do I convert RTF to plain text??

I've been given a rather large excel file that per line contains one clob dump from our oracle database, one of them...

RedirectToAction with parameter?

I have an action I call from an anchor thusly, Site/Controller/Action/ID where ID is an int. Later on I need to red...

input box in asp.net c#?

I need to create a simple input box on my website in C#. It should pop up, when i call it in the code like that Str...

How to stop all running timer?

How to stop all timer in c# ? Timer timer = new Timer(); timer.stop(); this code didn't work , I have 5 timer and...

What does “where T : class, new()” mean??

Can you please explain to me what where T : class, new() means in the following line of code? void Add<T>(T ...

How can I find the last element in a List<> ??

The following is an extract from my code: public class AllIntegerIDs { public AllIntegerIDs() { ...

Minimal and correct way to map one-to-many with NHibernate?

I am new to NHibernate and C#, so please be gentle! I have the following two NHibernate entities: Employee { p...

Is there a limit size for a SQL Server database??

I am going to develop a system in C# in which documents have to be scanned and stored and I am expecting that the si...

Using itextsharp xmlworker to convert html to pdf and write text vertically?

Is there possible to achieve writing text direction bottom-up in xmlworker? I would like to use it in table. My cod...

Where is the Application.DoEvents() in WPF??

I have the following sample code that zooms each time a button is pressed: XAML: &lt;Window x:Class="WpfApplicatio...

C# refresh DataGridView when updating or inserted on another form?

I have 2 forms which are form A and form B, form A allowes user to insert and update student information. form b i...