|
Using the CustomValidator Control
|
Total Hit (907) |
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
|
|
|
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
|
|
|
Using Templates With the ASP.NET Repeater Control
|
Total Hit (996) |
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
|
|
|
Implementing Paging in a DataList Control
|
Total Hit (898) |
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
|
|
|
Mouseover Highlighting and the Repeater Control
|
Total Hit (914) |
The Repeater Control is a lightweight control that really comes in handy. In this article we examine one use of the Repeater and show how to implement row highlighting and selection.
|
Rating
|
|
|
Using the ASP.NET Panel Control
|
Total Hit (1007) |
The Panel Control is so easy to use that I hesitated to even write an article about it. But I have received several questions about it so decided to write the article anyway. The Panel Control is a container that allows you to include other server controls on it. It is primarily used for containing
....Read More |
Rating
|
|
|
Exploring the Internet Explorer WebControls
|
Total Hit (882) |
Treeview, Toolbar, and TabStrip controls have been a part of client-server applications for years. They are not as common on the web due to the dhtml involved. Actually, for the most part, Microsoft has implemented dhtml for these controls only if you are running IE 5.5 and above. Downlevel browsers
....Read More |
Rating
|
|
|
Use the DataList Control to Present and Edit Data
|
Total Hit (913) |
The DataList is not as powerful as the DataGrid. It requires more work from you since it has no default data presentation format. However, the DataGrid begins to get very cumbersome as the number of columns of data you present increases. Anything more than half a dozen columns or so and you probably
....Read More |
Rating
|
|
|
Exploring the Calendar Control
|
Total Hit (947) |
In this article we will utilize a number of the properties of the Calendar Control to change the calendar's appearance. The default values produce a usable, but not very attractive control. Much can be done to improve its appearance. We will also make use of two of the control's events to determine
....Read More |
Rating
|
|
|
Work with the DataList control?
|
Total Hit (1011) |
«LI» Introduction to Templated Controls
«LI» Handling Postbacks from a Template
«LI» Using Select and Edit Templates
«LI» Finding a Control Inside a Template
«LI» Section Summary
|
Rating
|
|
|
Working with AdRotator
|
Total Hit (1104) |
The AdRotator control presents ad images that, when clicked, navigate to a new Web location. Each time the page is loaded into the browser, an ad is randomly selected from a predefined list. The following sample illustrates using the AdRotator control.
....Read More |
Rating
|
|
|
Include a calendar on a page?
|
Total Hit (1024) |
«LI» Working With Calendar
«LI» Date Selection Modes
«LI» Selection Link Graphics
«LI» Selection Link Text
«LI» Adding Custom Content to Calendar
|
Rating
|
|
|
HtmlInputFile
|
Total Hit (988) |
An HtmlInputFile control handles uploading of binary or text files from a client browser to the server. File-upload works with all HTML 3.2 and later Web clients. Note that the Enctype attribute on the <form> tag must be set to "multipart/form-data".
|
Rating
|
|
|
Handling Errors
|
Total Hit (950) |
«LI» Customizing Error Pages
«LI» Handling Errors Programmatically
«LI» Writing to the Event Log
«LI» Section Summary
|
Rating
|
|
|
Mulltiple File Upload - Hotmail Style
|
Total Hit (1041) |
Demonstrates how to upload multiple files using one HttpInputFile control - Hotmail style! The Input type=file allows a user to select only one file at a time thereby forcing a developer to use multiple Input type=file on a page.
|
Rating
|
|
|
Using XML Web Control
|
Total Hit (813) |
Now a days use of XML is increasing quickly. Many times data that you want to display can be stored in XML files rather than statically putting it in HTML pages. Such XML data can be transformed to HTML by applying XSL style sheet to it. In traditional ASP, we used XSL Transform objects to achieve t
....Read More |
Rating
|
|
|
Simple Paging in Repeater and DataList Controls
|
Total Hit (1134) |
Most of the times while creating database driven web pages like product listing, employee directory, etc. we display the data in grid format. ASP.NET has come up with Web Controls like DataGrid, DataList and Repeater that allow you to display your data in tabular format easily
....Read More |
Rating
|
|
|
Top Questions about the DataGrid Web Server Control
|
Total Hit (1418) |
Windows Forms versus Web Forms DataGrid Controls
Controlling Column Width, Height, and Alignment
Customizing Column Layout in Display and Edit Mode
Formatting Dates, Currency, and Other Data
Showing and Hiding Columns Dynamically
Adding Columns Dynamically
Adding New Records to a Data Source U
....Read More |
Rating
|
|