更改ValidatorCalloutExtender的图标(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” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>

<script runat=“server”>

</script>

<html xmlns=“http://www.w3.org/1999/xhtml”>
<head runat=“server”>
    
<title></title>
</head>
<body>
    
<form id=“form1″ runat=“server”>
    
<div>
        
<cc1:ToolkitScriptManager ID=“ToolkitScriptManager1″ runat=“server”>
        
</cc1:ToolkitScriptManager>
        
<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”>
        
</cc1:ValidatorCalloutExtender>
    
</div>
    
<asp:Button ID=“Button1″ runat=“server” Text=“Button” />
    
</form>
</body>
</html>
posted @ 2008-10-31 16:21  LanceZhang  阅读(522)  评论(0编辑  收藏  举报