New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

WebForms ImageButton Overview

Shopping Cart

RadImageButton provides useful, easy-to-use properties and events with which to configure the UI and the functionality of the control.

RadImageButton and 120+ other controls are part of UI for ASP.NET AJAX, a comprehensive toolset taking care of the common functionality of your application, while leaving you with more time to work on its business logic.

Key Features

  • Rich client-side functionality
  • Single click functionality—Avoid multiple postbacks/callbacks to the server (Demo)
  • Customization through a content template (Demo)
  • Accessibility - Rely on the compliance of the control with WAI-ARIA, WCAG and Section 508 standards to improve the accessibility of your application (Demo)
  • DefaultCS.aspx
  • scripts.js
  • styles.css
<%@ Page Language="C#"  %>

<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <script src="scripts.js" type="text/javascript"></script>
    <div class="demo-container size-custom no-bg">
        <div class="shelves-container">
            <div class="shelf-column first">
                <telerik:RadImageButton runat="server" ID="MicrosoftSurfaceRTBtn" Width="191px" Height="115px" AutoPostBack="false" 
                    OnClientClicked="telerikDemo.updateCart" CommandName="Update" CommandArgument="MicrosoftSurfaceRT" CssClass="microsoft-surface">
                    <Image Url="images/MicrosoftSurfaceRT_normal.png" HoveredUrl="images/MicrosoftSurfaceRT_hover.png" PressedUrl="images/MicrosoftSurfaceRT_pressed.png" />
                </telerik:RadImageButton>
                <telerik:RadImageButton runat="server" ID="MacBookProBtn" Width="283px" Height="163px" AutoPostBack="false" 
                    OnClientClicked="telerikDemo.updateCart" CommandName="Update" CommandArgument="MacBookPro" CssClass="mac-book-pro">
                    <Image Url="images/MacBookPro_normal.png" HoveredUrl="images/MacBookPro_hover.png" PressedUrl="images/MacBookPro_pressed.png" />
                </telerik:RadImageButton>
            </div>
            <div class="shelf-column second">
                <telerik:RadImageButton runat="server" ID="iMacBtn" Width="300px" Height="249px" AutoPostBack="false" 
                    OnClientClicked="telerikDemo.updateCart" CommandName="Update" CommandArgument="iMac" CssClass="imac">
                    <Image Url="images/iMac_normal.png" HoveredUrl="images/iMac_hover.png" PressedUrl="images/iMac_pressed.png" />
                </telerik:RadImageButton>
            </div>
            <span class="shopping-cart">
                <span class="text">Shopping Cart</span>
                <span class="products-count"></span>
            </span>
        </div>
    </div>
<%-- This is the QR for the ImageButton Mobile demo --%>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance