"turn off" ajax specific httpModules for a specific folder

Last post 12-26-2006 10:09 AM by weinem01. 4 replies.

Sort Posts:

  • "turn off" ajax specific httpModules for a specific folder

    12-25-2006, 12:46 PM
    • Member
      point Member
    • weinem01
    • Member since 12-25-2006, 12:38 PM
    • Posts 3

    I have updated my site to use ajax.net and am now trying to use a fileUpload control (CSUpload) that has a progress panel that doesn't function on ajax enabled sites.  The control is only used on one page, and is the only control on the page, and the page is the only one in its directory, so I thought that the easiest solution would be to completely disable the conflicting ajax httpModules for that directory.  Is this possible?  Any thoughts on how to do it?

     

    thanks

     Matt

  • Re: "turn off" ajax specific httpModules for a specific folder

    12-25-2006, 2:42 PM
    • All-Star
      121,831 point All-Star
    • XIII
    • Member since 06-30-2002, 11:59 PM
    • Essen, Belgium
    • Posts 13,517
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

    Hi,

    in the web.config you can use the <location> element to specify for a certain page/folder specific settings like removing a certain httpmodule.

    Grz, Kris.

  • Re: "turn off" ajax specific httpModules for a specific folder

    12-25-2006, 9:54 PM
    • Member
      point Member
    • weinem01
    • Member since 12-25-2006, 12:38 PM
    • Posts 3

    I thought that it would be this easy, but apparently, it is not.

     Here's a link that further outlines the problem: http://p2p.wrox.com/topic.asp?TOPIC_ID=14783

     I've tried separate web.config files and the <location> solution that you suggested without success.

    If anyone else has a solution, I'd greatly appreciate it.

     

    Matt

  • Re: "turn off" ajax specific httpModules for a specific folder

    12-26-2006, 2:20 AM
    • All-Star
      121,831 point All-Star
    • XIII
    • Member since 06-30-2002, 11:59 PM
    • Essen, Belgium
    • Posts 13,517
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

    What didn't work out for you? Did you use the <remove ... /> element in the <httpModules> section to remove those specific httpmodules?

    Grz, Kris.

  • Re: "turn off" ajax specific httpModules for a specific folder

    12-26-2006, 10:09 AM
    • Member
      point Member
    • weinem01
    • Member since 12-25-2006, 12:38 PM
    • Posts 3

    Yes, I tried to remove both the httpModules and the httpHandlers - despite adding this to the web.config, they still loaded.

     here's the web.config section

    <location path="videoUploader">
      <system.web>
         <
    httpHandlers>
            <
    remove verb="*" path="*.asmx"/>
            <
    remove verb="GET" path="ScriptResource.axd" />
         </
    httpHandlers>

         <httpModules>
                <
    remove name="WebResourceCompression" />
                <
    remove name="ScriptModule" />
               
    <add name="HttpUploadModule" type="Netvak.ControlSolutions.CSUpload.HttpUploadModule, ControlSolutions.CSUpload"/>
         </
    httpModules>|
      </
    system.web>
    </location>

Page 1 of 1 (5 items)