Click here to Skip to main content
15,906,628 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
See more:
I am working on Framework 4.5 and i am testing some ajax controls. If I add some ajax controls in the page then while loading the page am getting the following Error. I did give the ajax control reference in the Bin Directory. Below is the Error.

C#
Unhandled exception at line 4620, column 12 in http://localhost:5323/ScriptResource.axd?d=yeSNAJTOPtPimTGCAo3LlT21_RZRtC9W-I9soDKgG4JbtuyIkuDd3c1L6-d90Nt9QJT_Ncpu3SEQY41BIhzB8-Ss8P_bfRky6yfzMvtfs8JnLezGs6a119KiTDJzfpYy0&t=ffffffff9cf62cd3

0x800a139e - JavaScript runtime error: Sys.ArgumentUndefinedException: Value cannot be undefined.


This is my code:

C#
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit.HTMLEditor" tagprefix="cc1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        
        
        <cc1:Editor ID="Editor1"  runat="server" />
        <br />
    
    </div>
    </form>
</body>
</html>
Posted
Updated 22-Jan-14 21:21pm
v2

1 solution

Close you ToolkitScriptManager tag!
ASP.NET
<asp:toolkitscriptmanager id="ToolkitScriptManager1" runat="server" />
 
Share this answer
 
v2
Comments
Robymon 23-Jan-14 5:02am    
Still showing the same eroor
Kornfeld Eliyahu Peter 23-Jan-14 5:11am    
OK. I took the code you posted - fixed the unclosed tag, and it works perfectly.
You may have some other codes/references around that cause the error?
Can you debug the JS to see where the error comes from?

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