Telerik is a leading vendor of ASP.NET AJAX, ASP.NET MVC, Silverlight, WinForms and WPF controls and components, as well as .NET Reporting, .NET ORM , .NET CMS, Code Analysis, Mocking, Team Productivity and Automated Testing Tools. Building on its expertise in interface development and Microsoft technologies, Telerik helps customers build applications with unparalleled richness, responsiveness and interactivity. Telerik products help thousands of companies to be more productive and deliver reliable applications under budget and on time.
Version Q2 2011 released 07/12/2011
select

Input / Accessibility

Section 1:

Basic information

Name:

Age:

Phone Number:

Date of Birth:

Section 2:

Hire information

Hire Date:

Salary:

E-mail:

Additional information:


Accessibility validation

Validate with WAVE

WAVE is a free web accessibility evaluation tool, which checks for compliance issues with many of the Section 508 and WCAG guidelines. Have in mind that only humans can determine whether a web page is accessible - the above validation link is provided for the sake of completeness.


  • This example demonstrates the accessibility compliance of the RadInput controls.

    They satisfy the requirements of "Section 508" for software accessibility, as well as those of "Level A" (in accordance with the W3C Web Accessibility Guidelines 2.0).

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ Page Language="C#" CodeFile="DefaultCS.aspx.cs" AutoEventWireup="true" Inherits="Telerik.InputExamplesCS.Examples.Accessibility.DefaultCS" %>

    <%@ Register TagPrefix="qsf" TagName="Footer" Src="~/Common/Footer.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="Header" Src="~/Common/Header.ascx" %>
    <%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <qsf:HeadTag runat="server" ID="Headtag1"></qsf:HeadTag>
    </head>
    <body class="BODY">
        <form runat="server" id="mainForm" method="post">
        <qsf:Header runat="server" ID="Header1" NavigationLanguage="C#"></qsf:Header>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
        <!-- content start -->
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
            <div style="float: left; width: 40%">
                <table summary="This form gathers basic information about the employee">
                    <caption>
                        Section 1:
                    </caption>
                    <thead>
                        <tr>
                            <th align="center" colspan="2">
                                <h3>
                                    Basic information</h3>
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>
                                <h4>
                                    Name:</h4>
                            </td>
                            <td>
                                <telerik:RadTextBox ID="RadTextBox1" runat="server" Width="100%" ToolTip="Name" EmptyMessage="Employee name">
                                </telerik:RadTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h4>
                                    Age:</h4>
                            </td>
                            <td>
                                <telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server" Width="100%" ToolTip="Name"
                                    EmptyMessage="Employee age">
                                </telerik:RadNumericTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h4>
                                    Phone Number:</h4>
                            </td>
                            <td>
                                <telerik:RadMaskedTextBox ID="RadMaskedTextBox1" runat="server" Mask="(###) ###-####-####"
                                    Width="100%" ToolTip="Name" EmptyMessage="Enter phone number">
                                </telerik:RadMaskedTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h4>
                                    Date of Birth:</h4>
                            </td>
                            <td>
                                <telerik:RadDateInput ID="RadDateInput1" runat="server" Width="100%" ToolTip="Name"
                                    EmptyMessage="Enter date of birth">
                                </telerik:RadDateInput>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <telerik:RadInputManager ID="RadInputManager1" runat="server" EnableEmbeddedSkins="false">
                <telerik:DateInputSetting EmptyMessage="Enter hire date">
                    <TargetControls>
                        <telerik:TargetInput ControlID="TextBox1" />
                    </TargetControls>
                </telerik:DateInputSetting>
                <telerik:NumericTextBoxSetting EmptyMessage="Enter salary amount" Type="Currency">
                    <TargetControls>
                        <telerik:TargetInput ControlID="TextBox2" />
                    </TargetControls>
                </telerik:NumericTextBoxSetting>
                <telerik:RegExpTextBoxSetting ValidationExpression="^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"
                    ErrorMessage="Invalid Email" EmptyMessage="Enter employee email address">
                    <TargetControls>
                        <telerik:TargetInput ControlID="TextBox3" />
                    </TargetControls>
                </telerik:RegExpTextBoxSetting>
                <telerik:TextBoxSetting EmptyMessage="Enter additional info">
                    <TargetControls>
                        <telerik:TargetInput ControlID="TextBox4" />
                    </TargetControls>
                </telerik:TextBoxSetting>
            </telerik:RadInputManager>
            <div style="float: left">
                <table summary="This form gathers hire information about the employee">
                    <caption>
                        Section 2:</caption>
                    <thead>
                        <tr>
                            <th align="center" colspan="2">
                                <h3>
                                    Hire information</h3>
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>
                                <h4>
                                    Hire Date:</h4>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox1" runat="server" ToolTip="Name" Width="100%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h4>
                                    Salary:</h4>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox2" runat="server" ToolTip="Name" Width="100%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h4>
                                    E-mail:</h4>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox3" runat="server" ToolTip="Name" Width="100%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h4>
                                    Additional information:</h4>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox4" runat="server" ToolTip="Name" Width="100%"></asp:TextBox>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div style="clear: both">
            </div>
            <asp:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click" />
            <asp:Label ID="Label1" runat="server" Font-Bold="true" /><br />
        </telerik:RadAjaxPanel>
        <div>
            <h3>
                Accessibility validation</h3>
            <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">Validate with WAVE</asp:LinkButton>
            <p>
                WAVE is a free web accessibility evaluation tool, which checks for compliance issues
                with many of the Section 508 and WCAG guidelines. Have in mind that only humans
                can determine whether a web page is accessible - the above validation link is provided
                for the sake of completeness.</p>
        </div>
        <!-- content end -->
        <qsf:Footer runat="server" ID="Footer1"></qsf:Footer>
        </form>
    </body>
    </html>

Get more than expected!

 
 

Take your time to truly experience the power of RadControls for ASP.NET AJAX with a free 60-day trial backed up by Telerik’s unlimited dedicated support.

Download your RadControls for ASP.NET AJAX trial and jumpstart your development with the available Getting Started resources.

If you have any questions, do not hesitate to contact us at sales@telerik.com.

Copyright 2002-2024 © Telerik. All right reserved
Telerik Inc, 201 Jones Rd, Waltham, MA 02451