C#
Dynamically retrieving the executing assembly version attribute - C#
In our C# project the version attribute is defined in a CS file as:
assembly: AssemblyVersion("3.6.2.5")]
To dynamically retrieve that via code, use the command:
Get the list of ODBC data source names programatically using C#
Many times, you may need to get the list of currently set up ODBC data source names on the machine where your code is running from. There is no .NET API to get this list so you have to monkey with Windows registry a bit to find the list. There are 2 different types of ODBC data sources you can set up (User and System). The Data Source Names can be found in Windows by going to Administrative Tools->Data Sources(ODBC).
Fixing Relative Paths in C# ASP.NET When Using Url Rewriting
UPDATE: This method is generally used in situations where you have relative paths in your project so that links (image, href, css, etc) work on your development environment (where the VS web server inserts a virtual path), as well as your production environment that may or may not have that same virtual path. The simpler way to handle this situation is to change the virtual path in your development environment. To do this, click on your web site project and look in the properties dialog. You should see a Virtual Path setting.
Data Access Layer using SqlDataReader and C# - Joins
This is a follow-up post to the 2 previous posts that describe how to make a fast and efficient data access layer using SqlDataReader and C#. Here are the 2 previous posts that this relates to:
Data Access Layer using SqlDataReader and C#
Data Access Layer using SqlDataReader and C# - Code Explanation
C# Programmatically Manage Contacts in Microsoft Outlook
You can manage contacts in Microsoft Outlook (2000 or higher) using C# and Outlook COM Interop. Microsoft has made it easy with Outlook 2003 and Outlook 2007. There is an interop class library already available in Visual Studio so you don't have the generate the Interop wrapper yourself. In order to set this up, the first step is to add a reference to the Outlook Interop DLL in your .NET C# project. Go to "Add References" and choose the following:

Popular Articles
Last viewed:
- Disable Button on Submit (Prevent multiple submits)
- C# Download File with Progress Bar
- Find a control in a TemplateField programmatically
- Building a Web Service in ASP.NET 3.5
- Using Stored Procedures in the Entity Framework with Scalar Return Values
- Get the list of ODBC data source names programatically using C#


Recent comments
3 days 6 hours ago
3 days 9 hours ago
3 days 21 hours ago
6 days 19 hours ago
1 week 2 days ago
1 week 2 days ago
1 week 2 days ago
1 week 2 days ago
1 week 4 days ago
2 weeks 2 days ago