Anyone work with 4.0 Web Site projects?

4 posts, 0 answers
  1. Steve
    Steve avatar
    1871 posts
    Member since:
    Dec 2008

    Posted 06 Jul 2010 Link to this post

    ...when I make a new site (not webapp, website) and hook it into IIS7.5 no click events on the page fire on default.aspx unless it explicitly specified in the url.

    So like      <- no button events hit the code behind, but page lifecycle works great     <- no issues at all

    Has anyone else seen this?  Googling comes up with nothing for me...
  2. John Townsley
    John Townsley avatar
    7 posts
    Member since:
    May 2010

    Posted 18 Nov 2010 Link to this post

    I am having the same problem except I am using a web application. It was never a problem until I switched to .net 4.0.
  3. Pavel
    Pavel avatar
    904 posts

    Posted 19 Nov 2010 Link to this post

    Hi guys,

    The problem is probably caused by this breaking change in .Net 4.0. I am guessing that you are using RadCompression or some other module that interferes. As explained in the article you should set the preCondition to "managedHandler" for the module. Note that you may also need to remove the following setting from your web.config which might have been added automatically:
    Copy Code
    <modules runAllManagedModulesForAllRequests="true">

    As explained in this article, this setting essentially negates any preConditions you may have set and forces all modules to run for all requests which results in erroneous behavior. If you remove it, the module will be correctly excluded from the request and the events should be executed.

    Let me know if this helps or if your problem is different.

    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  4. John Townsley
    John Townsley avatar
    7 posts
    Member since:
    May 2010

    Posted 19 Nov 2010 Link to this post

    Thank you Pavel!

    I implemented your fix and it works great!
Back to Top