Web User Control & web.config

Last post 07-31-2007 2:54 PM by danielfung. 2 replies.

Sort Posts:

  • Web User Control & web.config

    07-31-2007, 12:23 PM
    • Member
      22 point Member
    • cseven
    • Member since 05-24-2007, 10:46 AM
    • Posts 133

    Hi,

     I have a Visual studio solution only with web user controls. How must I configure the web.config file for AjaxControlToolkit?

     I added this lines to my web.config:

    <httpHandlers>
       <remove verb="*" path="*.asmx"/>
       <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
       <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
       <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
    </httpHandlers>
    <httpModules>
       <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    </httpModules>

     

    But when I run my portal, on the pages where i use that web user controls I get this error:

     This page is missing a HtmlHead control which is required for the CSS stylesheet link that is being added. Please add <head runat="server" />.

     

    Can anyone help me?

     Thank you Smile

  • Re: Web User Control & web.config

    07-31-2007, 1:15 PM
    • Member
      22 point Member
    • cseven
    • Member since 05-24-2007, 10:46 AM
    • Posts 133

    I resolved the error by adding the runat="server" on the HEAD tag of the main page of the portal.

    The solution was on the error I gave on the first post, but I didn't want to edit the main page of the portal, because it's a portal platform and was not made by me.

     Now that the page render I can see that the Ajax controls don't work Sad

    I can interact with the page and the asp controls and i don't get any errors, but the AJAX controls don't do anything...

     

    I need help, please!!!

  • Re: Web User Control & web.config

    07-31-2007, 2:54 PM
    • Member
      108 point Member
    • danielfung
    • Member since 03-31-2007, 4:22 PM
    • Canada
    • Posts 33

    there is a whole lot of things that you may have to add to the web.config to get ajax.net extensions and ajaxcontroltoolkit to work?

    Are you sure that you have added all the items to the web.config. There is a couple of articles out there that describes what and how to do it.

     

     

Page 1 of 1 (3 items)