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 > C-Sharp
Search:
What's New - What's Hot
Listings for Applications Applications (66)
Listings for Articles & Samples Articles & Samples (18146)
Listings for C-Sharp Sites C-Sharp Sites (12)
Listings for Errors and Bugs Errors and Bugs (25)
Listings for Introduction Introduction (72)
Listings for Knowledge Base Knowledge Base (234)
Listings for Sample Chapters Sample Chapters (79)
Listings for Support WebCasts Support WebCasts (2)
Listings for Training Training (19)
 


Write smart code using sophisticated features of Generic List: A peek into Stock Quotes     
Total Hits: 86  |  Today: 0Author: Prajnan Das      Rating:  
Read Reviews | Write Review |  Your Rating: 

System.Collections.Generic.List offers some power features to work on the collections backed by the underlying list. This article explains some of them which can be exploited to develop robust object oriented code. It models a simple Stock Exchange as an example....

Designtime or not?     
Total Hits: 50  |  Today: 0Author: admin under      Rating:  
Read Reviews | Write Review |  Your Rating: 

When developing server controls sometimes you want to know (in your code, I mean) whether it's designtime or not.
Things like caching and optimization might not be suitable to do when in designtime and the trick to know is checking the Context variable....

Asynchronous File IO using anonymous method     
Total Hits: 201  |  Today: 0Author: nitstheone.      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article I will explain how to write code in C# to achieve asynchronous File IO using anonymous method.
The sample code with this article can be used like a template, just fill in the sections as per your requirement and use it.

Here is some explaination of the code :

I have started off my defining some variables...

Hide Hyperlinks From Site Visitors     
Total Hits: 128  |  Today: 0Author: Bipin Joshi      Rating:  
Read Reviews | Write Review |  Your Rating: 

When you move your mouse pointer on any of the link in the browser, the corresponding hyperlink is shown in the status bar. As a webmaster or developer of a web site, many times you want to hide such hyperlinks in your pages. This is needed frequently in download pages to hide the original content location or payment related pages. In this small code sample we will use ASP.NET HyperLink web control to display our links and then write code to hide them from the site visitors....

Client Callbacks in ASP.NET 2.0     
Total Hits: 81  |  Today: 0Author: Bipin Joshi      Rating:  
Read Reviews | Write Review |  Your Rating: 

The default page processing model in ASP.NET is post back oriented. That means when you click a post back causing control (such as button) your form gets submitted back to the server. Server side events are raised and the entire page output is sent back to the client. This can cause significant network overhead. The Client Callback feature allows you execute code from a web form without posting the form back to the server. You just retrieve the required value and update a small part of the overa...

Using the clipboard to transfer data to and from your applications     
Total Hits: 420  |  Today: 0Author: Jon Boyce      Rating:  
Read Reviews | Write Review |  Your Rating: 

The .NET platform has simplified a lot of things in Beta1. Simplifications Range from window controls to Enterprise web services. In this tutorial we will go through some steps for teaching you how to use the clipboard to transfer data to and from your .NET applications or any other application. To transfer clipboard data in .NET we need to use three classes, Clipboard, DataFormats and IDataObject. These classes reside in the System.WinForms namespace....

Calculating tax on an item     
Total Hits: 141  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

A common task for developers is to have to calculate tax for an item depending upon a total price. This quick code example shows you how to convert from double to decimal data types and perform a simple tax calculation....

Building Application Framework with C#     
Total Hits: 288  |  Today: 0Author: Nauman Laghari      Rating:  
Read Reviews | Write Review |  Your Rating: 

The Article introduces a C# developer to building framework. After reading, you'll get how the big names have performed most of the magic in Application Frameworks, like the Java Applet and Servlets Framework as well as the Microsoft Foundation Classes. This article is just an introduction to the complex topic. A short code sample is provided for practically demonstrating the purpose....

Web Enable your C# Program     
Total Hits: 329  |  Today: 0Author: Kamran Shakil      Rating:  
Read Reviews | Write Review |  Your Rating: 

This articles explains how to use your C# program in a web server (without using ASP.NET). You can either use IIS (built-in to Windows 2000/NT/XP Professional), or Apache....

Forms Authentication Against An XML File      
Total Hits: 520  |  Today: 0Author: Brad Kingsley      Rating:  
Read Reviews | Write Review |  Your Rating: 

This code shows how to validate against an XML file for Forms Authentication security in ASP.Net. Please read one of the earlier articles on Forms Authentication for an introduction and to see the required settings in the web.config file. The code below is just a modification of the login.aspx page....

HOW TO: Pass Optional Method Arguments from C#     
Total Hits: 685  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

C# does not support optional method arguments. However, there may be times when you are using components that were created in a language that supports optional arguments, such as legacy COM components or components created with Visual Basic .NET. This article explains how to take advantage of optional arguments....

Mouse and Key Events     
Total Hits: 1343  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article explains the usage of key and mouse events. The following code shows you how you can read mouse position on mouse move....

A Template for C# Windows Applications     
Total Hits: 960  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Why go through the hassle of creating the same components and event handlers for every C# Windows application? This article offers a template for quickly creating menus, toolbars, buttons and other Windows components.

...

Obtain all IP addresses of local machine     
Total Hits: 1241  |  Today: 0Author: Khalid Shaikh      Rating:  
Read Reviews | Write Review |  Your Rating: 

The code required to simply start up winsock in a Windows environment, and enumerate all the IP addresses on your local machine....

Get Current Window Handle and Caption With Windows API In C#     
Total Hits: 1675  |  Today: 0Author: Waheed Khan      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article Waheed Khan will show you how to use Windows API function GetForegroundWindow, and GetWindowText....

Detect OS Version Using C#     
Total Hits: 1777  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

In Win32 SDK, we have an API GetVersionEx that returns the information in OSVERSIONINFO structure. And then we can look at the values of various members of structures to decide what version of operating system we are running on. To accomplish the same task, .NET SDK provides a class named Environment. In this class there is a static method named OSVersion that returns OperatingSystem object. This object can be used to get the value of operating system version.


...

Jagged Array Example     
Total Hits: 1313  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Here is an example of how a Jagged Array works. The code I have included here also contains the decleration and it's operation....

C# Timer Demo     
Total Hits: 1849  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This is an example of a timer in C#. It gives you an understand of time/clock and time conversion functionality....

Creating a Dll And Using It With C#     
Total Hits: 904  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Here is a very quick and easy way to create a Dll and use it in C#...

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....



Disclaimer - Privacy
© 2002-2012 DevASP.net