LanceZhang’s Blog

Dear friends, Welcome to my blog.

Change the icon of ValidatorCalloutExtender

We can use the WarningIconImageUrl=”me.jpg” to achieve the facing goal:

<%@ Page Language=”C#” %>

<%@ Register Assembly=”AjaxControlToolkit” Namespace=”AjaxControlToolkit” TagPrefix=”cc1″ %>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “”&gt;

<script runat=“server”>


<html xmlns=;>
<head runat=“server”>
    <form id=“form1” runat=“server”>
        <cc1:ToolkitScriptManager ID=“ToolkitScriptManager1” runat=“server”>
        <asp:TextBox ID=“TextBox1” runat=“server”></asp:TextBox>
        <asp:RequiredFieldValidator ID=“RequiredFieldValidator1” Display=“None” runat=“server”
            ControlToValidate=“TextBox1” ErrorMessage=“RequiredFieldValidator”></asp:RequiredFieldValidator>
        <cc1:ValidatorCalloutExtender ID=“RequiredFieldValidator1_ValidatorCalloutExtender”
            runat=“server” Enabled=“True” TargetControlID=“RequiredFieldValidator1” WarningIconImageUrl=“me.jpg”>
    <asp:Button ID=“Button1” runat=“server” Text=“Button” />


October 31, 2008 - Posted by | ASP.NET AJAX |

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: