If you use this.GetType() you will get the current instance which will
be the ASPX page instead of the class treelist. ASP.NET will add a new
class ASP.reelist_aspx for any ASPX inline code. If you use
typeof(treelist) it will use the correct type. It is common ASP.NET
logic, nothing to do with AjaxPro.

Regards,
Michael


On 7/12/06, LCID Fire <[EMAIL PROTECTED]> wrote:
>
> Appearently I should have done
> Utility.RegisterTypeForAjax(typeof(treelist));
>
> When I do the latter I get:
> {Name = "treelist" FullName = "test.treelist"}
>
> When I try my first approach I get:
> {Name = "treelist_aspx" FullName = "ASP.treelist_aspx"}
>
> WTF!?
> Does one have to understand this? I was under the impression that the
> content of the aspx was "partialized" into the tree class not the other
> way around.
>
>
> >
>


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

Reply via email to