May 18, 2010

7:23 PM - , No comments

'Sys' is undefined

Some time you meet the error 'Sys' is undefined when you try to load your page. It occurs when you declare something like: Sys.Application.add_load(PageLoad); but your page does not recognize what Sys is.

Oke, try this:
1/ Register script (place in the top of .aspx file):
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>


2/ Place this snip code inside your <form> tag:

<div> <asp:toolkitscriptmanager id="ToolkitScriptManager1" runat="server">
</asp:toolkitscriptmanager></div>

0 comments:

Post a Comment