Premium Content


Premium Content articles are the very best articles from the world's leading internet technology, subject-matter experts. We have many categories of content below on a wide variety of subjects that have all been commissioned from big name authors.

Explore the Premium Content

Sorting and Paging with a Repeater

This tutorial will explain how to implement sorting and paging within a repeater Server Control. The techniques shown can also be used to implement sorting and paging with other DataBound controls such as a DataList. First we will see how to implement sorting columns in both ascending and descending order, simply by allowing the user to click the column headers in a table. As you probably alread know, the DataGrid Server Control has built-in paging features, which means that to implement paging in a DataGrid control, all you need to do is set a couple of the DataGrids properties. 

However, not so many developers know that the PagedDataSource Class used to provide the DataGrids paging features can be used directly to facilitate paging on any type of DataBound control. This tutorial will demonstrate how this can be done. We will also see how both sorting and paging can be combined to implement a sorted and paged repeater.

Read More

Many Boxes: a CSS Layout

A popular layout style for sites that have lots of small chunks of content is to lay it out in lots of small boxes – an example is the BBC web site. With a tables-based layout, this would usually mean creating a grid with the table cells and putting content into each cell. In this article we will look at creating a layout which uses this boxy effect using CSS for layout.

Once we have created a three column layout to contain our boxes using CSS, we can explore how to position our boxes within that, so that content never overlaps, regardless of how much text is in each box, or whether the user resizes text. Then we explore how to change the CSS to make the layout less "boxy", but retain the same markup.

The code is supplied, and will work with Dreamweaver MX and MX 2004, but the tutorial uses the Insert Div Tag dialogue that is only available with MX 2004.

Read More

PHP Custom Web Statistics Part 3

In today's tutorial, Gareth provides and walks through the the code  to collect and display of your site's visitor statistics. We examine ways to select data in MySQL and display different types of hits in PHP. You learn how to identify different browsers, opeating systems, and whether the visitor is a "bot" or not ( robot from a search engine or other web crawler) and, if so, how to identify its origin, in order to display statistics to help you understand who visits your site.

Please note that this article forms part of a chapter in the DMXzone e-book PHP Web Applications for Dreamweaver: Juicy Solutions for the Busy Developer.

Read More

Using ASP.NET List Controls

This tutorial will explain how to correctly use the ASP.NET List Controls. These comprise of three types of control, DropDownList, ListBox and HTMLSelect. During the course of this tutorial you will learn how to bind dynamic data such as Database contents and how these controls can interact with events and other controls on your page. A common problem associated with using these controls in Dreamweaver where the selected item often ends up being the first item in the list after a postback is solved. How to manually insert, delete and pre-select items in a list controls is also shown. Read More

PHP: External Debugging With Sockets

Usually, when debugging a PHP script, the easiest method is using echo statements to write variables to the screen to trace the progress of the program. But imagine you're trying to debug a PHP script that produces an image, Flash file, PDF or some other multimedia; dumping to the screen will break the content that the script is trying to produce!

This tutorial provides a solution that uses sockets to connect to a port on our  machine or another machine, and write debug information out to that. This way we can have the output of our script displayed correctly or incorrectly as the case may be in our web browser, and the information about the variables in the script sent as output somewhere else.

Code is provided for Windows, Mac OS9, OSX, Linux and the RealBasic source.

Read More

ASP/ CSS: Searchable Image Gallery

This tutorial teaches you how to build a dynamically generated Photo gallery. The database stores keywords against each photograph, and then user can search on those keywords and the resulting images are dusplayed, using ASP to query the database and CSS to present the page, and so avoid tables and fixed numbers of columns.

This tutorial is suitable for intermediate-level Dreamweaver users, although no previous ASP knowledge is necessary. All the code is provided.

Read More

Introduction to XML: DTDs and XSL Transformations

XML needn't be scary. In this beginner's introduction to XML, Tom shows how to define a markup langauge using DTDs, and how XML can be styled just like any other "ML" (HTML, XHTML) etc using a regular CSS file. Then he shows you how to use XSL Transformations to produce HTML and CSS from a raw XML file on a client (using IE6).

This tutorial introduces complex concepts in a simple and accessible manner, and is suitable for beginners.

Read More

Creating Terrific Templates

Dreamweaver Templates are a powerful way to speed up development time, ensure visual consistency between pages, and keep markup and scripts organized. Templates allow you to create and draw upon full selections of code that you want to be able to use and modify across your site.

When you create a page using a template, it remains attached to that template and will be affected by any changes to that template until you detach the template. This lets you make changes to the template document and have those changes applied to all the pages that are attached to it, a terrific advantage that saves you time and helps prevent errors.

In this article with the Cornerstone series, you'll learn how to create templates and define regions prior to moving on to integrating them into your daily workflow.

 

 

Read More

PHP Graphing: 3D-Effect Pie Charts

This is the final article in the series on using PHP libraries to produce graphs on-the-fly from dynamic data. We've generated line graphs, bar graphs, pie charts, then coloured the pie charts and exploded them. This final tutorial shows how to produce 3D-style pie charts that can't enhance your sales figures - but can at least make the presentation of them look nicer!

All the code is supplied for you to download, adapt - or just import straight into your PHP pages so you can up and running straight away!

 

Read More

Shape and Typography: Foundations of Web Design Communication

"Content is king", they say. But they also say "presentation is everything". You've got all your database stuff working, your content is written, edited, proofed  .. and yet, somehow, the web page lacks that certain something. Linda helps you add that something special by guiding you through the design considerations of shape and typography - that's the shape of the paragraphs and images, and the shape of the actual letters themselves to lift your great content into the realm of the brilliant. Read More

CSS Layouts: Fixed widths and float

This tutorial will take you through the process of building a modern page design using CSS for layout and bearing in mind best practice in terms of document structure. The layout that we will be building demonstrates two useful techniques in terms of CSS layouts. We are going to design a page with a fixed width, centered layout and we will also be using the float property within this layout – so if you have been wondering how to do a fixed width layout or how float can be used for CSS positioning then this tutorial will hopefully answer some of your questions!

As this is quite a complex tutorial and we skip through some of the things quite quickly that are covered in other tutorials I have included the CSS and XHTML files in the code download, so you can compare your results with mine or use mine as a starting point for experimenting with this layout.

Read More

Draw Layers and DHTML

This article shows you how to set up behaviours and then apply behaviours to draw layers to create dynamic Web pages.  You will learn how to set up draw layers that appear or disappear when clicked, or layers that are draggable and can be repositioned anywhere in the page or within defined limits - it's up to you.  There's no coding necessary - it's all done through Dreamweaver behaviors which combine an event (something that happens on the screen) with an action (what the browser should do when the event is detected). Adding a behavior to a Web page allows visitors to interact with your page and the page to perform important tasks without having to reload the page.

Read More
Newer articles Older articles