Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home >Search > Knowledge Base > C-Sharp
Search:
What's New - What's Hot
Listings for About C-Sharp About C-Sharp (8)
Listings for Automation Automation (14)
Listings for C# and XML C# and XML (30)
More Categories for Database Database (72)
Listings for Errors Errors (1)
More Categories for Errors and Bugs Errors and Bugs (25)
Listings for Exception Handling Exception Handling (3)
More Categories for File Management File Management (2)
Listings for Miscellaneous Miscellaneous (29)
More Categories for Office Documents Office Documents (6)
More Categories for Server Controls Server Controls (14)
Listings for Windows Form Windows Form (30)


How to create client access to a remote server by using Visual C++ .NET or Visual C++ 2005     
Total Hits: 68  |  Today: 0Author: Microsoft      Rating:  
Read Reviews | Write Review |  Your Rating: 

This step-by-step article describes how to create a client that accesses a remote server. This client can be located on the same computer, on a different computer, or on a different network. This article builds on the following Microsoft Knowledge Base article:
818780 (http://support.microsoft.com/kb/818780/) HOW TO: Create a remote server by using Visual C++ .NET...

LoginHours from DirectoryEntry into boolean array     
Total Hits: 78  |  Today: 0Author: Paw Jershauge      Rating:  
Read Reviews | Write Review |  Your Rating: 

When extracing the loginhours member from DirectoryEntry, we get the byte array.

This array represents login hours tabel for the user. its based like this.

Every day equals 3 bytes, therefor the array length is always 21 or NULL.

if the loginhours returns null, then just make an new array of bytes, with all value set to 255....

Inheriting System.Web.HttpApplication     
Total Hits: 102  |  Today: 0Author: Bipin Joshi      Rating:  
Read Reviews | Write Review |  Your Rating: 

Recently one of my friends, who happen to be .NET novice, was showing me his first pilot application developed in ASP.NET. He showed me how he used web.config file to store database connection string information. Next, he told me that he has written a small function in every page that extracts this value and returns to the caller. However, he wanted to know whether there is a way to avoid this repetitive code. This 'how to' kind of article answers his question (I hope it will help you as well :...

OID Conversion     
Total Hits: 392  |  Today: 0Author: Miroslav Stampar.      Rating:  
Read Reviews | Write Review |  Your Rating: 

What is an object identifier? Object identifiers are, basically, strings of numbers. They are allocated in a hierarchical manner, so that, for instance, the authority for "1.2.3" is the only one that can say what "1.2.3.4" means. They are used in a variety of protocols. The formal definition of OIDs comes from the ITU-T recommendation X.208 (ASN.1), which is available from the ITU (if you have your checkbook handy). The definition of OID is in chapter 28; the assignment of the "top of the tree" ...

Design Patterns with C#     
Total Hits: 393  |  Today: 0Author: /www.binaryintellect.com      Rating:  
Read Reviews | Write Review |  Your Rating: 

Design patterns provide a powerful way to standardize solutions to common problems in software design. The Design Patterns with C# course is intended for developers having sound experience of programming experience with C#. The course will teach the core GoF patterns along with few other common ones....

How to use a DLL from the GAC     
Total Hits: 972  |  Today: 0Author: thiaguramani      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article describes how to use DLLs which are in the GAC. The technique described is very useful to use common projects in a secure way. First, in the command prompt, go to the folder in which the project DLL is saved. Then, create a strong name for that DLL by using the command sn -k [strong name.snk]. Then, put that strong name in the [assembly: AssemblyKeyFile("strongnamepath")] line in assemblinfo.cs, and build that project. Again in command prompt, type gacutil /i [assemblyname]. Now, th...

Measuring Execution Time in C#     
Total Hits: 922  |  Today: 0Author: ger      Rating:  
Read Reviews | Write Review |  Your Rating: 

Sometimes, while writing programs, we can get into situations when we need to measure execution times of various tasks. Each programming language provides some mechanism to retrieve the current time from the system. If we read and store the system time at various moments, we can compute time intervals by substracting the values of system time taken at diffent moments. We will see how to read the system time and how to measure time intervals in C#. In C#, the DateTime class is used for storing th...

A comparison of C/C++ and C#     
Total Hits: 631  |  Today: 0Author: developerfusion      Rating:  
Read Reviews | Write Review |  Your Rating: 

You should know that many C/C++ developers have been asking this question: Is C# a new programming language or a new version of C/C++. Answer to both questions is that none of these definitions is true. Well, in this article Author is going to go under the hood and show you that C# is a cocktail of Java, C, C++ and Delphi/C++ Builder from Borland. Let's first take a look what C# programming language really is....

HOW TO: Set a BorderStyle Property for UserControls in Visual C# .NET (Q316574)     
Total Hits: 1097  |  Today: 0Author: MSDN      Rating:  
Read Reviews | Write Review |  Your Rating: 

This step-by-step article describes how to set a custom border style for a UserControl object. By default, UserControl objects do not have a BorderStyle property set. The BorderStyle property specifies the border style for controls that have a changeable border....

HOW TO: Create Keys with Visual C# .NET for Use in Forms Authentication (Q312906)      
Total Hits: 914  |  Today: 0Author: MSDN      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article describes how to create keys to use for encryption, decryption, and validation of Forms authentication cookie data. You can use the keys that you create in this article for the validationKey and decryptionKey attributes of the section in the element in the Machine.config and Web.config files....

INFO: Determine the JPEG Quality Factor by Using Visual C# .NET     
Total Hits: 626  |  Today: 0Author: MSDN      Rating:  
Read Reviews | Write Review |  Your Rating: 

Compression in a Joint Photographic Experts Group (JPEG) file is controlled by a set of quantization tables. Typically, there are two such tables in each file: one for the luminance (brightness) information and the other for the chrominance (color) information. These tables are 8x8 matrices that determine how the 8x8 blocks of discrete cosine coefficients are quantized....

HOW TO: Load a Bitmap or Image from a Resource by Using Visual C#     
Total Hits: 1021  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This step-by-step article describes how to embed both metafile and raster images like .png and .jpg files as resources in a Visual C# .NET application, and how to extract them for use with System.Drawing classes....

HOWTO: Automate Excel With Visual C# .NET To Fill or Obtain Data In a Range Using Arrays     
Total Hits: 2591  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article demonstrates how to automate Excel from Visual C# .NET to fill and retrieve values in a multi-cell range by using arrays....

FIX: Unhandled Exception Error Querying with the Data Mining Provider from ADO+ and C# (Q297728 )     
Total Hits: 666  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

When you execute a query with the Data Mining provider using ActiveX Data Objects (ADO+) from a Microsoft C# application, the application fails with an error message that resembles the following:

An unhandled exception of type 'System.Security.SecurityException' occurred in
C:\WINNT\Microsoft.NET\Framework\v1.0.2204\System.Data.DLL...

HOW TO: Compute and Compare Hash Values Using C# .NET (Q307020)     
Total Hits: 770  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

The System.Security.Cryptography classes in the Microsoft .NET Framework make it easy to compute a hash value for your source data. This article shows how to obtain a hash value and how to compare two hash values to check whether they are identical....

Q302902 - BETA-HOWTO: Binding for Office Automation Servers with Visual C# .NET     
Total Hits: 1082  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article explains and compares early and late binding for Visual C# Automation clients and provides code samples that demonstrate both types of binding....

Q304655 - Programmatically Compile Code Using C# Compiler     
Total Hits: 521  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article discusses a Beta release of a Microsoft product. The information in this article is provided as-is and is subject to change without notice.No formal product support is available from Microsoft for this Beta product. For information about obtaining support for a Beta release, please see the documentation included with the Beta product files, or check the Web location from which you downloaded the release.
The information in this article contains Microsoft .NET Development Platf.....

HOW TO: Use a File Name to Start an Application Using C# (Q306222)     
Total Hits: 795  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article demonstrates how to start the application that is associated with a given document extension or file type without needing to know the name or location of the associated application. For example, you can start Arcade.bmp with the application that is associated with the .bmp file extension, which is MSPaint.exe in most cases....

BETA-HOWTO: Determine OS Service Pack Level in C# .NET (Q304721)     
Total Hits: 566  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

The OSVersion property that is provided for obtaining operating system information does not contain a member that provides service pack information. If you want to determine what service pack is installed, you must call the GetVersionEx API function directly. Normally it is better to avoid this practice--the .NET Framework provides access to the underlying API sets in a much more consistent (and easier to use) manner than calling the individual API functions. When it is necessary to call an API ...

HOW TO: Connect to a Database and Run a Command Using ADO .NET and C# .NET (Q306636)     
Total Hits: 1450  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article describes how to use ActiveX Data Objects (ADO) .NET to connect to a database and run a command....



Disclaimer - Privacy
© 2002-2012 DevASP.net