When write a inner class in the web form's class, like following:

    public partial class Header : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            AjaxPro.Utility.RegisterTypeForAjax(typeof(HeaderAjax),
this);
        }

        public class HeaderAjax
        {
            public void Logoff()
            {
                FormsAuthentication.SignOut();
            }
        }
    }

it generates wrong name in script:

    if(typeof Header+HeaderAjax == "undefined") Header+HeaderAjax={};
    Header+HeaderAjax_class = function() {};
    Object.extend(Header+HeaderAjax_class.prototype, Object.extend(new
AjaxPro.AjaxClass(), {
        url: '/TestSite/ajaxpro/Header+HeaderAjax,App_Web_84ofbg_n.ashx'
    }));
    Header+HeaderAjax = new Header+HeaderAjax_class();


.NET use '+' as seperator character, but javascript wrong.


--~--~---------~--~----~------------~-------~--~----~
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/

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---

Reply via email to