This is a migrated thread and some comments may be shown as answers.

LoginControl update problem

1 Answer 55 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Chen
Top achievements
Rank 1
Chen asked on 07 Oct 2010, 05:11 PM
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>

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 13 Oct 2010, 11:10 AM
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
Tags
Ajax
Asked by
Chen
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or