LoginControl update problem

2 posts, 0 answers
  1. Chen
    Chen avatar
    46 posts
    Member since:
    Oct 2010

    Posted 07 Oct 2010 Link to this post

    Hi
    I am a newbie, so this may be trivial.
    I am using your login window example, and failed on the get-go.
    I took the TelerikLoginWebForm and added a login template.
    I expect to see "DGV" when I am logged in, and nothing, when I am not.
    However, DGV does appear when I am logged in, but fails to disappear when I logout. 
    As if the logout event does not modify the LoginView.
    The LoginControl does change when I hit Logout.

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TelerikLoginWebForm.aspx.cs" Inherits="TelerikLoginWebForm" %>
     
    <%@ Register src="LoginControl.ascx" tagname="LoginControl" tagprefix="uc1" %>
     
    <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <head runat="server">
        <title></title>
        <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
    </head>
    <body>
        <form id="form1" runat="server" >
        <asp:ScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <%--Needed for JavaScript IntelliSense in VS2010--%>
                <%--For VS2008 replace RadScriptManager with ScriptManager--%>
    <%--            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
    --%>       
            </Scripts>
        </asp:ScriptManager>
         
        <script type="text/javascript">
            //Put your JavaScript code here.
        </script>
         
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="LoginView">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="LoginView" UpdatePanelHeight="" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
         
        <div>
            <uc1:LoginControl ID="LoginControl1" runat="server" />
            <asp:LoginView ID="LoginView" runat="server">
                <AnonymousTemplate>
                 
                </AnonymousTemplate>
                <LoggedInTemplate>
                    DGV
                </LoggedInTemplate>
            </asp:LoginView>
        </div>
        </form>
    </body>
    </html>

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 13 Oct 2010 Link to this post

    Hello Chen,

    The provided code looks ok to me.
    As the provided information is not enough to isolate the root cause of the issue you are facing, please prepare a simple, fully runnable reproduction demo, open a new support ticket and send it to us along with very detailed reproduction steps and explanations and we will debug it locally and we will do our best to help.


    Best wishes,
    Maria Ilieva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top