|
Using the HttpBrowserCapabilities Class
|
Total Hit (645) |
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
|
|
|
Discover Directoy and File Data
|
Total Hit (802) |
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 (688) |
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 (919) |
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 (1049) |
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 (868) |
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 (1009) |
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 (796) |
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 (5332) |
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 (720) |
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 (855) |
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 (853) |
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 (872) |
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 (909) |
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 (927) |
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 (849) |
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 (2123) |
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
|
|
|
|
Including a Data Bound CheckBox in an Editable DataGrid
|
Total Hit (599) |
I've had several requests to show how a data bound checkbox could be included in an editable datagrid. This article shows how to bind a bit field from a table to a checkbox in a datagrid as well as how to update the table with changes in the checked state of the checkbox.
....Read More |
Rating
|
|
|
|
Using Templates With the ASP.NET Repeater Control
|
Total Hit (959) |
The Repeater control is a lightweight control but has many uses and has become a favorite of mine. Many developers do not realize that you can use templates with the Repeater. It has a limited set of templates, with few properties, but you can make use of them as this article demonstrates.
....Read More |
Rating
|
|
|
Filtering the DataGrid
|
Total Hit (541) |
In this article we will filter the DataGrid on two columns. This adds a little code complexity but is not really very hard to do.
|
Rating
|
|
|
Paging and Sorting in an ASP.NET DataGrid
|
Total Hit (650) |
Allowing paging or sorting in a DataGrid is a very simple process. Allowing for both is only slightly more complicated. This article shows you how to do it.
|
Rating
|
|
|
|
|
|
Implementing Paging in a DataList Control
|
Total Hit (861) |
The DataList does not include inbuilt support for paging. By overloading the Fill method of the DataAdapter, however, you can create a paging mechanism for the DataList
|
Rating
|
|
|
Error Handling in ASP.NET
|
Total Hit (491) |
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
|
|