Login view control with coustom log in
<p>I have a asp.net webpage that contain a custom login control like this:</p>

<pre><code>                    &lt;div id="login-box-name" style="margin-top: 20px;"&gt;
                    User Name:&lt;/div&gt;
                &lt;div id="login-box-field" style="margin-top: 20px;"&gt;
                    &lt;asp:TextBox ID="username" runat="server" CssClass="form-login"&gt;&lt;/asp:TextBox&gt;
                &lt;/div&gt;
                &lt;div id="login-box-name"&gt;
                    Password:&lt;/div&gt;
                &lt;div id="login-box-field"&gt;
                    &lt;asp:TextBox ID="password" runat="server" CssClass="form-login" TextMode="Password"&gt;&lt;/asp:TextBox&gt;
                &lt;/div&gt;
                &lt;br /&gt;
                &lt;span class="login-box-options"&gt;
                    &lt;input type="checkbox" name="1" value="1"&gt;
                    Remember Me&lt;/span&gt;
                &lt;br /&gt;
                &lt;br /&gt;
                &lt;asp:ImageButton ID="loginbtn" runat="server" ImageUrl="images/login-btn.png" 
                    onclick="loginbtn_Click" /&gt;
</code></pre>

<p>and it looks like this:</p>

<p><img src="http://i.stack.imgur.com/egdBP.png" alt="enter image description here"></p>

<p>and on the "loginbtn_Click" :</p>

<pre><code>if(Membership.ValidateUser(username.Text,password.Text))
   {
       var user = Membership.GetUser(username.Text);
       var userid = user.ProviderUserKey;
       Session["UserID"] = userid;
       Response.Redirect("~/Default.aspx");
   }
</code></pre>

<p>and the 'login view control' is like this:</p>

<pre><code>&lt;li&gt;
                        &lt;asp:LoginView ID="LoginView1" runat="server"&gt;
                            &lt;RoleGroups&gt;
                                &lt;asp:RoleGroup Roles="Admins"&gt;
                                    &lt;ContentTemplate&gt;
                                        &lt;a href="ControlPanel.aspx"&gt;Control Panel&lt;/a&gt;
                                    &lt;/ContentTemplate&gt;
                                &lt;/asp:RoleGroup&gt;
                                &lt;asp:RoleGroup Roles="Users"&gt;
                                &lt;/asp:RoleGroup&gt;
                            &lt;/RoleGroups&gt;
                        &lt;/asp:LoginView&gt;
                    &lt;/li&gt;
</code></pre>

<p>but my problem is after the admin logs in the 'login view' control doesn't show the link named 'control panel' , is it because the custom control i made for the log in or i missed the e.Authenticated = true;..or something else??</p>
