Question

AJAX 'sys' undefined?

Asked by: MarcGraff

I am trying to add AJAX to an existing project but I can not get by a 'Sys' undefined error. It appease that this is a configuration issue but I clearly do not have enough experience with this to figure it out.Any help is much appreciated!

I have referenced the "AJAXExtentionsToolbox.dll" and "AJAXControlToolkit.dll"

Here is my web.config file. I have tryed several solutions without success.

<?xml version="1.0"?>
<!--  
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    \Windows\Microsoft.Net\Framework\v2.x\Config 
-->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
	<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>
	<appSettings/>
	<connectionStrings/>
	<system.web>
		<sessionState mode="InProc" stateConnectionString="" sqlConnectionString="" cookieless="false" timeout="144000"/>
		<customErrors mode="Off"/>
		<httpRuntime maxRequestLength="2097151"/>
		<compilation debug="true" strict="false" explicit="true">
			<assemblies>
				<add assembly="Accessibility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
				<add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
				<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
				<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="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
			<add verb="GET" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler" 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>
		<pages validateRequest="false" enableEventValidation="false" viewStateEncryptionMode="Never" enableViewStateMac="false" enableViewState="false">
			<controls>
				<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
			</controls>
			<namespaces>
				<clear/>
				<add namespace="System"/>
				<add namespace="System.Collections"/>
				<add namespace="System.Collections.Specialized"/>
				<add namespace="System.Configuration"/>
				<add namespace="System.Text"/>
				<add namespace="System.Text.RegularExpressions"/>
				<add namespace="System.Web"/>
				<add namespace="System.Web.Caching"/>
				<add namespace="System.Web.SessionState"/>
				<add namespace="System.Web.Security"/>
				<add namespace="System.Web.Profile"/>
				<add namespace="System.Web.UI"/>
				<add namespace="System.Web.UI.WebControls"/>
				<add namespace="System.Web.UI.WebControls.WebParts"/>
				<add namespace="System.Web.UI.HtmlControls"/>
				<add namespace="Microsoft.VisualBasic"/>
				<add namespace="System.Data"/>
				<add namespace="System.Drawing"/>
			</namespaces>
		</pages>
		<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
		<authentication mode="None"/>
		<identity impersonate="true" userName="XXXXXX" password="XXXXXX"/>
	</system.web>
	<system.web.extensions>
		<scripting>
			<webServices>
				<!-- Uncomment this line to customize maxJsonLength and add a custom converter -->
				<!--
<jsonSerialization maxJsonLength="500">
<converters>
<add name="ConvertMe" type="Acme.SubAcme.ConvertMeTypeConverter"/>
</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.codedom>
	</system.codedom>
	<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>

                                  
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:

Select allOpen in new window

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2008-05-31 at 06:11:58ID23446805
Tags

asp.net, vb.net, AJAX

Topics

Programming for ASP.NET

,

.NET

,

Web Languages/Standards

Participating Experts
3
Points
500
Comments
26

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Ajax returns error 'Sys' is undefined
    Hi Just downloaded ajax from site and tried to run an easy watermark example, but when i view page in browser watermark does not appear and i receive the error 'Sys' is undefined. I'm using XP professional asp.net 2.0 and VS 2005 with ajax 1.0 Have i missed something on the...
  2. Asp.Net AJAX 'Sys' Undefined
    I am setting up a test AJAX project using ASP.NET AJAX (http://ajax.asp.net/). I am getting a fairly common JS error, "Sys" is undefined. This error is in IE and not FireFox. The solution I have seen in a few places is to add the following HTTP Handler: <httpHan...
  3. sys is undefined
    I am using a peice of javascript which has ys.WebForms.PageRequestManager.getInstance() I am getting the following error Sys us undefined. I am not sure what to do?
  4. 'Sys' is undefined in ASP.NET 3.5
    I have the Framework 3.5 installed, so I assume that means I already have AJAX capability and don't need any special files in my bin folder, etc. I use a text editor to write code, not Visual Studio, so perhaps that's related to my problem. I've run Visual Web Developer 200...
  5. 'Sys' is undefined : ASP.Net AJAX
    Hi all, Creating an asp.net website (C# code behind) using visual web developer 2008. I am using Microsoft's AJAX Extensions, but I am NOT using the AJAX Control Toolkit. I am using the following controls that come included with the current 3.5 framework: <asp:ScriptMa...
  6. ajax enabled website not working properly on server : 'S…
    Ajax enabled website not working properly on server, It works fine on dev machine (VS 2005 with ajax). Server has ASPAJAXExtSetup.msi file installed (Ajax extensions). Asp .net 2.0 platform Any page containing ajax code showing javascript error on browser : 'Sys' is undefi...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: MarcGraffPosted on 2008-05-31 at 06:53:37ID: 21683725

My page:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Test2.aspx.vb" Inherits="Test2" %>
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>UpdatePanel Trigger Declarative Syntax</title>
    <style type="text/css">
    body {
        font-family: Lucida Sans Unicode;
        font-size: 10pt;
    }
    button {
        font-family: tahoma;
        font-size: 8pt;
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <asp:UpdatePanel runat="server" id="UpdatePanel" updatemode="Conditional">
        <Triggers>
            <asp:AsyncPostBackTrigger controlid="UpdateButton1" eventname="Click" />
        </Triggers>
            <ContentTemplate>
                <asp:Button runat="server" id="UpdateButton1" onclick="UpdateButton_Click" text="Update" />               
            </ContentTemplate>
        </asp:UpdatePanel>
        
    </form> 
</body>
</html>
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:

Select allOpen in new window

 

by: jungesPosted on 2008-05-31 at 07:50:37ID: 21683884

i have this problem some weeks ago and my problem was on Redirect to login.aspx. look if you have some redirections, if yes then place it into Page init method to work without cause problem to ajax.

 

by: MarcGraffPosted on 2008-05-31 at 11:07:55ID: 21684512

UnfortunatelyI do not.

Here is the VB codebehind


Partial Class Test2
    Inherits System.Web.UI.Page
 
     Protected Sub UpdateButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
 
    End Sub
End Class
                                              
1:
2:
3:
4:
5:
6:
7:
8:

Select allOpen in new window

 

by: sjors1309Posted on 2008-05-31 at 11:55:36ID: 21684732

Did you install Ajax on the machine on which this app runs? Sys is an Ajax defined type, not a toolbox construct.
If not, did you include the Ajax assemblies (System.Web.Extensions) in your installation (look for them in Gac / bin folder)

 

by: MarcGraffPosted on 2008-05-31 at 13:50:25ID: 21685036

Thanks for your help so far junges and sjors1309!

Yes, I installed AJAX and added it as a reference. Also, "AJAXExtensionsToolbox.dll" can be found in the BIN folder.

Also, the application compiles without any issue. only when opening the page do I recieve the "SYS" error.

Also, I created an app where I used an UpdatePanel which worked fine but when I tryed to add AJAX to an existing app is where I ran into problems. I looked for some time to find the difference in the 2 apps where I thought the issue could be without success.

 

by: sjors1309Posted on 2008-06-01 at 03:26:12ID: 21686521

Could you post the exact error message? Could it be that Sys.Debug isn't defined?

 

by: MarcGraffPosted on 2008-06-01 at 04:56:16ID: 21686683

Sure, here is the message:

----------------------------------------
A Runtime Error has occurred.
Do you with to Debug?

Line: 49
Error: 'Sys' is undefined
----------------------------------------

 

by: sjors1309Posted on 2008-06-01 at 05:36:54ID: 21686773

What's your setup? VS2005/2008, which .Net Framework version do you target? Which framework for the existing app? The page that you included is a testpage in the existing app?

 

by: MarcGraffPosted on 2008-06-01 at 05:52:46ID: 21686815

VS 2008, .Net Framework 2.0 is what the app exists in and yes the page "test2.aspx" is within the existing app.

 

by: sjors1309Posted on 2008-06-01 at 07:21:46ID: 21687231

1. The version of Ajax that you installed onto this server? Is it the .Net 2.0 compatible? System.Web.Extension.dll in default Ajax deployment for VS2008 is version 3.5.x. Same counts for toolbox. Try copying the System.Web.Extensions.dll into bin (remove version info from declaration in web.config)
2. The application that you want to enrich with Ajax. Is it updatable? Did you do a full deployment/publish to test this page, or just copied this page to the webserver?

 

by: MarcGraffPosted on 2008-06-01 at 08:49:55ID: 21687478

1. Never thought of that. I went into the "bin" directory of my app and it is the dll for version 2.0.

2. I am using my local box. So no, there is no publicaiton yet.

 

by: sjors1309Posted on 2008-06-01 at 11:18:52ID: 21687910

Please check in Solution Explorer the Property Pages for your project. You should get al listing of your references and a Target Framework setting (in category 'Build')

 

by: MarcGraffPosted on 2008-06-01 at 12:10:30ID: 21688084

The framework is 2.0 and the AJAXExtentionsToolbox is present.

 

by: sjors1309Posted on 2008-06-01 at 12:25:10ID: 21688148

I'm wondering about System.Web.Extension. This is the primary Ajax Extensions DLL. This is what the toolbox uses. It should be referenced for it's that assembly that contains the base constructs for Ajax. Sys being one of them.
I really think you should investigate in this direction.

 

by: jungesPosted on 2008-06-02 at 05:42:27ID: 21691423

are you doing some redirections on you Global.asax ?

 

by: MarcGraffPosted on 2008-06-02 at 08:15:06ID: 21692728

I have a procedure that runs and checks for an active DB session. if is fails, it redirects. I comented everything out in the subs of global.asax.vb but the issue remains.

 

by: MarcGraffPosted on 2008-06-02 at 08:52:06ID: 21693076

sjors1309, I am not sure where to look. I have added it into my web.config as an assembly and in several other places as you can see from my web.config. I also tried registering at the page level with this without success:

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>
                                              
1:

Select allOpen in new window

 

by: sjors1309Posted on 2008-06-02 at 09:33:43ID: 21693452

I assume that your Gac has System.Web.Extensions installed. But maybe it's the wrong version.
You no doubt have an installation of Ajax (version ASP.Net2) with this dll in it (it's in the installation package) - just try copying the dll into the bin dir of your application before running it.

If you can post the sourcecode of your page (the one that generated the Sys is not defined error) - I mean the HTML markup and a screenshot of the Project properties - References page (grey out lines that you don't want to share)

You don't need to register the assembly in the page. It's registered in your web.Config.

 

by: jungesPosted on 2008-06-02 at 10:15:17ID: 21693714

in some cases i do the follow:

Start a new Ajax Enabled WebPage project (add all needed references) and add step by step a little part from you project into the new project and try test every time the new project. If the error raise again then you know on what part it is causing.

regards
Junges

 

by: jungesPosted on 2008-06-02 at 10:20:27ID: 21693752

If you are using MasterPage then include the follow only on the MasterPage and not include it on the other pages:
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

Add the follow on every page
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %>

 

by: MarcGraffPosted on 2008-06-04 at 07:30:49ID: 21710475

sjors1309: Here is the HTML.


 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1"><title>
	UpdatePanel Trigger Declarative Syntax
</title>
    <style type="text/css">
    body {
        font-family: Lucida Sans Unicode;
        font-size: 10pt;
    }
    button {
        font-family: tahoma;
        font-size: 8pt;
    }
    </style>
</head>
<body>
    <form name="form1" method="post" action="test2.aspx" id="form1">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTE3MzIxMzI5NWRk" />
</div>
 
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>
 
 
<script src="/WebResource.axd?d=_mlHXpKa4hmGf5FY7Wv47g2&amp;t=633290284019487091" type="text/javascript"></script>
 
 
<script src="/ScriptResource.axd?d=urWtqzsXINoCG13TqHwKCfDh8Z76XGzvZ9gFZvebak1nAYO_PdHKh-3L-buVeiJGM-LNxfTyiXB7kQUoPNzpunGFEJ-loghHm4gZnyDTJvw1&amp;t=633475830188397647" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=urWtqzsXINoCG13TqHwKCfDh8Z76XGzvZ9gFZvebak1nAYO_PdHKh-3L-buVeiJGM-LNxfTyiXB7kQUoPNzputCa0Dhn_jjF1cO6OJeAOxD-VA1rEAMNDdSIb0xPaUXA0&amp;t=633475830188397647" type="text/javascript"></script>
        <script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ScriptManager1', document.getElementById('form1'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tUpdatePanel'], ['UpdateButton1'], [], 90);
//]]>
</script>
 
        <div id="UpdatePanel">
	
                <input type="submit" name="UpdateButton1" value="Update" id="UpdateButton1" />               
            
</div>
        
    
 
<script type="text/javascript">
//<![CDATA[
Sys.Application.initialize();
//]]>
</script>
</form> 
</body>
</html>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:

Select allOpen in new window

 

by: MarcGraffPosted on 2008-06-04 at 07:34:42ID: 21710518

junges: I added the:
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %>
on the page but I am not yet using any "AjaxControlToolkit" controls.

This resulted in the same 'Sys' error.

 

by: MarcGraffPosted on 2008-06-04 at 07:35:07ID: 21710523

Oh and I am not using master pages

 

by: ascii236Posted on 2008-06-04 at 07:52:39ID: 21710716

I had the same problem I put the problem example and solution to my problem on a free webpage

See if this helps:
http://dryrtf.freewebspace.com/

theres also a link to the forum where I had help troubleshooting it.

 

by: sjors1309Posted on 2008-06-05 at 06:34:45ID: 21719163

I now detect something I didn't see before. You use a trigger but specify a button that's within the updatepanel. Triggers are to my knowledge meant to trigger updatepanels from controls outside of the panel itself. Controls that are inside the panel cause postbacks to occur by default.

You sould remove the trigger, or create another button outside the panel and use it's ID in the trigger declaration

Can you give this a try?

 

by: MarcGraffPosted on 2008-06-29 at 05:22:38ID: 21893701

After trying everything I have given up and created a new project in VS 2008. I copyed in the files into the new project and AJAX seams to work fine.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...