|
Introduction to Web Forms State Management
|
Total Hit (929) |
Due to the nature of the standard transfer protocol ( http ), Web pages are regenerated each time the page is posted to the server ,because of which all information associated with the page, such as the values of controls contained within the page, would be lost with each round trip from the browser
....Read More |
Rating
|
|
|
Using WebRequest and WebResponse classes
|
Total Hit (851) |
.NET framework provides extensive set of classes for network programming. The System.Net namespace contains many such classes. In order to develop applications that involve web and HTTP .NET provides two important classes - WebRequest and WebResponse. There is another class called WebClient that act
....Read More |
Rating
|
|
|
Using Message Queing in .NET applications
|
Total Hit (1417) |
Message Queing provides asynchronous programming model for your applications. For distributed and internet applications whene immediate response is not required from the actual server message quing can be used. This makes your application robust as message delivary is guranteed even if the remote se
....Read More |
Rating
|
|
|
Object Oriented Programming with VB.NET and C#
|
Total Hit (508) |
.NET is fully object oriented platform that allow languages to take full advantage of these OO features. The features include:
«LI»Namespace
«LI»Classes
«LI»Objects
«LI»Encapsulation
«LI»Overloading
«LI»Inheritance
«LI»Overriding
«LI»Interfaces
«LI»Polymorphism
....Read More |
Rating
|
|
|
Manipulating Windows Event Log
|
Total Hit (2012) |
Windows Event Log keeps track of system wide and application level events. These events messages constitute things such as information messages, error messages, warnings and alerts. If your system is giving some troubles event log is the first place an administrator will look into. .NET framework pr
....Read More |
Rating
|
|
|
Using DeviceIoControl to Obtain Physical Drive Information
|
Total Hit (1849) |
Win NT/Win2000 developers have access to a unique API that provides low-level system information - DeviceIoControl.
This example succeeds only when it runs on Windows NT/Windows 2000/Windows XP, for two reasons:
«LI»The standard device input/output control codes are available only on Windows N
....Read More |
Rating
|
|
|
An API 'DriveExists' Routine
|
Total Hit (1287) |
For the API purest, here's a tiny function that simply returns True if a specified drive exists, or False if not.
Using GetLogicalDriveStrings, its a simple matter of retrieving all the available drives, then performing a case-insensitive Instr() against the result to determine if the passed drive
....Read More |
Rating
|
|
|
Using GetDiskFreeSpaceEx on 32-bit Windows
|
Total Hit (1404) |
This page presents four key wrapper routines for the data returned by the GetDiskFreeSpaceEx API. It works on both Win95 and Win95 OSR2, as well as Win98, NT4 Windows 2000 and Windows XP. By checking for the proc address of the GetDiskFreeSpaceExA API in kernel32.dll, which will only return a valid
....Read More |
Rating
|
|
|
Changing File and/or Folder Attributes Recursively
|
Total Hit (1410) |
The basic recursion techniques from Performing Recursive Searches Using FindFirst and SearchTreeForFile are used in this demo, but modified to include code for changing either the file, folders or both beneath the target directory specified. The code returns to the list all files processed, as well
....Read More |
Rating
|
|
|
Locking Removable Media Devices Using DeviceIoControl
|
Total Hit (1589) |
Using DeviceIoControl, together with the PREVENT_MEDIA_REMOVAL data user-defined type and the IOCTL_STORAGE_MEDIA_REMOVAL control code, it is possible for WinNT/Win2000 users to lock and unlock any removable device. A removable device might include, as it does on my system, CD-ROMs and LS-120 drive
....Read More |
Rating
|
|
|
Checking for Media Availability Using DeviceIoControl
|
Total Hit (1435) |
This is the DeviceIoControl method for determining if a given drive has media present. The nice thing about this call is that it does not need to spin up the disk - the call returns instantly. The only lag might be if a new disk was inserted and the call was made while the OS was spinning up the dri
....Read More |
Rating
|
|
|
|
Obtaining Processor Information using WMI
|
Total Hit (1399) |
Windows Script Host is built into Microsoft Windows 98, 2000, ME and XP. If you are running Windows 95 or NT4, you can download Windows Script Host from the Microsoft Windows Script Technologies Web site at http://msdn.microsoft.com/scripting/. Some information is not returned on non-NT-based system
....Read More |
Rating
|
|
|
Enumerating Share Connection Information
|
Total Hit (1571) |
The WNetEnumResource API continues enumeration of network resources on the local computer that was started by a call to the WNetOpenEnum API function. It will not retrieve the shares in use on remote machines. The illustration shows the function enumerating all network resources on my development ne
....Read More |
Rating
|
|
|
How to Share a Folder using NetShareAdd
|
Total Hit (1542) |
The NetShareAdd function shares a server or workstation resource. Only members of the Administrators or Account Operators local group, or those with Communication, Print, or Server operator group membership can successfully execute the NetShareAdd function. The Print operator can add only Printer qu
....Read More |
Rating
|
|
|
Connecting to Network Resources
|
Total Hit (1747) |
These are small network routines that provide developers with increased functionality and usability.
The first two routines deal with displaying the Map Drive and Disconnect Mapped Drive dialogs.
The second two deal with printers; the first shows the Windows dialog responsible for setting up a
....Read More |
Rating
|
|
|
Enumerating Shared Resources on Remote Machines
|
Total Hit (1678) |
NetShareEnum retrieves information about each shared resource on a server. It's security requirements are the same as those outlined in Obtaining Workstation User Logon Information.
WNetEnumResource can also be used to retrieve resource information, however, it does not enumerate hidden shares or
....Read More |
Rating
|
|
|
Translating a Mapped Drive to a UNC Path
|
Total Hit (1622) |
WNetGetConnection, when passed the drive letter of a mapped drive, will return the full UNC path to the \\server\share that drive is mapped to. By adding a few Shell APIs we can create wrapper routines to perform tests on the constituent portions of the mapped path to assure the returned value point
....Read More |
Rating
|
|
|
Developing a hit counter in ASP.net
|
Total Hit (2610) |
In this example, we will create a web page which will track and display the hit counts for the web site. ASP developers must be familiar with a similar technique used to track the hit counts in classic ASP web pages.
|
Rating
|
|
|
ASP.NET Graphical Page Hit Counter
|
Total Hit (1002) |
In this example, we will create a web page which will track and display the hit counts for the web site. ASP developers must be familiar with a similar technique used to track the hit counts in classic ASP web pages.
|
Rating
|
|
|
Creating Images on the Fly with ASP.NET - Introduction
|
Total Hit (1192) |
Before the advent of the .Net framework, creating images on the fly for a web browser was a tedious task. Now, thanks to the .Net framework, creating images on the fly is a simple task. This article will provide the reader with the fundamentals necessary to start developing dynamic images with the .
....Read More |
Rating
|
|
|
|
Search for values in a FlexGrid control and sort it by columns
|
Total Hit (2367) |
To search for values, simply loop through the grid looking for the target value. Use the TopRow property to ensure that the row is visible after you find it.
To sort by columns, use the MouseRow property to see if the user clicked the control's column header. Use MouseCol to see which column was
....Read More |
Rating
|
|
|
|
Binding SQL Data to a DataGrid
|
Total Hit (1944) |
The DataGrid control supports a DataSource property that takes an IEnumerable or ICollection, as well as a DataSet. You can use a DataSet by assigning the DefaultView property of a table contained in the DataSet to the name of the table you wish to use within the DataSet. The DefaultView property re
....Read More |
Rating
|
|
|
|
|
Custom ASP.NET Datagrid Paging With Exact Count - Introduction
|
Total Hit (803) |
Anybody in the DB world knows what paging database results is and its effect. From the time I had started getting into good old classic ASP, I was intrigued with the ability to divide large sets of data into sections of x records per page. One thing that I didn't like about paging is that it seemed
....Read More |
Rating
|
|
|
ASP.NET DataGrid Paging Part 1 - Built-In Paging
|
Total Hit (577) |
The DataGrid server control enables easy paging through data. You can set the DataGrid to use paging and specify a page size (number of records to display). Each time the page is loaded the DataSet is recreated and the DataGrid is bound to the appropriate records based on what page is to be displaye
....Read More |
Rating
|
|
|