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

DataBinding for Beginners in ASP.NET

DataBinding for Beginners in ASP.NET

When building any application, whether it’s ASP.NET web apps or WinForms desktop apps you will eventually come across the need to DataBind. DataBinding is the basic process of presenting dynamic data sources within a user interface component.

DataBinding isn’t limited to just interface components, but it is probably the most common occurrence you’ll encounter. Without DataBinding your web pages would only be able to display static data, or dynamic data populated programmatically.

DataBinding can take on numerous formats, from very simple to complex. The .NET framework also provides you with many possible DataBinding properties throughout the web control library to give you a lot of control and flexibility. Take for example a Label control, you can bind its foreground and background color properties. Although not a common requirement it shows binding can be more advanced than simple text values.

In this tutorial we’ll look at several basic examples of DataBinding on different controls available in ASP.NET. We’ll explore basic page property binding for a Label control, custom class property binding for a TextBox control, collection class binding for a DropDown control, and DataTable binding for a DataGrid control.

Note: Visual Studio .NET is required for this tutorial and both VB.NET and C# code examples will be provided

Read More

Design and Accessibility: Part VIII

Accessible Form Problems and Solutions

In the previous design and accessibility article, Linda illustrated various changes that she made to the Montrose Citizens for Responsible Growth test site to date. The alterations included changes to global structure within the WordPress PHP files and in the accompanying CSS file. In this article, Linda addresses the W3C’s accessibility guidelines for forms and how these guidelines work in some cases and are unnecessary in others. The solutions included in this article provide a means for developers to use dynamic scripts (like PHP and ASP) to make their sites more accessible. She also provides some back-up solutions for developers who want to stick with client-side applications which incorporate programs like AJAX.

Minimal Form Accessibility: W3C Standards and Inherent Problems

The minimal accessibility standards set for any Website HTML forms come from the granddaddy of all Web accessibility standards – the World Wide Web Consortium (W3C). In their instructions on how to create accessible forms, the W3C discusses six HTML form issues. I adjusted the order of the six directives so that they make more sense (at least to me!). Also please notice that the W3C examples were written for HTML documents only, and the first tip-off to this limitation is indicated by the use of capital letters in the tags. XHTML construction is formulated with all lower-case letters, and the W3C has addressed XHTML/DTD forms in their XHTML forms modules. However, I’ve also included some examples of how to modify the codes below to fit XHTML formats in this article.

Read More

Getting started with Flex 2.0 Beta 2

If you’ve worked with Flash, you have probably heard of Flex. So what is it and why do you need to know more? Flex allows you to create Rich Internet Applications without Flash. In Flex, you create applications using a standard set of XML tags from a language called MXML. The tags describe the interface and you can write ActionScript to wire up the components and make the application work.

Read More

Dreamweaver ASP.NET User Management System: Emailing Lost Passwords

In this tutorial, the third in my series on Forms based User Authentication and Authorization with Dreamweaver and ASP.NET, we’ll learn how to build an “Email Lost Password” page to complete our User Management System. If you have not yet read the first of this series, “Multi-Level Forms Authentication with Dreamweaver and ASP.NET: Roles Logins”, or the second Dreamweaver ASP.NET User Management System: Creating and Managing User Groups, I recommend you do so as this tutorial will build upon in earlier in depth discussions of the concepts involved. That said, this tutorial stands on it’s own in the presentation of the topics covered. If you already know how to configure your web site for forms authentication security and roles using the web.config, how to log those users in and associate the user’s identity and role, and how to control the user’s browsing experience programmatically based upon user identity, how to create new users and mange their group membership, then the first two tutorials are probably not for you. 

Before we get started, let’s see if you’re ready. This tutorial makes some assumptions about your skill level--that is, this tutorial is intended for intermediate users. If you’ve never configured a new site in Dreamweaver, never configured a database connection string, or never used the Dreamweaver database connectivity tools, this tutorial is probably not for you as you’ll need to be familiar with these concepts and techniques. If you have done these things but have very little or no experience hand coding, writing SQL statements, using the Dreamweaver advanced Dataset Dialog, don’t worry we’re doing this together and I’ll to do my part to bring you along.

Read More

ASP.NET for Beginners

The purpose of this tutorial therefore is to give new developers or even veteran developers looking for a refresher, a very basic look at the core features and functionality of ASP.NET 1.1. We’ll review some of the theory and key concepts to ASP.NET and look at 2 very basic code examples.

We’ll try to unravel some of the mysteries behind what is going on when you use the types of features in ASP.NET so you have a more clear understanding of how to take the knowledge and apply it in your own applications.


Read More

Design and Accessibility: Part VII

Usability and Accessibility in Action and Example

In the previous design and accessibility article, Linda explained the use of visible or invisible skip links and access keys as tools to help viewers navigate a Website. The use of these tools, among others, helps a Web designer or developer to create usable and accessible Websites. In this article Linda takes readers back to the Montrose Citizens for Responsible Growth site to illustrate how she’s changed the site’s code and structure to date so that the site is more navigable for all users. This lesson is based on the previous six articles in this series, where usability, accessibility, global structure, and the separation of content, structure, and presentation are addressed. The Montrose site is based on a WordPress blog, but all blog users and Website developers can follow some code examples in this article to make sites more accessible.

Read More

Using Contribute to Edit Your Website

What is Contribute?

Contribute is desktop software that you install on a Mac or Windows machine. It costs $149 (or less in quantity) and allows a non-technical user to edit web pages. With minimal training almost anyone who is competent with e-mail, word processing and web browsing can edit existing web pages.


Read More

Dialogue Boxes in ASP.NET

Dialogue boxes are a fundamental part of any application, whether it be a desktop or web application.  They provide a basic level of interaction between the application and the end user, allowing the user to control basic application flow through various messages.

Web applications in general often make it difficult to implement even basic functionality that is easily provided in the desktop world due to the single request/response methodology in a thin client/server model. To make matters worse, the ASP.NET postback pattern makes it even more difficult to customize page flow.

Although the postback pattern in ASP.NET has made a world of improvements in everyday basic development, it has also created several new shortcomings and limitations that require some trickery and creativity to make certain features work.

Adding even further to the limitations of the postback pattern is the use of JavaScript by the .NET framework to control most user interface events. Clicking a button for example executes some JavaScript which reloads the page, sending a postback event to the server.

The reason this complicates matters so much is because most developers turn to JavaScript when implementing basic client side features, such as confirmations, alerts and popups. Tying into the existing JavaScript used by the .NET framework isn’t always the easiest and requires a thorough understanding of the JavaScript utilized by .NET on web form controls.

In this tutorial we will look at 3 different methods of providing basic user input and interaction using JavaScript and ASP.NET controls. We will look at how we can append our own functionality to the built in .NET JavaScript functionality provided by ASP.NET user controls.

The 3 examples we will look at are as follows:

1)       Alert information display

2)       Confirmation conditional processing

3)       Modal Dialogue Popup window with conditional processing

Although this tutorial is built using ASP.NET with Visual Studio .NET, the code required is extremely simplistic and the functionality is geared more towards JavaScript client side code.

Note: Both VB.NET and C# examples are provided in this tutorial

Read More

Dreamweaver ASP.NET User Management System: Creating and Managing User Groups

Managing users and user groups users is necessary on a number of websites, for instance the one you’re using now has different user groups with different duties and levels or authority. If you’ve spent much time developing with Dreamweaver and Classic ASP, you used Dreamweaver’s built in support for user management. If you wanted to create a new user, it was only a point and a click away in the Server Behaviours drop down. Imagine my surprise when, while building my first ASP.NET application, I found no such behaviour I could simply apply. No, I had to figure it out myself and it was far too late to add any extra money to the project budget for overtime! As it turned out, with careful thought and a few Google searches, I was able to craft a page that added new users without duplicates and without killing my weekend.

In this tutorial, the second in my series on Forms based User Authentication and Authorization with Dreamweaver and ASP.NET, we’ll learn how to build a “Create New User” page and a User Management System for assigning Roles to new users by joining them to user groups. If you have not yet read the first of this series, “Multi-Level Forms Authentication with Dreamweaver and ASP.NET: Roles Logins”, I recommend you do so as this tutorial will build upon in depth discussions of the concepts involved found in the first tutorial.

Read More

Building a Simple Hangman Game with Flash part 2

Welcome to the second part of our two part tutorial about how to build a simple hangman game. In the first part of the tutorial, we discussed the logic behind the application and covered each of the interface elements that we’d need for the game.

You don’t need to have completed part 1 of the tutorial, but it will help you to understand exactly what we’re building here.

As with part 1, you’ll need to have a basic knowledge of ActionScript to complete the tutorial. You’ll need to know where to enter ActionScript and have a basic understanding of concepts like variables and functions. The code in this tutorial is ActionScript 2.0 but it is not class-based. You’ll need at least Flash MX 2004 to complete the tutorial.

You can download the source files for the tutorial from the blue Properties box that contains the article PDF. There's a heading titled Code Download and you can click the Details link next to it to get the zip file. The download includes the starter file as well as the completed hangman game.

Note: If you have difficulties downloading the source files or PDF, you might have a problem with your cookies. Delete the cookies from your machine and try again. In Internet Explorer, you can do this by choosing Tools > Internet Options… and clicking the Delete Cookies… button on the General tab.

Read More

Design and Accessibility: Part VI

Navigation and Accessibility Tools

In the previous design and accessibility article, Linda explained why site navigation is similar to graphical and architectural wayfinding. If a user cannot visualize how to navigate through your site, or if you don’t post guidelines and highly visible and consistent signs along the way, the user will become lost and frustrated. Unlike Websites, if a user becomes lost in a building, they must plan how to navigate a way out of the building. Unfortunately, if a user gets lost in your site, all they need to do is navigate to safety is to close the browser window.

In sum, if your site isn’t accessible, then it isn’t navigable. As the U.S. Section 508 demands more attention and with the introduction of the PAS 78 in Great Britain, knowledge of accessibility means that you gain an upper hand in Website-building bidding wars. To that end, Linda expands on content placement and how to find content with skip links and access keys through tips and code examples. If you’re fond of new technologies, like AJAX (Asynchronous JavaScript And XML), Linda will also give you fall-back options so that a larger number of viewers can access your site.

Read More

Hands-on Primer on skinning Flash components

Introduction

Flash components are cool! That, of course, is an understatement.  The ability to create highly customized, visually attractive application interfaces is the most obvious advantage of Flash components over their HTML counterparts. One could never achieve the same level of customization with CSS and HTML as with skins in Flash.

Back in Flash MX days skinning components was a fun and easy thing to do: you would simply modify some items in the movie’s Library and publish your movie – your components would be updated in a blink of an eye.

But ever since the version 2.0 of the Components architecture was implemented many designers have been feeling shy about the whole skinning idea. As the skins’ elements are embedded into the precompiled SWC movie clips and are no longer listed in the movie’s Library, they are not available directly for editing.

Well, the truth is the new architecture allows you to skin your components in a smarter, more organized way.
Sure you can change colors of certain elements through Action Script, apply “halo themes” and Cascading Style Sheets, but version 2.o architecture also allows you to modify your components’ appearance directly as you would do with any regular shape of symbol.

This article is called “Hands-on Primer on skinning Flash components”. It means that I am not going to bore you with a lot of theory. You will find a little bit of theory at the end of article (just a tiny bit), but by the time we are done you will intuitively know most of it.

Read More
Newer articles Older articles