Errors when using decorator with asp:Login - Not rendering in Firefox

6 posts, 0 answers
  1. DGDev
    DGDev avatar
    42 posts
    Member since:
    Jul 2012

    Posted 04 Nov 2008 Link to this post

    Hi there,
    I believe this is an error, however I may be mistaken.

    I am using a FormDecorator on a master-page to decorate an asp:Login on my child page.

    Inside my Web.Config I have set:
    <authorization>
         <deny users="?"/>
         <allow users="*"/>
    </authorization>

    ... to prevent access to my application, per following Microsoft's advice here.

    I am fairly new to ASP.NET Membership so perhaps I have improperly configured it?
  2. DGDev
    DGDev avatar
    42 posts
    Member since:
    Jul 2012

    Posted 04 Nov 2008 Link to this post

    Just to describe the error a little more clearly...
    When viewing the page in Firefox, the Logins textboxes, checkbox, button no longer are displayed even though the <input> tags are in the page source where they should be.

    Firebug is reporting 4 errors on the page:
    Here's a screenshot: http://www.dgdev.net/errors.png
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. DGDev
    DGDev avatar
    42 posts
    Member since:
    Jul 2012

    Posted 04 Nov 2008 Link to this post

    My mistake, IE has the same problem. I've update my rad controls to the latest trials.

    When
    <deny users="?"/>
    <allow users="*"/>

    is in place, all input controls decorated by FormDecorator do not work or display properly. I have a combo box, but none of its items are displayed and it doesn't seem to function.
  5. Tervel
    Admin
    Tervel avatar
    1337 posts

    Posted 05 Nov 2008 Link to this post

    Hi DGDev,

    The error is not related to the RadFormDecorator. If you examine the second error it says:

    ASP.NET Ajax client-side framework failed to load

    Before you run any ASP.NET AJAX control (and all Telerik RadControls for ASP.NET AJAX are such controls) you need to make sure the ASP.NET AJAX is properly initialized on the client-side.


    Regards,
    Tervel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. DGDev
    DGDev avatar
    42 posts
    Member since:
    Jul 2012

    Posted 05 Nov 2008 Link to this post

    Thanks for your reply. It must have been a permissions issue as:
    <allow users="?">
    prevented the library from being loaded.

    I've re-thought the application's folder structure and everything now works just fine. I appreciate your time though. :)
  7. Jon
    Jon avatar
    1 posts
    Member since:
    Jan 2009

    Posted 27 Feb 2009 Link to this post

    I too was having this issue and finally worked it out. I am sure this is documented somewhere in the Telerik documentation, but for anyone else that could not find an answer, here is what I found.

    My controls were in the html (view source) but not visible on page (visibility: hidden). This was because I was blocking users from getting to the Magic "Telerik CSS" by using:

    <

     

    authorization>

     

    <

     

    deny users="?"/>

     

    </

     

    authorization>

    This raised the question, how do I give my "?" users access to this magic "Telerik CSS". After digging through the markup I saw this file Telerik.Web.UI.WebResource.axd being used to generate CSS. So I gave access to my anonymous users to this file by using:

     

    <

     

    location path="Telerik.Web.UI.WebResource.axd">

     

    <

     

    system.web>

     

    <

     

    authorization>

     

    <

     

    allow users="*"/>

     

    </

     

    authorization>

     

    </

     

    system.web>

     

    </

     

    location>

    and now it is fixed! I hope this helps some more people!!

     

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017