Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Why is not ValidatorCalloutExtender working in VS 2013 web application

$
0
0

I have two machine.
The first one has VS professional 2010I create a web application project and install AjaxControlToolKit 4.0 in the Toolbox and ValidatorCalloutExtender work as it should in this small snippet that is listed below.

Now I do the same on another machine. I create a web application project where I have VS 2013 Ultimate and I install AjaxControlToolKit 4.5 in the Toolbox and now the ValidatorCalloutExtender doesn't work in spite having the identical program that is listed below.
The bin directory is there and when I drag this control
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
this
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
is added

When I run the page code listed below the ValidatorCalloutExtender doesn't do anything with the error message.
It's only the ErrorMessage from RequiredFieldValidator that is displayed.
I tried to add FilteredTextBoxExtender and this worked fine.

If I use the whole solution project folder that I used on VS 2010 on VS 2013 it works fine because everying is inluded then.


So is it anyone that have some suggestion to this problem ?
The program looks like this
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WebForm1.aspx.cs" Inherits="WebForm1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager>
 
     <label class="label" for="<%=txtOrderLev.ClientID%>">När vill du få dem levererade</label><br />
        <asp:TextBox ID="txtOrderLev" runat="server" />
        <asp:RequiredFieldValidator ID="RequiredFieldtxtOrderLev" runat="server"
            ErrorMessage="Ange datum enligt format (YYYY-MM-DD)" ControlToValidate="txtOrderLev"
            ForeColor="#FF3300" Display="Dynamic" />
        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" Width="350px"
            TargetControlID="RequiredFieldtxtOrderLev" />
    <asp:Button ID="Button1" runat="server" Text="Button" />
    </form>
</body>
</html>

//tony


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>