Click here to Skip to main content
15,868,164 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
XML
<%@ 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>
Posted
Updated 26-Jun-14 0:45am
v5
Comments
Richard Deeming 26-Jun-14 8:18am    
Why are you using a version from 2007? The latest version is 7.1213:
http://ajaxcontroltoolkit.codeplex.com/releases/view/116091
Member 10678950 27-Jun-14 2:14am    
if i use latest version it shows the java script exception

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900