Search   Articles   Dev Forums   Personalize   Favorites   Member Login   ASP.Net Hosting
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Sunday, November 23, 2008

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 > Miscellaneous
Search:
What's New - What's Hot


How to implement a default value for a struct parameter        
Total Hits: 76  |  Today: 1 Author: Mr Scotty       Rating:  
Read Reviews | Write Review |   Your Rating: 

Someone asked me how to implement a default parameter value for a struct. He wanted to make it possible to make the following calls....
The compiler (VC 6) however didn't compile this.
You can use a constructor in your struct. It's not really nice but it will work....

How to create LINQ like functionality using Predicate Delegates and Anonymous Methods        
Total Hits: 67  |  Today: 0 Author: Saurabhdotnet       Rating:  
Read Reviews | Write Review |   Your Rating: 

Today, I would be your guide on our way to empower custom collections (i.e. Employee, Order, Account, etc) with LINQ like functionality of Where and OrderBy (You can always match them to traditional SQL Query Syntax). And, help you in understanding what we can achieve by just knowing some newer C# Functionalities - Predicate Delegate, Action Delegate, Anonymous Methods and Generics....

Creating a Better Master Page        
Total Hits: 68  |  Today: 1 Author: Manikandan.net       Rating:  
Read Reviews | Write Review |   Your Rating: 

In this article, I am going to explain how to merge BasePage classes with MasterPage so that you can control UIs and page functionalities....

Implementing state-full functionality behavior of custom object instances in ASP.NET        
Total Hits: 33  |  Today: 0 Author: Alex Getman       Rating:  
Read Reviews | Write Review |   Your Rating: 

When you have some business logic that have to be implemented as a class and presented in your program code via an object of the corresponding class, it very often becomes a bare necessity to save the state of this object during aspx page postbacks. Some times it becomes hard to find an easy and convenient solution for this issue because of the stateless nature of HTTP. Hope that this article will help you to find some ideas on how to implement this functionality. The following solutions are bas...

PublicDomain Logging description and usage        
Total Hits: 74  |  Today: 1 Author: schizoidboy.       Rating:  
Read Reviews | Write Review |   Your Rating: 

This article describes how to use the Logging API in the PublicDomain package. Features of the PublicDomain Logging API include:

* Fully extensible model
* Configuration parser
* Logging on a background thread to avoid performance slow-down due to logging
* Log guards
* CompositeLogger
* FileLogger along with RolloverStrategy
* ApplicationLogger class for quick and dirty logging...

OID Conversion        
Total Hits: 243  |  Today: 1 Author: 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" ...

HOW TO: Create Keys with Visual C# .NET for Use in Forms Authentication (Q312906)        
Total Hits: 738  |  Today: 0 Author: 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....

Q302902 - BETA-HOWTO: Binding for Office Automation Servers with Visual C# .NET        
Total Hits: 969  |  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: 449  |  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: Connect to a Database and Run a Command Using ADO .NET and C# .NET (Q306636)        
Total Hits: 1334  |  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....

MSI Packages Manager        
Total Hits: 28  |  Today: 0 Author: JOHN11       Rating:  
Read Reviews | Write Review |   Your Rating: 

This article shows how to process one or many MSI packages just by providing a configuration file. It gives also many useful hints and tricks that can be used in other projects.
By reading the article title, we think that I will present the great MSI technology (Windows Installer). In fact, that's not the subject of the article at all. This article presents an easy way to manage any MSI package before, during and after MSI processing....

LoginHours from DirectoryEntry into boolean array        
Total Hits: 19  |  Today: 1 Author: 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....

JavaScript Registration in C# or VB.NET Code        
Total Hits: 89  |  Today: 0 Author: vadimas       Rating:  
Read Reviews | Write Review |   Your Rating: 

Nowadays we are using more and more JavaScript in our web applications. Usually, we insert a link to the external JavaScript library into the ASPX code or just put some JavaScript code between script tags. However, every so often for some reason (accessing it dynamically or some other important case), we need the JavaScript in our code behind (VB.NET or C#). That's where the pain begins. Those who have tried to do it understand me perfectly well. You put your neat piece of JavaScript into your n...

Disable ASP Button on Submit and capture the PostBack OnClick Event        
Total Hits: 121  |  Today: 0 Author: Christopher G. Lasater       Rating:  
Read Reviews | Write Review |   Your Rating: 

This article describes how to disable an ASP button on click to prevent multiple clicks and still fire the button event on the server. This is a real simple solution that a colleague of mine Harpreet Chawla figured out....

WIA Scripting and .NET        
Total Hits: 110  |  Today: 0 Author: NETMaster.       Rating:  
Read Reviews | Write Review |   Your Rating: 

This sample shows how to use Windows XP Windows Image Acquisition (WIA) Scripting with .NET and C#. It is useful for integrating with scanners, digital cameras, webcams and still-video.

Note, this article doesn't save you from reading the detailed WIA documentation!...

How to use a DLL from the GAC        
Total Hits: 668  |  Today: 0 Author: 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: 720  |  Today: 0 Author: 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...

HOW TO: Set a BorderStyle Property for UserControls in Visual C# .NET (Q316574)        
Total Hits: 1002  |  Today: 0 Author: 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....

INFO: Determine the JPEG Quality Factor by Using Visual C# .NET        
Total Hits: 521  |  Today: 0 Author: 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: Use a File Name to Start an Application Using C# (Q306222)        
Total Hits: 705  |  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....


1  2  Next >> 


DevASP.Net - Disclaimer - Privacy
Copyright © 2008 DevASP.net