Hi Jeroen,
it is much easier to change this url. Do following two changes in you app:
1) web.config:
The location tag should be like this:
<location path="desktopmodules/ajaxpro">
<system.web>
<httpHandlers>
<add verb="*" path="*.ashx"
type="AjaxPro.AjaxHandlerFactory,AjaxPro"/>
</httpHandlers>
</system.web>
</location>
2) global.asax.cs:
protected void Application_Start(Object sender, EventArgs e)
{
AjaxPro.Utility.HandlerPath = "desktopmodules/ajaxpro";
}
I tried this and it is working fine.
Regards,
Michael
On 4/26/06, Qwark <[EMAIL PROTECTED]> wrote:
>
> I have to replace the scripts with the scriptreplacement tags to an
> other path than ajaxpro. So I add this to my webconfig:
>
> <scriptReplacements>
> <file name="core" path="~/desktopmodules/ajaxpro/core.ashx" />
> <file name="prototype" path="~/desktopmodules/ajaxpro/prototype.ashx"
> />
> <file name="converter" path="~/desktopmodules/ajaxpro/converter.ashx"
> />
> </scriptReplacements>
>
> But the next item also need a replacement:
>
> <script type="text/javascript"
> src="/App/ajaxpro/CMS.Customer.PhotoAlbum.Album,CMS.Customer.PhotoAlbum.ashx"></script>
>
> adding this, to my webconfig <scriptReplacement> section doesn't work :
>
> <file name="CMS.Customer.PhotoAlbum.Album,CMS.Customer.PhotoAlbum.ashx"
> path="~/desktopmodules/ajaxpro/CMS.Customer.PhotoAlbum.Album,CMS.Customer.PhotoAlbum.ashx"
> />
>
> I also try to add the script tags by hand in the aspx file, and use the
> right urls, and delete ofcourse the next line in the code behind:
>
> AjaxPro.Utility.RegisterTypeForAjax
>
> But this does'nt work either because the
> CMS.Customer.PhotoAlbum.Album,CMS.Customer.PhotoAlbum.ashx is keeping
> containing the next line:
>
> this.url=
> '/Customer/ajaxpro/CMS.Customer.PhotoAlbum.Album,CMS.Customer.PhotoAlbum.ashx';
>
> instead of:
>
> this.url=
> '/Customer/desktopmodules/ajaxpro/CMS.Customer.PhotoAlbum.Album,CMS.Customer.PhotoAlbum.ashx';
>
> What is the workaround for a problem like this??
>
> Regards,
>
> Jeroen
>
>
> >
>
--
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
-~----------~----~----~----~------~----~------~--~---