ASP 101 - Active Server Pages 101 - Web06
The Place ASP Developers Go!

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash





ASP.NET version of "Flex Table"


Usually when you design a page, you are the one that has to decide what a data table will look like, but what if you want to give your users some options? This neat little sample script allows users to select how many columns the data table should have.

Whenever I convert one of our samples, I normally try and include all the features of the classic ASP version. This time I'm breaking that tradition in order to keep things simple. While I could easily have just converted the classic ASP version to ASP.NET, doing so without using a data-bound control wouldn't have really reflected the ".NET way of doing things." Unfortunately, by making the decision to do things this way we run into a problem -- adding paging to a DataList is non-trivial and is a little outside the scope of the sample. So for now I'm leaving out the paging portion of the code in an effort not to confuse everyone.

I'm not sure how many of you are really interested in the paging, but if there's enough demand for it, I'll provide an alternate version which doesn't use the DataList control and is truer to the original sample.

Here's a zip file of the code (1.2 KB).

Play with the running version.

View the live source code.


Back to the "Flex Table" sample


Samples

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers