I compiled the AjaxPro project in VS-2003 and included the AjaxPro.dll
in a new project and copied a basic example given at the link
http://www.ajaxpro.info/quickguide.aspx.
nothing happens when i run the project - my code is as follows -
#######################################################################
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using AjaxPro ;
namespace AjaxPro_Demo
{
        /// <summary>
        /// Summary description for WebForm1.
        /// </summary>
        public class WebForm1 : System.Web.UI.Page
        {
                private void Page_Load(object sender, System.EventArgs e)
                {
                        AjaxPro.Utility.RegisterTypeForAjax(typeof(WebForm1)) ;
                }

                [AjaxPro.AjaxMethod]
                public DateTime GetServerTime()
                {
                        return DateTime.Now ;
                }

                #region Web Form Designer generated code
                override protected void OnInit(EventArgs e)
                {
                        //
                        // CODEGEN: This call is required by the ASP.NET Web 
Form Designer.
                        //
                        InitializeComponent();
                        base.OnInit(e);
                }

                /// <summary>
                /// Required method for Designer support - do not modify
                /// the contents of this method with the code editor.
                /// </summary>
                private void InitializeComponent()
                {
                        this.Load += new System.EventHandler(this.Page_Load);
                }
                #endregion
        }
}
#######################################################################

at the bottom left hand corner i get the javascript error -
Line 2:
Char 1:
Error: Object Expected
Code : 0


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to