Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 22, 2012 02:57 AM by teguhyuliantos
May 17, 2012 03:48 PM|LINK
I am using C#, ASP.NET in my web application.
I have designed my web site like this.
In my default web page, I have my top company images & logos, menu bar and an iframe.
When the user clicks on a the menus, the requested page will be displayed in the iframe of the default page.
The default page almost works like a master page, but not actually a master page.
I want to implement security for my web site.
I have created a login page and everything is working fine.
Now the challenge now is:
I have put a login link on the top right corner of the default page, which is common for all the pages.
When the user logs into the website, the login link should change to logout.
So, I want to use loginstatus control,
Can anyone give me the code how to achieve this?
May 17, 2012 06:53 PM|LINK
May 18, 2012 07:54 PM|LINK
Thanks for your response.
Actually, the URL that you have mentioned is good.
The tutorial uses the master page concept, but I don't want to do that, since I have a limitation, I don't have access to IIS on the Server,
I deploy my code by copying my files to a shared folder on the server.
I am using iframe to show all my web pages.
May 19, 2012 01:07 PM|LINK
you can use the login status as it is shown below:-
<asp:LoginView ID="LoginView1" runat="server">
<asp:LoginStatus ID="LoginStatus1" runat="server" LogoutPageUrl="~/login.aspx" />
May 19, 2012 01:09 PM|LINK
May 21, 2012 05:27 PM|LINK
Ya I think it works in any place. In divs, HTMl tables, top bars etc....
May 22, 2012 02:57 AM|LINK
To use loginstatus control, please refer the link below, hope will help your proble.