AJAX :: Control Toolkit Causes WCF Error / $inetinfo Is Undefined

Apr 16, 2010

I am using both the AJAX Control Toolkit HTMLEditor and making AJAX WCF calls from my web form. Since we can only have one Script Manager per page, I am using this:

<ajaxTools:ToolkitScriptManager
ID="ToolkitScriptManager1"
runat="server"><services><asp:servicereference
Path="AjaxServiceCall.svc"/></services></ajaxTools:ToolkitScriptManager>

When my page loads, I do an initial AJAX WCF call and it works.

But if I try to make an AJAX WCF call after the page has finished loading, I get the following error:

$inetinfo is undefined

If I take out the AJAX Control Toolkit script manager and replace it with this:

<asp:ScriptManager
ID="ScriptManager1"
runat="server"><services><asp:servicereference
Path="AjaxServiceCall.svc"
/></services></asp:ScriptManager>

Then my WCF AJAX works fine, but my HTMLEditor does not.

View 1 Replies


Similar Messages:

AJAX :: Control ToolKit / Error Using The Numeric UpDown Control From Ajax Control Toolkit?

Dec 8, 2010

I am Getting the following error using the Numeric UpDown Control from Ajax Control Toolkit.
Assembly 'AjaxControlToolkit, Version=3.0.30512.20315, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' contains a Web resource with name 'AjaxControlToolkit.NumericUpDown.NumericUpDownBehavior.debug.js', but does not contain an embedded resource with name 'AjaxControlToolkit.NumericUpDown.NumericUpDownBehavior.debug.js'.

View 2 Replies

Getting 'AJAX Control Toolkit Is Undefined' / Setting CombineScripts"true"

May 16, 2010

I am getting AJAX Control Toolkit is undefined error when I have the CombineScripts="true" on the ToolkitScriptManager:

<ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" EnablePageMethods="false" ScriptMode="Release"
LoadScriptsBeforeUI="false" runat="server" CombineScripts="true">
<CompositeScript>
<Scripts>
<asp:ScriptReference Path="~/JavaScript/jquery-1.4.1.min.js" />
<asp:ScriptReference Path="~/JavaScript/Custom.js" />
</Scripts>
</CompositeScript>
</ajaxToolkit:ToolkitScriptManager>

But when I set the CombineScripts to false everything seems to work.

View 1 Replies

AJAX :: Toolkit Sys.Application Is Undefined - Server Configuration?

Oct 6, 2010

Running some code on a test server, everything is checking out fine, deploy it to live and suddenly, Sys.Application is undefined script errors. Checked the versions of ASP.NET AJAX toolkit installed, both are running only 3.5.0.0. Same web.config file. Pared the code down to its simplest (one UpdatePanel with an ID and 'Test' between the tags) and it still throws the error. Originally thought perhaps the live server was using an older dll but they match up. Both are running IIS 6. I'm not a server configuration guru,

View 2 Replies

Error Using Editor Control From Ajax Control Toolkit / Value Cannot Be Null Or Empty

Mar 27, 2011

When trying to use the editor control i'm getting the following error:

Value cannot be null or empty.

Parameter name: elementID

Here's my HTML:

[code]....

I'm using asp.net 4 with ajax control toolkit for version 4.

I believe the error is talking about the routing I have. Is there something special I have to do if I want to use the toolkit and custom routing?

View 1 Replies

Error Trying To Add Ajax Control Toolkit To Toolbox

Jul 13, 2010

ive used the Ajax Control Toolkit in previous versions of VWD but for some reason im having trouble adding the Toolkit to the toolbox in this new version (2010) i have setup on my laptop, when i browse to and select the .dll file it gives me the error "Object reference not set to instance of an object" can anyone please help ive been trying to fix this issue for a little over an hour now.

View 1 Replies

AJAX :: Error With Adding Control Toolkit

Apr 27, 2016

The type or namespace name 'ToolkitScriptManager' does not exist in the namespace 'AjaxControlToolkit' (are you missing an assembly reference?)

View 1 Replies

AJAX :: Error With Control Toolkit - Requires 4.0 Scripts

Aug 25, 2010

This is the error i get in the browser. Update panel is workingBut Accordion,Rounded Corners Extender & much more controls does'nt workRESTARTING Visual Stuio does'nt help!

View 1 Replies

AJAX :: Control Toolkit Filtered TextBox Error?

Nov 9, 2010

wanna use filtered TextBox ajax control in my simple page.I add a textbox in my page. And then i drag first script manager on my page and then drag filtered textBox in my textbox.But when i run my project i had an error like this picture..What is the problem? Where i doing mistake?

View 4 Replies

AJAX Toolkit 'unknown Server Control' Error?

Jan 14, 2011

I just installed Ajax Toolkit. The controls are available in my Toolbox, but when I insert them in a page, Visual Studio underlines them with the error message "unknown server tag".

I googled the problem and found several ideas :

check if the DLL is in Bin folder check if ajaxToolKit tags prefix is registered in web.config and make sure I'm not using a different prefix in my pages check if the DLL is registered in the pages with <% @ Register ... %>

Unfortunately all of this is fine, but I still can't get the controls to work. Is something else missing ?

EDIT : My environment is ASP.Net 2.0, Ajax Extensions 1.0, Ajax Toolkit 1.0.20229, Visual Studio 2005

View 1 Replies

AJAX :: Control Toolkit , Gridview And Jquery Error?

Dec 31, 2010

Me using Vb.net and Ajax control tool kit with Database Sql server.My problem is that When I select one Radiobutton list it genrates only one row in gridview and when i select another button it throws error like ".non MS DOM browser is undefined."and sometimes " document.getElementByid() is null or not an object" OR ".javaScript_dopostback.".I have few componets on my page

1. RadioButtonList Which is placed inside Update panel1 first.
2. GridView Which is placed inside Update panel2 second..and Gridview generated five Textboxes Dyanamically in which i have used autocomplete extender with one textbox.
3. I have also used Ajax tool kit extender for calender control.
4. I am also using Jquery and master page too.
5. i am generating new row on textchange event of one of the textbox in grid view.So how can i do all the above functionality properlly.

My problem is that When I select one Radiobutton list it genrates only one row in gridview and when i select another button it throws error like".non MS DOM browser is undefined." and sometimes " document.getElementByid() is null or not an object" OR ".javaScript_dopostback."

View 1 Replies

AJAX :: Getting Error When Try To Add Ajax Toolkit Dll File To Ajax Control Tab?

Dec 22, 2010

When iam try to add ajax control dll file to my ajax toolkit given in visualstudio express edition 2005, i am getting the following error.

"There are no components in 'C:ProgramFilesMicrosoft ASP.NETASP.NET 2.0 Ajax Extensionsv1.0.61025AJAXExtensionsToolbox.dll' that can be placed on the toolbox." what is the error in this?

View 2 Replies

AJAX :: Control Toolkit Combobox Produces An Error 800a025e?

Oct 4, 2010

I have a ajax combobox in my page, when i try to select an item from it i can select by typing in text and its selectedindexchanged event fires, but when that event is complete and when i try to select another item from the combobox it produces the following error:

could not complete operation due to error 800a025e,and an alert asks me if i want to debug it.If I press yes then i get this page:

// Name: AjaxControlToolkit.ComboBox.ComboBox.debug.js
// Assembly: AjaxControlToolkit
// Version: 3.0.30930.28736
// FileVersion: 3.0.30930.0
/// <reference name="MicrosoftAjax.js"/>

htmlfile: Could not complete the operation due to error 800a025e.

_setTextSelectionRange: function(textBox, selectionStart, selectionEnd) {

// set the selection range on the text box[code]....

The Weird thing about this is that the error does not occur on the development machine but only on the server.

View 2 Replies

AJAX :: Remove The Configuration Error Found In The Control ToolKit?

Nov 24, 2010

How do I remove the Configuration Error found in the ASP.Net Ajax Control ToolKit?

Error Message reads: "The Master Page file .... DefaultMaster.master cannot be loaded Correct the problem in Code view"

<%@ Page
Language="C#"
MasterPageFile="~/DefaultMaster.master"
AutoEventWireup="true"
Inherits="CommonPage"
Title="HoverMenu Sample"
Theme="SampleSiteTheme" %>

View 3 Replies

AJAX :: Error When Using Control Toolkit - Could Not Load Type From Assembly

Jun 13, 2012

System.TypeLoadException: Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

View 1 Replies

[Method Error 500] In Cascading Dropdown Update In Ajax Control Toolkit

Apr 16, 2010

I am getting [MethodError 500] when I use cascading drop down. below is my code

<tr>
<td >
Select a Hoster:
</td>
<td>
<asp:DropDownList ID="ddlFeaturedHoster" runat="server" ></asp:DropDownList>
</td>
</tr>
<ajaxToolkit:CascadingDropDown ID="cddHoster" runat="server" TargetControlID="ddlFeaturedHoster"
PromptText="Select a Hoster" LoadingText="Loading ..." Category="ActiveHoster"
ServiceMethod="GetDropDownContents" ServicePath="~/Hosting/HostingService.asmx"/>
Service Code:
[WebMethod]
[ScriptMethod]
public CascadingDropDownNameValue[] GetActiveHosters()
{
List<CascadingDropDownNameValue> returnList = new List<CascadingDropDownNameValue>();
HostersManager hosterManager = new HostersManager();
List<Hosters_HostingProviderDetail> hosters = hosterManager.GetAllHosters();
returnList.Add(new CascadingDropDownNameValue("--Please Select One--","0",true));
foreach (Hosters_HostingProviderDetail item in hosters)
{
returnList.Add(new CascadingDropDownNameValue() { name=item.HostingProviderName, value= item.HosterID.ToString()});
}
return returnList.ToArray() ;
}
[WebMethod]
[ScriptMethod]
public CascadingDropDownNameValue[] GetDropDownContents(string knownCategoryValues, string category)
{
knownCategoryValues = FormatCategoryWord(knownCategoryValues);
List<CascadingDropDownNameValue> values = new List<CascadingDropDownNameValue>();
HostersManager hosterManager = new HostersManager();
switch (category)
{
case "ActiveHoster":
values.AddRange(GetActiveHosters());
break;
case "ActiveOffer":
values.AddRange(GetActiveOffers(1));
break;
}
return values.ToArray<CascadingDropDownNameValue>();
}
/// <summary>
/// Formats the category word
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
private string FormatCategoryWord(string value)
{
if (string.IsNullOrEmpty(value)) return value;
if (value.LastIndexOf(":") > 0) value = value.Substring(value.LastIndexOf(":") + 1);
if (value.LastIndexOf(";") > 0) value = value.Substring(0, value.LastIndexOf(";"));
return value;
}
}

View 2 Replies

AJAX :: Microsoft JScript Runtime Error Sys Is Undefined Error?

Feb 23, 2011

I am getting microsoft jscript runtime error.I am using Ajax extensions(3.5).Yesterday it was working fine but today i am getting this error.In another page i am using script manager there i am not getting error when i try to upload data into database i am getting error.

<asp:ScriptManager
ID="ScriptManager2"
runat

[code]...

View 1 Replies

AJAX :: 'Sys' Undefined Error --When Page Is Getting Postback

May 21, 2010

Configuration : Windows Vista,VS 2005,Ajax v1.0.61025
Configuration : Windows Vista,VS 2005,Ajax v1.0.61025

My WebConfig.

<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<system.web>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
</pages>
<!--
Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development.

-->
<compilation debug="true">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</assemblies>
</compilation>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler" validate="false"/>
<!--<add verb="GET,HEAD" path="ScriptResource.axd" validate="false"/>-->
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
</system.web>
<system.web.extensions>
<scripting>
<webServices>
<!-- Uncomment this line to customize maxJsonLength and add a custom converter -->
<!--
<jsonSerialization maxJsonLength="500">
<converters>
<add/>
</converters>
</jsonSerialization>
-->
<!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. -->
<!--
<authenticationService enabled="true" requireSSL = "true|false"/>
-->
<!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved
and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and
writeAccessProperties attributes. -->
<!--
<profileService enabled="true"
readAccessProperties="propertyname1,propertyname2"
writeAccessProperties="propertyname1,propertyname2" />
-->
</webServices>
<!--
<scriptResourceHandler enableCompression="true" enableCaching="true" />
-->
</scripting>
</system.web.extensions>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</handlers>
</system.webServer>
</configuration>

My .aspx Page

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SysUndefined.aspx.cs" Inherits="SysUndefined" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script language="javascript" type="text/javascript">
function CallWeb()
{
WebService.HellWorld("OutPut","1",onSuccess,onFailure);
}
function CallWeb1()
{
PageMethods.HellWorld("OutPut","1",onSuccess,onFailure);
}
function onSuccess(Result)
{
alert(Result);
}
function onFailure(Result)
{
alert(Result);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="idScript" runat="server" EnablePageMethods="true">
<Services>
<asp:ServiceReference Path="WebService.asmx" />
</Services>
</asp:ScriptManager>
<div>
<input type="button" onclick="CallWeb();" runat="server" value="Test Sys Undefined"/>
<input id="Button1" type="button" onclick="CallWeb1();" runat="server" value="Test Page Method Sys Undefined"/>
</div>
</form>
</body>
</html>

My .cs Page

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class SysUndefined : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
[System.Web.Services.WebMethod]
public static string HellWorld(string First, int Second)
{
return "Hello World";
}
}
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<system.web>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
</pages>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</assemblies>
</compilation>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler" validate="false"/>
<!--<add verb="GET,HEAD" path="ScriptResource.axd" validate="false"/>-->
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
</system.web>
<system.web.extensions>
<scripting>
<webServices>
<!-- Uncomment this line to customize maxJsonLength and add a custom converter -->
<!--
<jsonSerialization maxJsonLength="500">
<converters>
<add/>
</converters>
</jsonSerialization>
-->
<!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. -->
<!--
<authenticationService enabled="true" requireSSL = "true|false"/>
-->
<!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved
and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and
writeAccessProperties attributes. -->
<!--
<profileService enabled="true"
readAccessProperties="propertyname1,propertyname2"
writeAccessProperties="propertyname1,propertyname2" />
-->
</webServices>
<!--
<scriptResourceHandler enableCompression="true" enableCaching="true" />
-->
</scripting>
</system.web.extensions>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</handlers>
</system.webServer>
</configuration>

My .aspx Page

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SysUndefined.aspx.cs" Inherits="SysUndefined" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script language="javascript" type="text/javascript">
function CallWeb()
{
WebService.HellWorld("OutPut","1",onSuccess,onFailure);
}
function CallWeb1()
{
PageMethods.HellWorld("OutPut","1",onSuccess,onFailure);
}
function onSuccess(Result)
{
alert(Result);
}
function onFailure(Result)
{
alert(Result);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="idScript" runat="server" EnablePageMethods="true">
<Services>
<asp:ServiceReference Path="WebService.asmx" />
</Services>
</asp:ScriptManager>
<div>
<input type="button" onclick="CallWeb();" runat="server" value="Test Sys Undefined"/>
<input id="Button1" type="button" onclick="CallWeb1();" runat="server" value="Test Page Method Sys Undefined"/>
</div>
</form>
</body>
</html>

My .cs Page

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class SysUndefined : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
[System.Web.Services.WebMethod]
public static string HellWorld(string First, int Second)
{
return "Hello World";
}
}

Question :

This combination of code working perfectly in first time.When refresh the page,I got "'Sys' is Undefined" error Message. Is there any problem in my code......

View 3 Replies

AJAX :: Page Methods Is Undefined Error

May 20, 2013

<asp:ScriptManager ID="ScriptManager1" AsyncPostBackTimeout="9999" runat="server"
EnablePartialRendering="true" EnablePageMethods="true"> is set

using a webservice defined at the page level

I am calling the webmethod in javascript as

PageMethods.ItmIdDate(param1,param2, function1)

I get the values of the param in alert, the function is defined but I get error PageMethods is undefined...

Public Function ItmIdDate(ByVal ITMID As Integer, ByVal UserRemark As String) As String

View 1 Replies

Jquery - Ajax Call For WCF Service Undefined Error

Feb 22, 2011

I have this method in asp.net ajax enabled mvc service

[OperationContract]
public TestRun GetTestSuite(string testSuitName) {
TestRun testRun =
AdapterFactory.CreateTestRunAdapter().GetByTestSuiteName("testSuit");
return testRun;
}

Where TestRun is Created using entities framework against TestRun table. I am using following ajax method

function getTestSuite() {
$.ajax({
type: "POST",
url: "Services/TestRunService.svc/GetTestSuite",
data: '{"testSuitName" : "' + testSuiteName + '"}',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
},
//If the call fails
error: function (xhr, textStatus, errorThrown) {
alert(errorThrown);
}
})
}

I get undefined error. If I return string from service it works. Do I need to change dataType: "json" to something else?

View 1 Replies

AJAX :: When Add Script Manager In Page And Sys Is Undefined Error Comes?

Apr 3, 2010

when I add <asp:scriptmanager runat="server" id="script1"><asp:scriptmanager> this line in aspx page ,one run time error comes 'sys is undefined'.

View 1 Replies

JQuery Ajax Call Failing With Undefined Error

Jun 5, 2010

My jQuery ajax call is failing with an undefined error. My js code looks like this:

[Code]....

My ajax source is a generic ASP.NET handler:

[Code]....

Now, if I return an empty object ("{ }") in my handler, the call will succeed. But when I return any other JSON object, the call fails.

The dataFilter handler shows that I am receiving a correct object. Firebug shows the response as expected, and the JSON tab shows that the object is parsed correctly.

So what could be the cause?

[Edit] I should have actually written "when I return any invalid JSON object, the call fails"! :D

View 1 Replies

AJAX :: Microsoft JScript Runtime Error: 'ControlToolkit' Is Undefined?

Aug 3, 2010

$create(AjaxControlToolkit.AutoCompleteBehavior, {"completionInterval":500,"completionListCssClass":"autocomplete_completionListElement","completionListItemCssClass":"autocomplete_listItem","completionSetCount":5,"delimiterCharacters":"","highlightedItemCssClass":"autocomplete_highlightedListItem","id":"autoCompleteBehavior"+RowNum+"100","minimumPrefixLength":0,"serviceMethod":"ActivityResult","servicePath":"../Application/Activity_Role_Map_Process.aspx"},
{"hiding":RemoveBlankSpace,"showing":AddSpaceToQuickSearch}, null, $get(y));

I am calling above funtion from java script and i am getting above errori have added toolkitscriptmanager on pagei am using .net 2010it works fine for .net 2005i have latest version of ajax tool kit i also tried with ajaxscriptmanager

View 1 Replies

AJAX :: Microsoft JScript Runtime Error: 'WebPartManager' Is Undefined

Dec 30, 2010

I have used url routing on my website to route the user to his/her profile page once he has entered username in the url. The whole website runs fine without any problem except for the case after url routing. When a username is typed in the url after the website name then the routed aspx page opens up giving the following error:

Microsoft JScript runtime error: 'WebPartManager' is undefined

In this particular child page i have used a webpartmanager inside an update panel as it is the right approach which i found out over the web. The code used in global.asax file is:

void Application_Start(object sender, EventArgs e)
{
RegisterRoutes(RouteTable.Routes);
}
public static void RegisterRoutes(RouteCollection routes)

[Code]....

View 2 Replies

AJAX :: Error: Sys.Extended Is Undefined - When Deployed And Compiled On Iis7?

May 23, 2010

Error: Sys.Extended is undefined

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved