xiaoer_1982 发表于 2013-1-23 02:26:28

ajax扩展控件(9)

ValidatorCallout控件,该控件用于用户控件中输入不符合格式要求的内容之后,提示操作错误信息。

<div style="">http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gifhttp://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif<%...@PageLanguage="C#"AutoEventWireup="true"CodeFile="ValidatorCalloutDemo.aspx.cs"
Inherits="ValidatorCalloutDemo"%>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gifhttp://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif<%...@RegisterAssembly="System.Web.Extensions,Version=1.0.61025.0,Culture=neutral,
PublicKeyToken=31bf3856ad364e35"
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gifNamespace="System.Web.UI"TagPrefix="asp"%>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gifhttp://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif<%...@RegisterAssembly="AjaxControlToolkit"Namespace="AjaxControlToolkit"TagPrefix="cc1"%>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<htmlxmlns="http://www.w3.org/1999/xhtml">
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<headrunat="server">
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<title>无标题页</title>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif</head>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<body>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<formid="form1"runat="server">
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<div>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<asp:ScriptManagerID="ScriptManager1"runat="server">
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif</asp:ScriptManager>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<table>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<tr>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<td>电子邮件:</td>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<td><asp:TextBoxrunat="server"ID="MailTextBox"BorderStyle="solid"
BorderWidth="1px"BorderColor="#a9a9a9"/></td>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif</tr>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif</table>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<br/>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<asp:RegularExpressionValidatorrunat="server"ID="PNRegEx"
ControlToValidate="MailTextBox"Display="None"ErrorMessage="<b>格式不正确</b><br/>请按如下格式填写<br/>carol@sina.com"ValidationExpression="w+([-+.']w+)*@w+([-.]w+)*.w+([-.]w+)*"/>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<asp:ButtonID="Button1"runat="server"Text="提交"/>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<cc1:ValidatorCalloutExtenderrunat="Server"ID="PNReqE"TargetControlID="PNRegEx"
Width="100px"/>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif</div>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif</form>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif</body>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif</html>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif
页: [1]
查看完整版本: ajax扩展控件(9)