|
Using the HttpBrowserCapabilities Class
|
Total Hit (672) |
There are any number of reasons to need to know certain capabilities of your user's browser. The HttpBrowserCapabilities Class provides you with many of the properties of the user's browser allowing you to adjust your presentation accordingly
|
Rating
|
|
|
.NET Remoting - Part III/IV
|
Total Hit (3001) |
Remoting provides a very flexible environment for distributed applications in the .NET arena. In part one I introduced the background to distributed applications and the .NET remoting architecture that aims to support distributed applications. In part two we looked at some examples of the applicatio
....Read More |
Rating
|
|
|
Discover Directoy and File Data
|
Total Hit (829) |
This is a short article, and a small amount of code, to get you started in discovering data about the files contained in a specified directory. In the article you will be exposed to the DirectoryInfo and FileInfo members of System.IO. Actually, you have a couple of choices when discovering directory
....Read More |
Rating
|
|
|
Use System.IO to Explore Data About Your Files
|
Total Hit (732) |
This is a fairly simple little program to get you started exploring the System.IO namespace. In this program we will discover the Attributes, Creation Date and Time, Last Accessed date and time, and Last Modified date and time of a file on disk. This example happens to use a simple text file, but th
....Read More |
Rating
|
|
|
|
All About ASP.NET User Controls
|
Total Hit (955) |
If your are not making use of User Controls in your web applications you probably should be. They can save you many key strokes and help you immensely with maintaining a consistent design between pages of your application.
|
Rating
|
|
|
Placing a Date Last Updated for a Page Inside a User Control
|
Total Hit (1099) |
You may have noticed that dotnetjohn.com pages now include a "Last Updated:" line at the bottom of all pages. I make extensive use of user controls on this site. The top of the page down through the "Powered by ASP.Net" graphic is a user control. The left side navigation is a user control as is the
....Read More |
Rating
|
|
|
Using the CustomValidator Control
|
Total Hit (908) |
Sometimes one of the predetermined types of validation controls such as a RequiredFieldValidator, or a RangeValidator just will not do the job you need done. In this case you need to write a Custom Validator to achieve the desired results.
|
Rating
|
|
|
|
Utilize Built-in Validation Controls on Your Web Forms
|
Total Hit (1067) |
The following program demonstrates the use of several of the .Net validation controls. The first two text boxes utilize the RequiredFieldValidator control. There is no particular reason for these fields to be required - they just demonstrate use of the control. The use of RequiredFieldValidators is
....Read More |
Rating
|
|
|
ASP Configuration Files
|
Total Hit (831) |
ASP.NET/ IIS applications use an optional XML-based configuration file named web.config, to maintain application configuration settings. This extends and/ or changes any settings in the system wide configuration file, machine.config.
|
Rating
|
|
|
Securing an ASP.Net application
|
Total Hit (5444) |
this article develops a reasonably secure login facility utilizing the inbuilt features of ASP.Net (forms based authentication). Also presented is an introduction to related security features and issues, in particular mentioning how security could be further improved by consideration of technologies
....Read More |
Rating
|
|
|
Store Your Database Connection String in Web.Config
|
Total Hit (763) |
Here we present an example of how to store a database connection string in the application's Web.Config file. Web.Config is a part of every asp.net application and provides a nice, central location for storing information that may be needed in many of your web pages. This first bit of code is just a
....Read More |
Rating
|
|
|
Including a Popup Calendar Inside an ASP.NET Datagrid
|
Total Hit (903) |
In previous articles we have shown ways to include a popup calendar for web forms. In this article we will demonstrate how to do it within an asp.net datagrid. The actual technique is about the same. You just have to know how to setup the datagrid and the codebehind to accomodate it. We will get rig
....Read More |
Rating
|
|
|
Bi-directional Sorting and Paging in the ASP.NET Datagrid
|
Total Hit (896) |
Without some special handling you end up with a mess when you try to combine sorting and paging in the same ASP.NET datagrid. When you try to implement two-way, or bi-directional, sorting the mess gets even worse. This article shows a way to combine the two.
....Read More |
Rating
|
|
|
Insert a Row Within an ASP.NET DataGrid
|
Total Hit (920) |
In a previous dotnetjohn article we showed how to insert a row in an ASP.NET Datagrid using a form field outside the datagrid. This article will demonstrate a way to use the footer of the grid as a container for the insertable data.
|
Rating
|
|
|
Creating Dependent DropDownLists
|
Total Hit (945) |
Forcing the contents of DropDownList2 to change based upon the selection made from DropDownList1 is a fairly common requirement of dynamic web pages. .NET makes this fairly simple to handle by using the OnSelectedIndexChanged event and setting AutoPostBack to True. To do this dynamically, retrieving
....Read More |
Rating
|
|
|
Sorting in a DataList Control
|
Total Hit (970) |
It is relatively simple to add sorting to the DataList control if you don't mind link buttons residing outside the control. In this article we will demonstrate one way this can be done. There will not be a lot of verbage in this article as the code will pretty much speak for itself. First we will ta
....Read More |
Rating
|
|
|
Multi-row Editing in the ASP.NET DataGrid
|
Total Hit (886) |
This articles demonstrates how you can have multiple datagrid rows available for editing at one time, not just the one row you are normally limited to.
|
Rating
|
|
|
Exporting DataGrids to Excel
|
Total Hit (2192) |
Ken Walker's article on exporting DataSets to Excel has proved very popular. This article by Mike Dolan presents a different technique for getting a DataGrid rather than the DataSet into Excel. We believe you will find it very useful.
|
Rating
|
|
|
Debugging an ASP.NET Web Application, Part II - Debugging
|
Total Hit (919) |
Bugs are a fact of the programmer's life. How can we deal with them efficiently? In this series of two articles I'm going to look at two main areas of finding and fixing errors in your program - Tracing and Debugging.
|
Rating
|
|
|
|
Event Handling in ASP.NET
|
Total Hit (579) |
The ASP.NET model hides the programmer from some of the full complexities of event handling in VB.NET, as does the IDE of VS.NET so this article shall hopefully provide a little insight into what's available in the .NET framework.
|
Rating
|
|
|
Creating and Using .NET Components
|
Total Hit (928) |
Code reuse is an important concept in software engineering. This article looks at how we can implement one method of code reuse via the building of reusable components.
|
Rating
|
|
|
Separating Code from Content in ASP.NET Pages via Code-Behind
|
Total Hit (595) |
ASP.NET web forms can be logically divided into two sections: the user interface (UI) components and the code for the page. The user interfaces comprises HTML and ASP.NET controls. The code programmatically interacts with the UI elements.
|
Rating
|
|
|
Globalization and Localization
|
Total Hit (543) |
The .NET Framework provides support for globalization and localization. Localization is the custumization of data and resources for specific 'locales' or languages. Whereas in pre-Internet days it wasn't unusual for an application to be designed for use in a single country, now an Internet applicati
....Read More |
Rating
|
|
|
Debugging an ASP.NET Web Application, Part I - Tracing
|
Total Hit (943) |
Bugs are a fact of the programmer's life. How can we deal with them efficiently? In this series of two articles I'm going to look at two main areas of finding and fixing errors in your program - Tracing and Debugging.
|
Rating
|
|
|
Comparing the Performance of Various Iteration Methods
|
Total Hit (541) |
When you have to iterate through large amounts of data, you can save significant time by choosing your iteration method carefully.
Method #1: Enumeration
Method #2: Indexing
Method #3: Indirect Array
Method #4: Direct Array
Method #5: Pointer Math
....Read More |
Rating
|
|
|
|
Error Handling in ASP.NET
|
Total Hit (516) |
In anything but the simplest of cases your application will contain errors. You should identify where errors might be likely to occur and code to anticpate and handle them gracefully.
|
Rating
|
|