在Visual Studio 2012中使用ajax工具包版本1.0.1时,验证摘要不显示弹出窗口 [英] the validation summary doesn't show the popup while using ajax toolkit version 1.0.1 in visual studio 2012
本文介绍了在Visual Studio 2012中使用ajax工具包版本1.0.1时,验证摘要不显示弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
验证摘要在使用ajax工具包回答时没有显示弹出窗口?(如果我将目标框架更改为4.0,否则无法正常工作)
我的代码是
the validation summary doesn't show the popup while using ajax toolkit answer plz?(if i change the target framework as 4.0 na its working otherwise its not working)
my code is
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
<!DOCTYPE html>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<%-- <asp:ToolkitScriptManager ID="toolKitResident" ValidateRequestMode="Enabled" runat="server"></asp:ToolkitScriptManager>--%>
<asp:TextBox ID="txtAddLastName" size="20" MaxLength="128" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvAddLastName" runat="server" ControlToValidate="txtAddLastName"
ErrorMessage="Please enter the Last Name" ValidationGroup="Resident" CausesValidation="true"
Display="None"></asp:RequiredFieldValidator>
<asp:ValidationSummary ID="vsResident" DisplayMode="BulletList" EnableClientScript="true" ValidationGroup="Resident"
ShowSummary="false" ShowMessageBox="true" runat="server" />
<asp:Button ID="btnSave" ValidationGroup="Resident" CausesValidation="true" runat="server" OnClick="btnSave_Click" Text="Save" />
</div>
</form>
</body>
</html>
推荐答案
这篇关于在Visual Studio 2012中使用ajax工具包版本1.0.1时,验证摘要不显示弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文