There are several ways you can skin this cat. One way is to put the ajax on the page that calls the ajax. If several pages use the same ajax and the same ascx, you could keep the common code common by just having all of the ajax calls on each page as stubs that call the common functions. Or you can create a master page that contains all of the ajax, and just make all of the calling pages "children" of the master page.
Or you could put a small 1-pixel iframe somewhere on the page, and set its source to a common aspx file for all of the pages that use the acx. -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Henrik Stidsen Sent: Wednesday, September 06, 2006 2:07 AM To: Ajax.NET Professional Subject: [ajaxpro] Re: howto use AjaxPro in ascx , plz Help me MrSlowly skrev: > if i code JavaScript in aspx file , it work fine. > and if I code JavaScript in .ascx file . it don't work. Which errormessages do you get ? It might not have anything to do with AJAXPro, you might just be doing things the wrong way ;) --~--~---------~--~----~------------~-------~--~----~ 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/ -~----------~----~----~----~------~----~------~--~---
