Topic: isapi rewrite and asp.net Ajax
|

|
| Author |
|
eCommando Newbie

Joined: 04 August 2004 Location: United States
Online Status: Offline Posts: 12
|
| Posted: 11 July 2008 at 5:14pm | IP Logged
|
|
|
I have a site with dir structure like the following:
RootDir
httpd.ini
Site1Dir
App_Code
App_Data
Bin
web.config
Site2Dir
Site1 and Site2 are different domains using httpd.ini in root directory and isapi rewrite to redirect.
After I uploaded my asp.net site to Site1Dir, almost everything is working,
except AJAX stuff. When I ran Ajax stuff, it's refreshing the whole page instead
of just updating the panels.
When I take out httpd.ini and go to the site using the url Site1Dir/default.aspx,
the AJAX controls on that page would work.
What configuration info do I need to change so that AJAX controls will work in the
virtual site directory that is using isapi rewrite.
|
| Back to Top |
|
| |
Lexey Moderator Group

Joined: 15 August 2002 Location: Russian Federation
Online Status: Offline Posts: 7468
|
| Posted: 12 July 2008 at 12:09pm | IP Logged
|
|
|
Read "Handling Postbacks Correctly" chapter in this article:
http://www.helicontech.com/articles/provocative_SEF_URLs.htm
If it will not help check IIS log for an URI requested by AJAX from a "rewritten" page and show it to me along with the correct URI.
|
| Back to Top |
|
| |
eCommando Newbie

Joined: 04 August 2004 Location: United States
Online Status: Offline Posts: 12
|
| Posted: 14 July 2008 at 3:58am | IP Logged
|
|
|
Hello,
I know what the problem is now, but I am not sure how to fix this.
When I ran the page with ajax in it, the Ajax Component generates the following lines:
<script src="/mydir/WebResource.axd?d=******>
<script src="/mydir/ScriptResource.axd?d=*****>
Instead of pointing to /mydir/WebResource.axd ,
it should be pointing to either "../WebResource.axd", or just plaing "WebResource.axd". I am not sure how I can change the location or path of webresource.axd files.
Is it something that I can use isapi rewrite to fix?
It looks like this blog shows how to fix the problem, but it's using a different rwrite program called urlrewrite:
http://meadowsdesign.com/blog/?p=6
Thank for your help!
|
| Back to Top |
|
| |
Lexey Moderator Group

Joined: 15 August 2002 Location: Russian Federation
Online Status: Offline Posts: 7468
|
| Posted: 28 July 2008 at 5:14pm | IP Logged
|
|
|
ISAPI_Rewrite can not change those links but you could write a few rules to fix a requested script URL.
|
| Back to Top |
|
| |
|
|
If you wish to post a reply to this topic you must first login
If you are not already registered you must first register
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum
|