| Home : Programming : ASP.NET |
| Click "Subscribe" if you want to be notified of new or updated links in this category. | Subscribe |
|
|
|
Accomplish a number of common tasks with the Microsoft ASP.NET 2.0 GridView control. Each task is accompanied by a description of the new concepts covered.
Updated: 05/30/2005
|
|
|
GridView examplesWhen displaying large amounts of data it\'s often best to only display a portion of the data, allowing the user to step through the data ten or so records at a time. Additionally, the end user\'s experience can be enhanced if they are able to sort the data by one of the columns. Creating a pageable, bi-directional sortable DataGrid in ASP.NET 1.x was possible, but required creating two event handlers and writing, at minimum, a half dozen lines of code. The good news is that with ASP.NET 2.0 you can create a pageable, bi-directional sortable DataGrid without writing a single line of code!
Updated: 05/30/2005
|
|
|
GridView examplesIn Microsoft ASP.NET 1.x, one of the most commonly used ASP.NET Web controls is the DataGrid. The DataGrid control makes displaying data on an ASP.NET page a breeze: simply drag and drop the DataGrid onto your ASP.NET page, specify the columns and formatting, and write just a few lines of source code to retrieve and bind the data to the DataGrid. With a bit more effort and code, you could enable the end user to page, sort, and even edit the data within the DataGrid.
Updated: 05/30/2005
|
|
|
GridView examples. In the examples we\'ve looked at so far, the GridView\'s output is a tad drab and unattractive. In Figure 7, for example, the GridView\'s output lacks any color. The text in the header of each column matches the DataSource field names exactly, like ProductName (without a space between Product and Name), whereas it would make more sense to display it as Product Name or perhaps just Product. We also might want to have the UnitPrice column formatted as a currency, and have its data right-aligned. Perhaps we want to reorder the columns, or only display a subset of the columns returned by the data source control. Or we may want to employ more advanced formatting, such as changing the background color of the GridView row if there are zero items in stock.
Updated: 05/30/2005
|
|
|
GridView examples.In most data models there are numerous one-to-many relationships. For example, in a data model that contains information about a company\'s workforce, there might be a Locations table and an Employees table, the Locations table cataloging the various offices of the company and the Employees listing the company\'s employees. The business rules may be such that each employee is assigned to precisely one location, thereby establishing a one-to-many relationship between locations and employees.
Updated: 05/30/2005
|
|
|
GridView examples.One of the most common tasks Web developers face is working with data. The data might be from an XML file, from a database, or provided through a more abstract interface, such as through a set of classes acting as a data access layer. Needless to say, a large amount of time goes into rather mundane data-related tasks such as:
Updated: 05/30/2005
|
|
|
Introduction Accessibility and the Law Accessibility Issues in Web Pages Areas for Improvement Recommendations for Maximizing Accessibility Assisting Navigation Identifying Elements and Accessing Alternate Content General Recommendations CSS Style Sheets Testing Your Sites and Applications Page 2 Server Control Accessibility Enhancements in ASP.NET 2.0...
Updated: 05/28/2005
|
|
|
Server Control Accessibility Enhancements in ASP.NET 2.0 Part one of this article discussed general accessibility issues that you really should bear in mind when building Web sites and Web applications to make it as easy as possible for disabled visitors to be able to understand the content, navigate around the site, and generally be able to use it with a specialist user agent
Updated: 05/28/2005
|
|
|
This article assumes you\'re familiar with ASP.NET Level of Difficulty 1 2 3 Download the code for this article: ASPNETUserState.exe (117KB) SUMMARY ASP.NET provides many different ways to persist data between user requests. You can use the Application object, cookies, hidden fields, the Session or Cache objects, and lots of other methods. Deciding when to use each of these can sometimes be difficult. This article will introduce the aforementioned techniques and present...
Updated: 05/28/2005
|
|
|
In this article, we explore some tips and tricks for using the Microsoft .NET framework for developing Web services. In the first section, I\'ll provide a brief comparison between ASP.NET Web services and .NET remoting, and then I\'ll delve into five tips I\'ve found useful for developing ASP.NET Web services. Before You Build: ASP.NET Web Services Versus .NET Remoting ASP.NET Web services and .NET remoting are two...
Updated: 05/28/2005
|
|
|