Thank you, I just wished know
Regards
Fabio
On 6/3/06, Michael Schwarz <[EMAIL PROTECTED]> wrote:
You mean the problem with the namespace? Yes, it is "by design"... ;)
I put the url (which is different) outside each method to save
traffic, maybe I can change this, but I don't think it is a big "bug"
(if you want to say this).
Regards,
Michael
On 6/3/06, Fabio <[EMAIL PROTECTED] > wrote:
>
> Thank you,
>
> Michael, my ajax generated url for the ashx is most beautiful now :-)
> But and about the behaviour what I reported?
>
> Best Regards
> Fábio Alves
>
>
> On 6/3/06, Michael Schwarz <[EMAIL PROTECTED]> wrote:
> >
>
> Hi,
>
> please never use this.GetType() because then you will get the type
> from the generated class of ASCX or ASPX. Use something like this:
>
> AjaxPro.Utility .RegisterTypeForAjax(type(Classname));
>
> Regards,
> Michael
>
>
>
> On 6/3/06, Fabio < [EMAIL PROTECTED]> wrote:
> >
> > Hello Michael
> >
> > I have noticed one interesting behaviour in Ajax.Net Pro.
> > I did 2 user controls, in each uc I registered in page.load:
> >
> > AjaxPro.Utility .RegisterTypeForAjax(this.GetType());
> >
> > The 2 user controls I enter the same namespace:
> > [AjaxPro.AjaxNamespace ("MyNamespace")]
> >
> > Ok, now I place the 2 user controls in the same page, and runs the
> > application. In html source, I see all the prototype, core and converter
> > rendering fine, and another 2 ashx, one for each user control. If I type
> > these 2 in url, I can see the ajax-generated code correctly generated for
> > each user control.
> >
> > But when I run the page, one the last user control ajax methods are
> > preserved, but not the first. The default behaviour of _javascript_ is if
> you
> > create one object with the same name of one existing object, the existing
> > object is hidden... then because this the first usercontrol ajax methods
> are
> > hidden...
> >
> > If I change the namespaces to different names, all works fine.
> >
> > I'm reporting this because I know not if this is a desired behaviour, or
> "by
> > design" behaviour (like microsoft likes to say), or if this is a bug of
> > Ajax.Net Pro.
> >
> > Best Regards
> > Fabio
> > >
> >
> >
> >
> >
> >
>
>
> --
> Best regards | Schöne Grüße
> Michael
>
> Microsoft MVP - Most Valuable Professional
> Microsoft MCAD - Certified Application Developer
>
> http://weblogs.asp.net/mschwarz/
> http://www.schwarz-interactive.de/
> mailto:[EMAIL PROTECTED]
>
>
> >
>
>
>
>
>
>
--
Best regards | Schöne Grüße
Michael
Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer
http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
